/* ===================================================
   ESTILOS DE CONTACTO CON VIDEO HORIZONTAL INTEGRADO
   =================================================== */
.contact-page-container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 40px 20px;
}

.contact-header-section {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.contact-header-section h1 {
    font-size: 36px;
    color: var(--text-dark);
    margin: 8px 0 12px 0;
}

.contact-lead {
    font-size: 15px;
    color: #555E66;
    line-height: 1.6;
}

/* --- CONTENEDOR NUEVO DEL VIDEO HORIZONTAL --- */
.contact-video-hero-section {
    width: 100%;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.chef-horizontal-video-wrapper {
    width: 100%;
    max-width: 992px; /* Forzamos el ancho máximo de tu archivo */
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 992 / 432; /* Proporción horizontal exacta de tu video */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    background-color: #000000;
}

.chef-video-horizontal {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- BLOQUE DE FORMULARIO + SIDEBAR --- */
.contact-layout-split {
    display: flex;
    gap: 35px;
    align-items: flex-start;
}

.contact-form-wrapper {
    flex: 1.5;
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    border: 1px solid #E5E7EB;
}

.form-row-group {
    display: flex;
    gap: 20px;
}

.form-row-group .input-box {
    flex: 1;
}

.input-box {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.input-box label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.input-box input,
.input-box select,
.input-box textarea {
    padding: 12px 15px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 14px;
    background-color: #FAF8F5;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.2s;
}

.input-box input:focus,
.input-box select:focus,
.input-box textarea:focus {
    border-color: var(--primary-color);
    background-color: white;
}

.btn-submit-form {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s;
}

.btn-submit-form:hover { background-color: #725E31; }

/* Caja lateral WhatsApp */
.contact-sidebar-direct {
    flex: 0.9;
    width: 100%;
}

.direct-channel-card {
    background-color: #1A1F24;
    color: white;
    padding: 35px 25px;
    border-radius: 12px;
    text-align: center;
}

.direct-channel-card h3 { font-size: 18px; margin-bottom: 10px; }
.direct-channel-card p { color: #A0A5A9; font-size: 14px; line-height: 1.5; margin-bottom: 25px; }

.btn-sidebar-wa {
    display: block;
    background-color: transparent;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color);
    padding: 12px 0;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    transition: background 0.2s, color 0.2s;
}

.btn-sidebar-wa:hover {
    background-color: var(--primary-color);
    color: white !important;
}

/* ==========================================================
   INTERRUPTOR RESPONSIVO ORDENADO: VIDEO -> FORMULARIO -> WA
   ========================================================== */
@media (max-width: 992px) {
    /* El video se adapta reduciendo proporcionalmente su altura en pantallas pequeñas */
    .chef-horizontal-video-wrapper {
        aspect-ratio: 16 / 9; /* Formulado estándar de video en celulares para que no quede como una franja muy delgada */
    }

    /* Forzamos a las columnas a apilarse en el orden vertical correcto */
    .contact-layout-split {
        flex-direction: column;
        gap: 30px;
        width: 100%;
    }

    .form-row-group {
        flex-direction: column;
        gap: 0;
    }

    .contact-form-wrapper {
        padding: 25px 20px;
        width: 100%;
        order: 1; /* Garantiza ir inmediatamente abajo del video */
    }

    .contact-sidebar-direct {
        width: 100%;
        order: 2; /* Desplaza el cuadro de WhatsApp al fondo del todo */
    }
}
