/* =========================================
   1. RESET & VARIABLES (Buenas Prácticas Base)
   ========================================= */


:root {
    --color-primary: #0056b3; /* Azul STI (aproximado) */
    --color-secondary: #007bff; /* Azul teléfono */
    --color-dark: #333333; /* Color de fondo nav */
    --color-text: #555555;
    --color-light: #ffffff;
    --font-main: 'Montserrat', 'Arial', sans-serif; /* Reemplazar por fuente real si se usa Google Fonts */
    --max-width: 1200px;
    --header-height-mobile: 60px; /* Ejemplo para el nav */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Clases de utilidad */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* =========================================
   2. HEADER - ZONA DE MARCA (Mobile First)
   ========================================= */
.header__brand {
    display: flex;
    flex-direction: column; /* Apilado en móvil */
    align-items: center;
    padding: 20px 15px;
    text-align: center;
}

.header__logo-container {
    margin-bottom: 15px;
}

.header__logo {
    max-height: 100px; /* Ajustar según imagen real */
    margin: 0 auto;
}

.header__slogan {
    font-size: 14px;
    margin-top: 5px;
}

.header__phone {
    font-size: 55px; /* Grande como en la imagen */
    font-family: 'Agency FB', 'sans-serif';
    font-weight: bold;
    color: #ffbc53;
}

/* =========================================
   3. NAVEGACIÓN (Mobile First - Menú Hamburguesa)
   ========================================= */
.nav {
    background-color: var(--color-dark);
    position: relative; /* Para el posicionamiento del menú desplegable */
    z-index: 100;
}

.nav__container {
    display: flex;
    justify-content: flex-end; /* Botón a la derecha */
    align-items: center;
    height: 50px; /* Altura de la barra oscura en móvil */
}

/* Estilos del Botón Hamburguesa */
.nav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav__toggle-bar {
    width: 100%;
    height: 3px;
    background-color: var(--color-light);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Estilos de la Lista (Oculta por defecto en móvil) */
.nav__list {
    position: absolute;
    top: 100%; /* Justo debajo del nav */
    left: 0;
    width: 100%;
    background-color: var(--color-dark);
    display: flex;
    flex-direction: column;
    max-height: 0; /* Oculto */
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

/* Clase que añadirá JS para abrir el menú */
.nav__list--open {
    max-height: 500px; /* Altura máxima suficiente para todos los enlaces */
}

.nav__item {
    border-bottom: 1px solid #444; /* Separador en móvil */
}

.nav__link {
    display: block;
    padding: 15px 20px;
    color: var(--color-light);
    font-size: 14px;
    text-transform: uppercase;
}

.nav__link:hover,
.nav__link--active {
    background-color: #555; /* Color de hover sutil */
}

/* Transformación de la hamburguesa a 'X' cuando el menú está abierto */
.nav__toggle--open .nav__toggle-bar:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}
.nav__toggle--open .nav__toggle-bar:nth-child(2) {
    opacity: 0;
}
.nav__toggle--open .nav__toggle-bar:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}


/* =========================================
   4. SLIDER (Mobile First)
   ========================================= */
.slider {
    position: relative;
    overflow: hidden;
}

.slider__container {
    display: grid; /* Grid para superponer imágenes fácilmente */
    place-items: center;
}

.slider__item {
    grid-area: 1 / 1 / 2 / 2; /* Todas las imágenes en la misma celda */
    opacity: 0; /* Ocultas por defecto */
    transition: opacity 0.5s ease-in-out;
}

.slider__item--active {
    opacity: 1; /* Solo la activa es visible */
}

.slider__image {
    width: 100%;
    height: auto;
    object-fit: cover; /* Asegura que cubra el área si hay relación de aspecto diferente */
}

/* Ajuste de altura del slider para móvil (opcional) */
@media (max-width: 767px) {
    .slider__container {
        min-height: 200px; /* Altura mínima en móviles pequeños */
    }
}


/* =========================================
   5. MEDIA QUERIES (Adaptación a ESCRITORIO)
   ========================================= */
@media (min-width: 768px) {
    
    /* Zona de Marca: Una línea (Flexbox horizontal) */
    .header__brand {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        padding: 30px 15px;
    }

    .header__logo-container {
        margin-bottom: 0;
        display: flex;
        align-items: center;
    }
    
    .header__logo {
        margin: 0 15px 0 0;
        max-height: 100px; /* Un poco más grande en escritorio */
    }

    /* Navegación: Cinta Horizontal (Flexbox) */
    .nav__toggle {
        display: none; /* Ocultar hamburguesa */
    }

    .nav__container {
        justify-content: center; /* Centrar menú como en la imagen */
        height: auto; /* Dejar que los enlaces den la altura */
    }

    .nav__list {
        position: static; /* Volver a flujo normal */
        flex-direction: row; /* Enlaces en línea */
        max-height: none; /* Siempre visible */
        width: auto;
        background-color: transparent;
    }

    .nav__item {
        border-bottom: none;
        position: relative;
    }

    /* Separadores verticales '|' (Usando pseudoelementos ::after) */
    .nav__item:not(:last-child)::after {
        content: "|";
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        color: #777;
    }

    .nav__link {
        padding: 15px 25px; /* Más espaciado lateral */
        font-size: 13px; /* Como en la referencia */
    }

    /* Slider Completo en Escritorio sin recortes */
    .slider {
        max-height: none;
    }

    .slider__image {
        width: 100%;
        height: auto;
        max-height: 420px;
        object-fit: contain;
    }

    .header__phone {
    font-size: 70px; /* Grande como en la imagen */
}
}

/* Media Query para pantallas grandes */
@media (min-width: 1200px) {
    .slider {
        max-height: none;
    }
}

/* =========================================
   UTILITIES & WHATSAPP BUTTONS
   ========================================= */
.btn-whatsapp-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #FFFFFF !important;
    padding: 0.85rem 1.75rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-whatsapp-large:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: #FFFFFF !important;
}

.u-text-center { text-align: center; }
.u-margin-v-md { margin-top: 1.25rem; margin-bottom: 1.25rem; }
.u-margin-v-lg { margin-top: 2rem; margin-bottom: 2rem; }

.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.alert-success {
    background-color: #DEF7EC;
    color: #03543F;
    border: 1px solid #BCF0DA;
}
.alert-error {
    background-color: #FDE8E8;
    color: #9B1C1C;
    border: 1px solid #FBD5D5;
}

/* =========================================
   TARJETA DESTACADA DE CORREOS CORPORATIVOS
   ========================================= */
.email-highlight-box {
    background: linear-gradient(135deg, #1E3A8A, #0284C7);
    color: #FFFFFF;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem auto 0.5rem auto;
    max-width: 780px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.email-highlight-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.85rem;
    color: #E0F2FE;
}

.email-highlight-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
}

.email-badge {
    background-color: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
    color: #FFFFFF !important;
    padding: 0.65rem 1.25rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.email-badge:hover {
    background-color: #FFFFFF;
    color: #1E3A8A !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
    .email-highlight-box {
        padding: 1rem;
        margin: 1.25rem 0.5rem 0.5rem 0.5rem;
    }
    .email-badge {
        font-size: 0.85rem;
        padding: 0.5rem 0.9rem;
        width: 100%;
        justify-content: center;
    }
}