/* ==========================================
   VARIABLES CORPORATIVAS DE COLOR
   ========================================== */
:root {
    --primary-blue: #164377;
    --accent-red: #b70e0c;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #ffffff;
    --bg-gray: #f8f9fa;
    --icon-gray: #7d8590;
    --font-main: 'Montserrat', sans-serif;
}

/* RESET GENERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================
   ESTILOS DE LA PARTE 1: HEADER & HERO
   ========================================= */
.main-header {
    background-color: #ffffff !important; /* El !important destruye cualquier candado azul oculto abajo */
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 1.2rem 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

/* ==========================================
   DUPLICAR TAMAÑO DEL LOGOTIPO DE LA CABECERA
   ========================================== */
.main-logo {
    height: 80px !important;    /* Cambiado de 45px a 90px para duplicar su tamaño físico */
    width: auto !important;     /* Mantiene la proporción horizontal exacta para que no se deforme */
    object-fit: contain !important;
}


.main-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2.5rem;
}

.main-nav ul li a {
    color: #164377;   /* Cambiado a Blanco Puro para contraste en PC */
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
     color: #b0b8c4;
}

/* ==========================================
   HERO SECTION CON IMAGEN DE FONDO COMPLETA
   ========================================== */
.hero-section {
    /* Cargamos tu imagen limpia directamente como el fondo de toda la sección */
    background-image: url('assets/images/hero-talento.png');
    background-size: cover;        /* Fuerza a la imagen a cubrir toda la pantalla sin deformarse */
    background-position: center right; /* Alinea al ejecutivo siempre hacia el lado derecho */
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 4rem 4rem 4rem;
    position: relative;
    color: var(--text-light);
}

.hero-content {
    max-width: 650px;
    z-index: 10;
    /* Un ligero sombreado de texto para asegurar lectura perfecta sobre cualquier fondo */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); 
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.highlight-text {
    font-weight: 300;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* Las flechas centradas abajo en la base de la pantalla */
.slider-controls {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1.5rem;
    z-index: 10;
}


/* BOTONES */
.btn-primary {
    display: inline-block;
    background-color: var(--accent-red);
    color: var(--text-light);
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #960b0a;
    transform: translateY(-2px);
}

.hero-image-area {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

.hero-img {
    max-width: 90%;
    height: auto;
    object-fit: cover;
}

.slider-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1.5rem;
    z-index: 10;
}

.slider-controls button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-controls button:hover {
    background: var(--text-light);
    color: var(--primary-blue);
}

/* ==========================================
   ESTILOS DE LA PARTE 2: ¿POR QUÉ ELEGIRNOS?
   ========================================== */
.why-choose-us {
    padding: 6rem 2rem;
    background-color: var(--bg-light);
    text-align: center;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 3rem;
    font-weight: 700;
}

.team-banner {
    width: 100%;
    margin-bottom: 4rem;
}

.panoramic-img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.feature-item {
    padding: 1rem;
}

.feature-icon {
    font-size: 3rem;
    color: var(--icon-gray);
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.feature-item h3 {
    font-size: 1.4rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-item p {
    color: #666666;
    font-size: 1rem;
}

.btn-secondary {
    display: inline-block;
    background-color: var(--accent-red);
    color: var(--text-light);
    text-decoration: none;
    padding: 0.9rem 3rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #960b0a;
    box-shadow: 0 5px 15px rgba(183, 14, 12, 0.3);
}

/* ==========================================
   FRANJA ROJA DE SEPARACIÓN (PROPUESTA)
   ========================================== */

.divider-brand-line {
    width: 70%;               /* Limita el ancho de la línea al 70% */
    height: 3px;              /* Reduce el grosor a la mitad para que no sea muy gruesa */
    background-color: var(--accent-red);
    margin: 2rem auto;        /* El "auto" a los lados crea los huecos y la centra perfectamente */
    border-radius: 2px;       /* Suaviza sutilmente las esquinas de la línea */
}
/* ==========================================
   ESTILOS DE LA PARTE 3: NUESTRAS EMPRESAS (FIJO)
   ========================================== */
.companies-section {
    padding: 6rem 2rem;
    background-color: var(--bg-light);
    text-align: center;
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.company-card {
    background-color: var(--bg-light);
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    /* Las 3 tarjetas tienen el rectángulo rojo de forma fija siempre */
    border: 2px solid var(--accent-red);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* ==========================================================================
   CONTROL DE TAMAÑO POR PORCENTAJE PARA LOS ICONOS DE LAS EMPRESAS
   ========================================================================== */
.company-icon-box {
    width: 100%;
    height: auto;            /* Permite que el contenedor se adapte a la altura de la imagen */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.company-logo-img {
    width: 70%;              /* Cambia este porcentaje si los quieres un poco más grandes o pequeños */
    height: auto;            /* Mantiene la proporción original para que no se estiren feo */
    object-fit: contain;
    transition: transform 0.3s ease;
}

.company-card h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 600;
}

.company-card p {
    color: #555555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* El botón Ver Más ya no está oculto, es completamente visible siempre */
.btn-card-hidden {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--text-light);
    text-decoration: none;
    padding: 0.6rem 2rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-card-hidden:hover {
    background-color: #0f3056; /* Un tono un poco más oscuro al presionar en PC */
}


/* ==========================================
   ESTILOS DE LA PARTE 4: CIERRE Y FOOTER
   ========================================== */
.main-footer {
    background-color: #1a1a1a;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Franja Azul del Mosaico de Marcas */
.footer-brand-mosaic {
    background-color: var(--primary-blue);
    padding: 2.5rem 2rem;
}

.mosaic-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.mosaic-title {
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* ==========================================
   CORRECCIÓN DE IMÁGENES EN EL MOSAICO AZUL
   ========================================== */
.mosaic-logos-grid {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.mosaic-item {
    flex: 1;
    min-width: 120px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

/* ==========================================================================
   CORRECCIÓN DEFINITIVA: LOGOS TRANSPARENTES FLUIDOS POR %
   ========================================================================== */
.mosaic-item img {
    width: 100%;               /* ¡AQUÍ MANEJAS EL PORCENTAJE! Súbelo a 90% o bájalo a 70% a tu gusto */
    height: auto;             /* Mantiene la proporción perfecta para que no se deformen */
    max-height: 120px;         /* Techo de seguridad vertical para permitir que el % se estire horizontalmente */
    object-fit: contain;      
    
    background-color: transparent !important; 
    padding: 0 !important;
    box-shadow: none !important;
}


.mosaic-item:hover {
    transform: scale(1.05);   /* Sutil animación de crecimiento al pasar el cursor en PC */
}

/* Cuerpo del Footer Oscuro */
.footer-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem 4rem 2rem;
}

.footer-columns-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 1fr 1fr;
    gap: 4rem;
}

.footer-logo {
    max-height: 50px;
    margin-bottom: 1.5rem;
}

/* CONTENEDOR DE REDES SOCIALES EN CUADRADITOS AZULES */
.footer-social-icons {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.footer-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: var(--primary-blue); /* Cuadradito Azul Corporativo (#164377) */
    border-radius: 2px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Configuración para pintar los vectores SVG de blanco */
.footer-social-icons a svg {
    width: 18px;
    height: 18px;
    fill: var(--text-light); /* Icono Blanco Puro */
}

.footer-social-icons a:hover {
    background-color: var(--accent-red); /* Cambia a rojo al pasar el ratón */
    transform: translateY(-2px);
}

/* Títulos y Enlaces del Footer */
.footer-columns-grid h4 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
}

.footer-columns-grid h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 30px;
    height: 2px;
    background-color: var(--accent-red);
}

.footer-columns-grid ul {
    list-style: none;
}

.footer-columns-grid ul li {
    margin-bottom: 1rem;
    color: #cccccc;
    line-height: 1.6;
}

.footer-columns-grid ul li strong {
    color: var(--text-light);
}

.footer-column-links ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-column-links ul li a:hover {
    color: var(--text-light);
    padding-left: 4px;
}

/* Barra inferior de Copyright */
.footer-bottom {
    background-color: #111111;
    padding: 1.5rem 2rem;
    text-align: center;
    border-top: 1px solid #222222;
    color: #777777;
    font-size: 0.85rem;
}
/* ==========================================================================
   DISEÑO ADAPTABLE (RESPONSIVE MEDIA QUERIES)
   ========================================================================== */

/* Tablets y pantallas medianas (Menos de 1024px) */
@media screen and (max-width: 1024px) {
    .header-container { padding: 0 1.5rem; }
    .main-nav ul { gap: 1.5rem; }
    
    .hero-section {
        padding: 7rem 2rem 4rem 2rem;
        flex-direction: column;
        text-align: center;
        min-height: auto;
    }
    .hero-content { max-width: 100%; margin-bottom: 3rem; }
    .hero-content h1 { font-size: 2.8rem; }
    .hero-image-area { width: 100%; }
    .hero-img { max-width: 70%; }
    .footer-columns-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

/* Celulares grandes y medianos (Menos de 768px) */
@media screen and (max-width: 768px) {
    .header-container {
        flex-direction: row; /* Mantiene el logo a la izquierda y el menú a la derecha en la misma línea */
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 1.5rem;
    }
.hero-section {
        padding: 13rem 1.5rem 4rem 1.5rem !important; /* Añade el aire superior sin romper tus fondos ni alineaciones */
        min-height: auto !important;
    }
    /* 1. TEXTO DEL MENÚ DESPLEGABLE EN BLANCO PURO */
    .main-nav ul li a {
        color: #ffffff !important;   /* Letras blancas para contraste óptimo sobre el panel azul */
        font-weight: 600 !important;
        font-size: 1.3rem !important; /* Aumentado ligeramente para lectura premium */
        display: block;
        width: 100%;
    }

    .main-header {
        position: absolute;
        background-color: #ffffff !important; /* Fuerza la barra superior fija a ser blanca siempre */
        padding: 0.8rem 0;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%; /* Oculta el panel a la derecha */
        width: 75%;
        height: 100vh;
        background-color: var(--primary-blue);
        box-shadow: -5px 0 15px rgba(0,0,0,0.15);
        padding: 8rem 2.5rem 2rem 2.5rem; /* El 8rem empuja "Home" hacia abajo para que respire de la X */
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1050;
    }

    .main-nav.open {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 2.5rem;
    }

    .hero-content h1 { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 2rem; }
    .btn-primary { padding: 0.8rem 2rem; width: 100%; max-width: 280px; }
    .hero-img { max-width: 90%; }
    .panoramic-img { max-height: 250px; }
    .features-grid, .companies-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-columns-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
    .footer-columns-grid h4::after { left: 50%; transform: translateX(-50%); }
    .footer-brand-mosaic { padding: 2rem 1rem; }
    .mosaic-logos-grid { justify-content: center; gap: 1.5rem; }
}

/* Celulares pequeños (Menos de 480px) */
@media screen and (max-width: 480px) {
    .hero-content h1 { font-size: 1.8rem; }
    .section-title { font-size: 1.8rem; }
}

/* ==========================================
   ESTILOS GENERALES DEL BOTÓN MENÚ HAMBURGUESA
   ========================================== */
.menu-toggle {
    display: none; /* Oculto por defecto en computadoras */
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

/* 3. LAS TRES RAYAS PASAN A AZUL PARA VERSE SOBRE EL FONDO BLANCO */
.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-blue) !important; /* Azul corporativo (#164377) en estado cerrado */
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Control exclusivo del botón cuando pasa a móvil */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex;
        position: absolute;   /* 2. ALINEACIÓN FIJA DE LA X ARRIBA A LA DERECHA */
        top: 24px;            /* Centrado perfectamente en el eje horizontal del logo */
        right: 1.5rem;
    }

    /* LA X SE VUELVE BLANCA AL ABRIRSE EL MENÚ PARA REALTAR SOBRE EL FONDO AZUL */
    .menu-toggle.open span {
        background-color: #ffffff !important; 
    }

    /* Animación fluida de transformación geométrica a una X exacta */
    .menu-toggle.open span:nth-child(1) {
        transform: translateY(9.5px) rotate(45deg);
    }

    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }

    .menu-toggle.open span:nth-child(3) {
        transform: translateY(-9.5px) rotate(-45deg);
    }
}

