/* =====================================================
   HOME – BLOQUE FORMULARIO DE CONTACTO
   Versión compacta y equilibrada
   Objetivo:
   - No competir con el Hero
   - Mantener 3 niveles visuales claros
   - Reducir altura y peso visual
   - CSS limpio, predecible y mantenible
===================================================== */


/* =====================================================
   FONDO GENERAL DEL BLOQUE
   (nivel 1 – contexto visual)
===================================================== */
.contact-section {
    position: relative;
    padding: 50px 20px;
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #f1f4fa 90%,
        #e6ebf5 100%
    );
}


/* =====================================================
   CONTENEDOR GENERAL (CARD PRINCIPAL)
   (nivel 2 – bloque contacto completo)
===================================================== */
.contact-outer-card {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 40px;
    border-radius: 28px;

    background: rgba(255, 255, 255, 0.9);

    box-shadow:
        0 28px 60px rgba(31, 42, 68, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}


/* =====================================================
   CABECERA SUPERIOR
   Título + subtítulo
===================================================== */
.contact-header {
    max-width: 760px;
    margin: 0 auto 32px auto;
    text-align: center;
}

.contact-eyebrow {
    font-size: 32px;
    font-weight: 600;
    color: #153c64;
    margin-bottom: 8px;
}

.contact-title {
    font-size: 22px;
    font-weight: 700;
    color: #153c64;
    margin-bottom: 10px;
}

.contact-subtitle {
    font-size: 15px;
    line-height: 1.5;
    color: #153c64;
    max-width: 640px;
    margin: 0 auto;
}

/* =====================================================
   AJUSTES CABECERA SUPERIOR
   Uso como encabezado de sección
===================================================== */
.contact-header {
    margin-bottom: 40px; /* más aire antes del card */
}

.contact-eyebrow {
    letter-spacing: 0.4px;
}

.contact-title {
    color: #b89b5e; /* dorado elegante como acento */
}

.contact-subtitle {
    line-height: 1.6;
    opacity: 0.9;
}

/* =====================================================
   CONTENEDOR INTERNO (CARD SECUNDARIA)
   Texto + formulario
   (nivel 3 – visible pero liviano)
===================================================== */
.contact-inner-card {
    margin-top: 30px;
    padding: 28px 28px;
    border-radius: 20px;

    background: linear-gradient(
        180deg,
        rgba(245, 248, 252, 0.95) 0%,
        rgba(236, 241, 247, 0.95) 100%
    );

    box-shadow:
        0 -6px 16px rgba(31, 42, 68, 0.08),
        0 14px 30px rgba(31, 42, 68, 0.10);
}

/* =====================================================
   CONTENEDOR PRINCIPAL
   Grid 2 columnas
===================================================== */
.contact-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}


/* =====================================================
   COLUMNA IZQUIERDA – TEXTO
===================================================== */
.contact-text h2 {
    font-size: 24px;
    font-weight: 600;
    color: #153c64;
    margin-bottom: 14px;
}

.contact-text p {
    font-size: 15px;
    line-height: 1.6;
    color: #153c64;
    max-width: 420px;
}


/* =====================================================
   COLUMNA DERECHA – FORMULARIO
===================================================== */
.contact-form {
    background: transparent;
    box-shadow: none;
    padding: 0;

}

/* =====================================================
   GRUPOS DE CAMPOS
===================================================== */
.form-group {
    margin-bottom: 16px;
}


/* =====================================================
   LABELS
===================================================== */
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #153c64;
    margin-bottom: 5px;
}


/* =====================================================
   INPUTS, SELECT Y TEXTAREA
===================================================== */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #d9deea;
    font-size: 14px;
    color: #153c64;
    background-color: #f9fafc;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}


/* =====================================================
   FOCUS DE CAMPOS
===================================================== */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b5bcc;
    background-color: #ffffff;
}


/* =====================================================
   TEXTAREA
===================================================== */
.form-group textarea {
    resize: vertical;
    min-height: 60px;
}


/* =====================================================
   BOTÓN DE ENVÍO
===================================================== */
.form-button {
    width: 100%;
    margin-top: 14px;
    padding: 12px;
    border: none;
    border-radius: 999px;

    background: linear-gradient(
        90deg,
        #153c64 0%,
        #1e4f82 100%
    );

    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;

    cursor: pointer;
    transition: box-shadow 0.25s ease;
}

.form-button:hover {
    box-shadow: 0 10px 22px rgba(21, 60, 100, 0.35);
}

.form-button:focus {
    outline: none;
}


/* =====================================================
   MENSAJE DE CONFIRMACIÓN
===================================================== */
.form-success-message {
    margin-top: 14px;
    padding: 12px 14px;

    background-color: #eef4fb;
    border-left: 4px solid #153c64;
    border-radius: 6px;

    font-size: 13px;
    line-height: 1.4;
    color: #153c64;

    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* =====================================================
   TEXTO DE CONFIDENCIALIDAD
===================================================== */
.form-privacy-text {
    margin-top: 10px;
    font-size: 12.5px;
    color: #153c64;
    text-align: center;
    opacity: 0.85;
}

/* =====================================================
   RESPONSIVE – MOBILE Y TABLET (CONTACTO)
   Solución estable para F12 + celular real
===================================================== */
@media (max-width: 768px) {

    /* 🔹 Sección: sin padding lateral excesivo */
    .contact-section {
        padding: 40px 12px;
    }

    /* 🔹 Card externa ocupa todo el ancho */
    .contact-outer-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 24px 14px;
        box-sizing: border-box;
    }

    /* 🔹 Card interna sin “doble encierro” */
    .contact-inner-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 22px 14px;
        box-sizing: border-box;
    }

    /* 🔹 Grid a una columna */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 22px;
        width: 100%;
    }

    /* 🔹 Textos */
    .contact-header {
        text-align: center;
        margin-bottom: 22px;
    }

    .contact-eyebrow {
        font-size: 26px;
        line-height: 1.2;
    }

    .contact-title,
    .contact-text h2 {
        font-size: 22px;
        line-height: 1.3;
        text-align: center;
    }

    .contact-text p {
        font-size: 15px;
        line-height: 1.6;
        max-width: 100%;
        text-align: center;
    }

    /* 🔹 Formulario: ancho real */
    .contact-form,
    .contact-form form,
    .contact-form input,
    .contact-form textarea,
    .contact-form select,
    .contact-form button {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        font-size: 16px; /* evita zoom iOS */

    }

        .contact-form textarea {
        min-height: 180px;
    }
}

/* -----------------------------------------------------
   MENSAJE DE ERROR – CLOUDFLARE / VALIDACIONES
----------------------------------------------------- */
.form-error-message {
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 16px 0;
    padding: 12px 16px;
    background-color: #fdecea;
    border-left: 4px solid #d93025;
    border-radius: 8px;
    font-size: 14px;
    color: #8a1f11;
    line-height: 1.5;
}


