﻿:root {
    --naranja: #ff9100;
    --azul1: #7adcf8;
    --azul2: #1cb7e9;
    --azul3: #2bc1ef;
    --azul4: #082f5b;
    --azul5: #043465;
    --gris1: #5d7280;
    --gris2: #3b4951;
    --gris3: #2c353b;
    --gris4: #d7daff;
    --gris5: #888abf;
    --blanco: #ffffff;
    --negro: #000000;
    --font-primary: "Poppins", sans-serif;
    --font-secondary: "Geometos Neue", sans-serif;
    --font-accent: "Playfair Display", serif;
    --shadow: 0 10px 20px rgba(0,0,0,.4);
}

/* =========================
   CONTACT PAGE
========================= */

.contact-page {
    padding-top: 6rem;
}

/* HERO */

.contact-hero {
    padding: 6rem 2rem 4rem;
    display: flex;
    justify-content: center;
    background: linear-gradient(135deg, var(--azul5), var(--azul4));
}

.contact-hero-content {
    max-width: 800px;
    text-align: center;
}

.contact-hero h1 {
    font-size: clamp(2.4rem, 4vw, 3rem);
}

.contact-hero p {
    margin-top: 1.5rem;
    font-size: 1.1rem;
}

/* FORM SECTION */

.contact-section {
    padding: 5rem 2rem;
    display: flex;
    justify-content: center;
}

.contact-form {
    position: relative;
    max-width: 1000px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    padding: 3rem;
    border-radius: 1.8rem;
    background: rgba(215, 218, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: var(--shadow);
}

/* LEFT */

.form-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

    .form-group label {
        margin-bottom: 0.5rem;
        color: var(--gris4);
    }

    .form-group input,
    .form-group textarea {
        padding: 0.75rem 1rem;
        border-radius: 0.75rem;
        border: 1px solid rgba(255,255,255,0.15);
        background: rgba(0,0,0,0.25);
        color: var(--blanco);
        font-family: var(--font-primary);
    }

    .form-group textarea {
        min-height: 120px;
        resize: vertical;
    }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--azul2);
        }

/* Ocultar badge flotante de reCAPTCHA */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
}

/* aviso de recaptcha */
.recaptcha-notice {
    margin-top: 18px;
    font-size: 0.75rem;
    color: #c5c9ff;
    line-height: 1.6;
    opacity: 0.75;
    text-align: center;
    max-width: 420px;
}

    .recaptcha-notice a {
        color: var(--azul3);
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
    }

        .recaptcha-notice a:hover {
            color: var(--naranja);
            text-shadow: 0 0 8px var(--naranja);
        }

.bi-shield-check {
    color: var(--naranja);
}

/* RIGHT */

.form-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

    .form-right img {
        max-width: 220px;
        opacity: 0.85;
    }

/* LOADER */

.form-loader {
    position: absolute;
    inset: 0;
    background: rgba(4, 52, 101, 0.85);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border-radius: 1.8rem;
}

    .form-loader.active {
        opacity: 1;
        pointer-events: all;
    }

.spinner {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: var(--naranja);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.form-loader p {
    color: var(--blanco);
    font-size: 0.95rem;
}


/* RESPONSIVE */

@media (max-width: 768px) {
    .contact-form {
        grid-template-columns: 1fr;
    }

    .form-right {
        display: none;
    }
}
