/* ==========================================================================
   1. VARIABLES GLOBALES Y RESET
   ========================================================================== */
:root {
    --azul-rey: #0041C2;
    --blanco-gris: #F2F2F2;
    --blanco: #FFFFFF;
    --negro: #1A1A1A;
    --verde-wa: #25D366; /* Color oficial de WhatsApp */
    --fuente-montserrat: 'Montserrat', sans-serif;
    --fuente-industrial: 'Barlow Semi Condensed', sans-serif;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

html, body {
    overflow-x: hidden; 
    width: 100%;
    position: relative;
    scroll-behavior: smooth;
}

body { 
    font-family: var(--fuente-montserrat); 
    background-color: var(--blanco-gris); 
}

img, iframe, video {
    max-width: 100% !important;
}

/* ==========================================================================
   2. HEADER Y MENÚ HAMBURGUESA
   ========================================================================== */
.main-header {
    background-color: var(--azul-rey);
    padding: 10px 5%;
    position: sticky;
    top: 0; 
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-col { flex: 1; display: flex; align-items: center; }
.logo-col { justify-content: flex-start; }
.menu-col { justify-content: center; flex: 2; }
.user-col { justify-content: flex-end; }

.logo-small { height: 40px; }

/* Menú en Escritorio */
.nav-links { 
    list-style: none; 
    display: flex; 
    gap: 25px; 
}

.nav-links a { 
    color: var(--blanco); 
    text-decoration: none; 
    font-weight: bold; 
    font-size: 14px; 
    text-transform: uppercase; 
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active { color: #A0C4FF; }

/* Ícono de Usuario (Puro y sin texto) */
.user-icon i { 
    color: var(--blanco); 
    font-size: 26px; 
    transition: transform 0.3s ease;
}

.user-icon:hover i { transform: scale(1.1); }

/* Botón 3 líneas (Oculto en PC) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 25px; height: 3px; background-color: var(--blanco);
    transition: all 0.3s ease;
}

/* Responsivo Header (Móvil) - CENTRADO PERFECTO DEL MENÚ */
@media (max-width: 768px) {
    .navbar { position: static; }

    .menu-toggle { 
        display: flex; position: absolute; left: 50%; transform: translateX(-50%); 
    }
    
    .nav-links {
        display: none; flex-direction: column; position: absolute;
        top: 100%; left: 0; width: 100%; background-color: var(--azul-rey);
        padding: 25px 0; text-align: center; box-shadow: 0 10px 15px rgba(0,0,0,0.3); z-index: 9999;
    }

    .nav-links.active { display: flex !important; }
    .nav-links li { margin: 18px 0; }
    
    .logo-col, .user-col { flex: 1; }

    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ==========================================================================
   3. BANNER PREMIUM
   ========================================================================== */
.banner-imagen-container {
    width: 100%;
    height: 400px; 
    background-color: var(--negro); 
    overflow: hidden; 
    border-bottom: 6px solid var(--azul-rey);
    display: flex;
    align-items: center;
    position: relative; 
}

.banner-img {
    width: 100%; height: 100%; object-fit: cover; opacity: 0.55; 
}

.banner-overlay {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); 
    color: white; text-align: center; width: 90%; z-index: 10;
}

.banner-overlay h1 { 
    font-family: var(--fuente-montserrat); font-weight: 900; font-size: 4.5rem; 
    text-transform: uppercase; letter-spacing: 8px; line-height: 1.1; margin-bottom: 10px; 
    text-shadow: 0px 4px 15px rgba(0, 0, 0, 0.8);
    background: linear-gradient(to bottom, #ffffff, #f0f0f0); 
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.banner-overlay p { 
    font-family: var(--fuente-montserrat); font-weight: 400; font-size: 1.2rem; 
    text-transform: uppercase; letter-spacing: 5px; text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.8);
}

.banner-overlay p::after {
    content: ''; display: block; width: 60%; height: 3px; background-color: var(--azul-rey); 
    margin: 15px auto 0; box-shadow: 0px 0px 10px var(--azul-rey);
}

@media (max-width: 768px) {
    .banner-imagen-container { height: 250px; }
    .banner-overlay h1 { font-size: 2.2rem; letter-spacing: 3px; }
    .banner-overlay p { font-size: 0.85rem; letter-spacing: 2px; }
}

/* ==========================================================================
   4. EQUIPO DE VENTAS (TARJETAS DE ASESORES)
   ========================================================================== */
.equipo-ventas {
    padding: 80px 5%;
    background-color: var(--blanco-gris);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-family: var(--fuente-industrial);
    font-weight: 900;
    font-size: 3rem;
    color: var(--negro);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-title h2 span { color: var(--azul-rey); }
.section-title p { color: #555; font-size: 1.1rem; }

.vendedores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 2fr));
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
}

.vendedor-card {
    background-color: var(--blanco);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-bottom: 5px solid var(--azul-rey);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vendedor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 65, 194, 0.15);
}

.v-img-frame {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: #e0e0e0; /* Color de fondo por si la foto no carga */
}

.v-img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top; /* Asegura que se vean las caras */
    transition: transform 0.5s ease;
}

.vendedor-card:hover .v-img-frame img { transform: scale(1.05); }

.v-body {
    padding: 25px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.v-body h3 {
    font-family: var(--fuente-montserrat);
    font-weight: 900;
    color: var(--negro);
    font-size: 1.3rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.v-tag {
    background-color: rgba(0, 65, 194, 0.1);
    color: var(--azul-rey);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 5px 15px;
    border-radius: 50px;
    margin-bottom: 15px;
    display: inline-block;
}

.v-body p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    font-weight: 700;
}

/* Botón WhatsApp */
.btn-wa-vendedor {
    background-color: var(--verde-wa);
    color: var(--blanco);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    padding: 10px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.btn-wa-vendedor:hover {
    background-color: #1ebe57; /* Un verde un poco más oscuro */
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

@media (max-width: 768px) {
    .section-title h2 { font-size: 2.2rem; }
    .v-img-frame { height: 280px; }
}

/* ==========================================================================
   5. SECCIÓN DE MAPA Y CONTACTO GENERAL
   ========================================================================== */
.mapa-section {
    padding: 80px 5%;
    background-color: var(--blanco);
}

.map-container-flex {
    display: flex;
    gap: 50px;
    max-width: 1300px;
    margin: 0 auto;
    align-items: center;
}

.map-text { flex: 1; }

.map-text h2 {
    font-family: var(--fuente-industrial);
    font-weight: 900;
    font-size: 2.8rem;
    color: var(--negro);
    text-transform: uppercase;
    margin-bottom: 30px;
    line-height: 1.1;
}

.map-text h2 span { color: var(--azul-rey); display: block; }

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.info-item i {
    background-color: var(--azul-rey);
    color: var(--blanco);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 65, 194, 0.2);
}

.info-item p {
    font-family: var(--fuente-montserrat);
    color: #444;
    font-size: 1.05rem;
    font-weight: 700;
}

.map-frame {
    flex: 1.2;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 5px solid var(--blanco-gris);
    height: 400px; /* Altura del mapa */
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 992px) {
    .map-container-flex { flex-direction: column; gap: 40px; }
    .map-text h2 { font-size: 2.2rem; text-align: center; }
    .info-item { justify-content: flex-start; }
    .map-frame { width: 100%; height: 350px; }
}

/* ==========================================================================
   6. FOOTER (Por si decides agregarlo a esta página luego)
   ========================================================================== */
.footer-copy { 
    background-color: var(--azul-rey); 
    color: var(--blanco); 
    text-align: center; 
    padding: 30px 5%; 
    font-size: 0.85rem; 
    font-family: var(--fuente-montserrat);
}
