/* ================================================================
   SECCIÓN CONTACTO - TEXTOS 100% LÍQUIDOS (VW)
   ================================================================ */

/* --- HERO SECTION --- */
.contacto-hero {
    width: 100%;
    padding: 5vw 5%; 
    background-color: #1a1a1a;
    overflow: hidden;
}
.contacto-text {
    margin-top: -8vw; /* Ajusta este número: cuanto más negativo, más sube */
}
.contacto-hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    gap: 3vw;
}

.titulo-liquido {
    font-size: 6vw; /* Líquido puro */
    color: #d90000; 
    font-weight: 800;
    line-height: 1.1;
    margin-top: 2vw;
    text-transform: uppercase;
}

.subtitulo-liquido {
    font-size: 1.8vw; /* Líquido puro */
    color: #ffffff;
    line-height: 1.5;
    max-width: 40vw;
    opacity: 0.9;
    margin-top: 2vw;
}

.contacto-logo {
    flex: 0.8;
    display: flex;
    justify-content: center;
}

.logo-fluido {
    width: 30vw; /* Ajustado a vista de pantalla */
    max-width: 450px;
    height: auto;
}

/* --- CONTACT SECTION --- */
.contact-section {
    background-color: #1a1a1a; 
    padding: 2vw 5%;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch; 
    gap: 4vw;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- INFO BLOCKS (TEXTOS LÍQUIDOS) --- */
.info-block {
    margin-bottom: 2vw;
}

.info-block h3, .info-block .rojo {
    color: #f50000 !important; 
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0.5vw;
    font-size: 1.5vw; /* Líquido puro */
}

.info-block p, .info-block .blanco {
    color: #ffffff !important;
    opacity: 0.9;
    font-size: 1.2vw; /* Líquido puro */
}

/* --- MAPA (ESTADO ORIGINAL) --- */
.contact-info-map {
    display: flex;
    flex-direction: column;
    height: 100%; 
}

.contact-map {
    flex-grow: 1; 
    position: relative;
    min-height: 20vw; 
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 1.5vw;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-map iframe {
    width: 100%;
    height: 100%; 
    border: none;
}

/* --- FORMULARIO LÍQUIDO --- */
.contact-form-box {
    padding: 4vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff; 
    border-radius: 15px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-form-box h2 {
    font-size: 2.5vw; /* Líquido puro */
    color: #1a1a1a;
    margin-bottom: 2vw;
    font-weight: 700;
}

.form-subtitle {
    margin-bottom: 1.5vw;
    color: #666;
    font-size: 1.1vw; /* Líquido puro */
}

.input-group {
    margin-bottom: 1.2vw;
}

.input-group input, 
.input-group textarea {
    width: 100%;
    padding: 1vw;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1vw; /* Líquido puro */
    background: #f9f9f9;
    outline: none;
}

.btn-submit {
    width: 100%;
    padding: 1.2vw;
    background-color: #f50000;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.2vw; /* Líquido puro */
    font-weight: 600;
    cursor: pointer;
    margin-top: 1vw;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    opacity: 0.95;
}



/* --- ESTILO PARA EL NUEVO BOTÓN --- */
.btn-escribenos {
    display: inline-block;
    margin-top: 2vw;
    padding: 1vw 2.5vw;
    background-color: #d90000; /* Rojo igual al título */
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2vw; /* Tamaño líquido */
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-escribenos:hover {
    background-color: transparent;
    border-color: #d90000;
    color: #d90000;
    transform: translateY(-3px);
}




/* =========================================
   ESTILOS MÓVIL (MAX-WIDTH: 768px)
   Orden: 1. Info | 2. Formulario | 3. Mapa Total
   ========================================= */
   @media screen and (max-width: 768px) {

    /* --- 1. HERO CONTACTO (Textos y Logo) --- */
    .contacto-hero-container {
        flex-direction: column;
        text-align: center;
        gap: 8vw;
    }

    .contacto-text { margin-top: 0; }
    .titulo-liquido { font-size: 10vw; margin-bottom: 4vw; }
    .subtitulo-liquido { font-size: 4.5vw; max-width: 100%; margin-bottom: 6vw; }
    .logo-fluido { width: 60vw; }
    .btn-escribenos { font-size: 4.5vw; padding: 4vw 8vw; border-radius: 8px; }

    /* --- 2. CONTENEDOR DE CONTACTO --- */
    .contact-container {
        display: flex;
        flex-direction: column; 
        gap: 12vw;
    }

    /* Bloque 1: INFORMACIÓN (TELÉFONO, DIRECCIÓN, ETC.) */
    .contact-info-map {
        order: 1; /* PRIMERO */
        display: flex;
        flex-direction: column;
    }

    .info-block { margin-bottom: 8vw; text-align: center; }
    .info-block h3, .info-block .rojo { font-size: 6.5vw; margin-bottom: 2vw; color: #f50000 !important; }
    .info-block p, .info-block .blanco { font-size: 5vw; color: #ffffff !important; }

    /* Bloque 2: FORMULARIO (ENCIMA DEL MAPA) */
    .contact-form-box {
        order: 2; /* SEGUNDO */
        padding: 10vw 6vw;
        border-radius: 20px;
        background: #ffffff;
    }

    .contact-form-box h2 { font-size: 8vw; text-align: center; color: #1a1a1a; }
    .form-subtitle { font-size: 4vw; text-align: center; margin-bottom: 6vw; color: #666; }

    .input-group { margin-bottom: 5vw; }
    .input-group input, .input-group textarea { padding: 4vw; font-size: 4.5vw; border-radius: 8px; }
    .btn-submit { padding: 5vw; font-size: 5.5vw; border-radius: 8px; }

    /* Bloque 3: MAPA TOTAL (AL FINAL) */
    .contact-map {
        order: 3; /* TERCERO */
        height: 95vw;
        width: 100%;
        margin-top: 2vw;
        padding: 0 !important; /* ELIMINA HUECOS BLANCOS */
        border-radius: 20px;
        overflow: hidden;
        position: relative;
    }

    .contact-map iframe {
        position: absolute; /* Ocupa el 100% del contenedor sin márgenes */
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        border: 0;
        display: block;
    }

    .contact-section { padding: 15vw 5%; background-color: #1a1a1a; }
}