* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #111;
    overflow-x: hidden;
}

.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    background: transparent;
    border-bottom: 1px solid transparent;
    backdrop-filter: none;

    transition: background 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        backdrop-filter 0.4s ease;
}

.header.is-top {
    background: transparent;
    border-bottom: 1px solid transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.header.scrolled {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(12px);
    /* Agrega un sutil desenfoque al bajar */
}

/* CONTAINER */
.container {
    width: 90%;
    max-width: 1400px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 0;
}

/* LOGO */
.logo a {
    display: block;
    position: relative;
    width: 140px;
    height: 40px;
}

.logo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 140px;
    transition: opacity 0.3s ease;
}

.log-img {
    opacity: 1;
}

.log-img-azul {
    opacity: 0;
}

.header.is-top .log-img {
    opacity: 1;
}

.header.is-top .log-img-azul {
    opacity: 0;
}

.header.scrolled .log-img {
    opacity: 0 !important;
}

.header.scrolled .log-img-azul {
    opacity: 1 !important;
}

/* NAV */
.nav {
    display: flex;
    gap: 2rem;
    background: transparent;
}

/* Links sobre el fondo azul del inicio */
.nav a {
    text-decoration: none;
    color: white;
    font-size: .95rem;
    transition: color 0.3s ease;

}

/* Links sobre el fondo blanco cuando haces scroll */
.header.scrolled .nav a {
    color: #1a428a;
}

/* HOVER DINÁMICO */
.nav a:hover {
    color: #4ea1ff;
}

.header.scrolled .nav a:hover {
    color: #1a428a;
    /* Hover azul oscuro cuando el fondo es blanco */
}

/* IDIOMA */
.lang-group {
    display: flex;
    gap: 0.5rem;
}

.lang-group button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    transition: 0.3s;
}

/* Cambios en el botón de idioma sobre scroll blanco */
.header.scrolled .lang-group button {
    border-color: rgba(0, 0, 0, 0.15);
    color: #333;
}

/* Estado del idioma seleccionado */
.lang-group button.active {
    background: white;
    color: #4ea1ff !important;
    border-color: white;
}

/* BUTTONS */
.btn-primary,
.btn-secondary,
.btn-secondary1,
.btn-primary1 {
    padding: 14px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: .3s;
}

.btn-primary {
    background: #1a428a;
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #2859b5;
}

.btn-secondary1 {
    background: transparent;
    color: #1a428a;
    border: 2px solid #1a428a;
}

.btn-secondary1:hover {
    background: #1a428a;
    color: white;
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, .2);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, .08);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;

    background-image: url("../img/proveedores-iEntry.svg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 33, 53, 0.55);
    z-index: 1;
    margin-bottom: -1rem;
}

.hero-content {
    width: 90%;
    max-width: 850px;
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-tag {
    display: inline-block;
    padding: 10px 18px;
    /* CORREGIDO: Bordes y fondos claros para que resalten sobre el azul */
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    margin-bottom: 2rem;
    font-size: .85rem;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, .1);
    color: #ffffff;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    /* CORREGIDO: Título en blanco para contraste */
    color: #ffffff;
}

.hero p {
    font-size: 1.1rem;
    /* CORREGIDO: Párrafo en blanco suave semi-transparente */
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Opcional: Si tienes un botón secundario dentro del hero, hacemos que combine */
.hero .btn-secondary1 {
    color: #ffffff;
    border: 2px solid #ffffff;
}

.hero .btn-secondary1:hover {
    background: #ffffff;
    color: #1a428a;
}

/* Opcional: Si tienes un botón primario dentro del hero, hacemos que resalte en blanco o un tono claro */
.hero .btn-primary {
    background: #ffffff;
    color: #1a428a;
}

.hero .btn-primary:hover {
    background: #eaf1ff;
}

/* SECTIONS */
section {
    padding: 7rem 0;
}

.section-header {
    width: 90%;
    max-width: 800px;
    margin: auto;
    text-align: center;
    margin-bottom: 4rem;
}

.section-header span {
    color: #1a428a;
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: 1px;
}

.section-header h2 {
    font-size: 3rem;
    margin: 1rem 0;
    color: #111;
}

/* Corregido contraste para legibilidad sobre fondo blanco */
.section-header p {
    color: #556270;
    line-height: 1.8;
}

/* FEATURES */
.features-grid {
    width: 90%;
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, .08);
    padding: 2rem;
    border-radius: 24px;
    transition: .4s;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: #1a428a;
    box-shadow: 0 10px 30px rgba(26, 66, 138, 0.05);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: #1a428a;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: #444;
    line-height: 1.7;
}

/* COBERTURA Y MAPA */
#coverage-map {
    width: 90%;
    max-width: 1200px;
    height: 450px;
    margin: 2rem auto;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.map-pin {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.map-pin.office {
    background-color: #1a428a;
}

.map-pin.presence {
    background-color: #4ea1ff;
}

/* SECTORES SLIDER CONTROLS */
.sectors-menu {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.sectors-menu button {
    padding: 10px 20px;
    border: 1px solid #1a428a;
    background: white;
    color: #1a428a;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.sectors-menu button.active {
    background: #1a428a;
    color: white;
}

/* VIDEO */
.video-content {
    width: 90%;
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
}

.video-text span {
    color: #1a428a;
    font-weight: 700;
}

.video-text h2 {
    font-size: 3rem;
    margin: 1rem 0;
}

.video-text p {
    color: #444;
    line-height: 1.8;
}

.video-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
}

.benefits-grid {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: -3rem;
}

.benefits-container h2 {
    text-align: center;
    color: #ffffff;
}

.benefits-container h1 {
    text-align: center;
    color: #ffffff;
}

.benefits-container h4 {
    text-align: center;
    color: #ffffff;
}

.benefits-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: rgb(33, 77, 144);
}

.benefit-box {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, .06);
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.benefit-box h3 {
    font-size: 3rem;
    color: #1a428a;
    margin-bottom: 1rem;
}

.benefit-box p {
    color: #444;
}

.video-section {
    padding: 7rem 0;
}

/* CTA */
.cta-section {
    padding-top: 2rem;
}

.cta-card {
    width: 90%;
    max-width: 1000px;
    margin: auto;
    background: linear-gradient(135deg, #10284f, #1a428a);
    padding: 5rem;
    border-radius: 32px;
    text-align: center;
}

.cta-card span {
    color: #eaf1ff;
    letter-spacing: 1px;
}

.cta-card h2 {
    font-size: 3rem;
    margin: 1rem 0;
    color: white;
}

.cta-card p {
    margin-bottom: 2rem;
    color: #dfe8f4;
}

/* FOOTER */
.footer {
    padding: 3rem 0;
}

.footer-content {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.footer-content img {
    width: 130px;
    margin-bottom: 1rem;
    filter: invert(19%) sepia(59%) saturate(3048%) xlink-href() hue-rotate(209deg) brightness(93%) contrast(93%);

}

.footer-content p {
    color: #444;
    margin-bottom: 1rem;
}

.footer-content span {
    color: #7f8b99;
    font-size: .9rem;
}

/* INTERSECTION OBSERVER ANIMATIONS (Inyectadas por activarAnimacionesScroll) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE & MOBILE TOGGLE SYSTEM */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.nav-toggle span {
    width: 100%;
    height: 2px;
    background-color: white;
    transition: 0.3s ease;
}

.header.scrolled .nav-toggle span {
    background-color: #111;
}

/* Efecto cruz cuando el menu está abierto (.menu-open inyectado por JS) */
.header.menu-open .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: white !important;
}

.header.menu-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.header.menu-open .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: white !important;
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

@media(max-width:992px) {
    .nav-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.50);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-left: 1px solid rgba(255, 255, 255, 0.06);
        z-index: 999;
        flex-direction: column;
        padding: 7rem 3rem 2rem 3rem;
        gap: 2rem;
        transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    }

    .nav.active {
        right: 0;
    }

    .nav a {
        font-size: 1.1rem;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.9) !important;
        padding: 0.3rem 0;
        border-bottom: none;
        letter-spacing: 0.01em;
    }

    .nav a:hover {
        color: #ffffff !important;
    }

    /* Botones ES/EN dentro del nav */
    .nav .lang-mobile {
        margin-top: auto;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        display: flex;
        gap: 0.5rem;
    }

    .nav .lang-mobile button {
        background: transparent;
        border: 1.5px solid rgba(255, 255, 255, 0.5);
        color: rgba(255, 255, 255, 0.8);
        padding: 8px 18px;
        border-radius: 999px;
        font-weight: 700;
        font-size: 0.85rem;
        cursor: pointer;
        transition: 0.25s ease;
    }

    .nav .lang-mobile button.active {
        background: transparent;
        border-color: #ffffff;
        color: #ffffff;
    }

    .nav .lang-mobile button:hover {
        border-color: #ffffff;
        color: #ffffff;
    }

    .video-content {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .section-header h2,
    .video-text h2,
    .cta-card h2 {
        font-size: 2.2rem;
    }
}

@media(max-width:768px) {
    .hero-buttons {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .cta-card {
        padding: 3rem 2rem;
    }

    .nav-cta {
        display: none;
        /* Esconde el CTA del header en móvil para no saturar espacio */
    }

}


/* --- FOOTER CENTRADO --- */
.footer {
  background-color: #1f4a8a;
  color: #ffffff;
  padding: 80px 20px 40px;
  text-align: center; /* Centra el texto por defecto en todo el footer */
}

.footer-container {
  max-width: 1200px;
  margin: auto;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* En pantallas grandes (Desktop), mantenemos columnas equilibradas y centradas */
@media (min-width: 769px) {
  .footer-top {
    display: grid;
    /* Ajustado a 4 columnas proporcionales */
    grid-template-columns: 1.5fr repeat(3, 1fr); 
    gap: 48px;
    text-align: center; /* Alineación centrada */
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-ientry {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.footer-ientry img {
  width: 120px;
  height: auto;
  object-fit: contain;
}

.footer-brand p {
  font-size: 14px;
  opacity: 0.8;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-column h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-column li {
  margin-bottom: 10px;
}

.footer-column a {
  color: #dbe6f5;
  text-decoration: none;
  font-size: 14px;
}

.footer-column a:hover {
  text-decoration: underline;
}

.footer-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.15);
  margin: 40px 0 24px;
}

/* --- FOOTER BOTTOM CENTRADO CON ESPACIO PARA LA BANDERA --- */
.footer-bottom {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  opacity: 0.8;
  /* Espacio extra en la derecha para que no choque con la bandera flotante */
  padding-right: 60px; 
}

/* En dispositivos móviles centramos completamente sin padding lateral amplio */
@media (max-width: 600px) {
  .footer-bottom {
    padding-right: 0;
    padding-bottom: 60px; /* Deja espacio hacia abajo si la bandera está en la esquina móvil */
  }
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.25);
}

#fondo-vectores {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    background-color: #ffffff;
    /* Fondo blanco */
}

.capa-vector {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
}

/* Configuración de los elementos de la red (Capa lenta / profunda) */
.hex-bg {
    position: absolute;
    /* El color azul corporativo en formato RGB: (15, 39, 77) */
    stroke: rgba(15, 39, 77, 0.05);
    /* Color de las líneas de unión */
    stroke-width: 1.5;
}

.hex-bg circle {
    fill: rgba(15, 39, 77, 0.08);
    /* Color de los puntos/nodos */
    stroke: none;
}

/* Distribución y tamaño de las redes en la pantalla */
.capa-profunda .h-1 {
    width: 350px;
    top: 10%;
    left: -50px;
}

.capa-profunda .h-2 {
    width: 450px;
    bottom: 8%;
    right: -100px;
}

/* Capa media: Redes un poco más visibles y marcadas */
.capa-media .hex-bg {
    stroke: rgba(15, 39, 77, 0.09);
    stroke-width: 2;
}

.capa-media .hex-bg circle {
    fill: rgba(15, 39, 77, 0.15);
    /* Puntos con más fuerza visual */
}

.capa-media .h-3 {
    width: 200px;
    top: 45%;
    right: 12%;
}

.capa-media .h-4 {
    width: 250px;
    bottom: 20%;
    left: 8%;
}

.hero-modules-nav {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    /* Centrado horizontal total */
    width: 100%;
}

/* Título secundario sutil */
.modules-nav-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

/* Contenedor de la rejilla de iconos */
.modules-nav-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    /* Centra los botones en la fila */
}

/* Elemento botón individual */
.module-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Icono dentro del botón (Forzado a Blanco) */
.module-nav-item img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 0.70;
    /* Se ve un poco gris sutil por defecto */
    filter: brightness(0) invert(1);
    /* Truco clave: convierte cualquier SVG a blanco puro */
    transition: opacity 0.25s ease;
}

/* Efecto Hover sobre los botones */
.module-nav-item:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Al pasar el cursor, brilla al 100% de opacidad */
.module-nav-item:hover img {
    opacity: 1;
}

/* --- TOOLTIPS (Nombres flotantes al pasar el cursor) --- */
.module-nav-item .tooltip {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: #0f274d;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

/* Activar Tooltip en hover */
.module-nav-item:hover .tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Responsive: Mantiene el comportamiento limpio en móviles */
@media (max-width: 768px) {
    .hero-modules-nav {
        margin-top: 2rem;
    }
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.25);
}

@media (min-width: 993px) {
    .nav .lang-group {
        display: center;
    }

    .container>.lang-group {
        display: flex;
    }

    .nav {
        flex: 1;
        justify-content: center;
        /* centra los links del nav */
    }
}

@media (max-width: 992px) {

    /* El lang-group que está FUERA del nav (en el header) se oculta en móvil */
    .container>.lang-group {
        display: center;
    }

    .nav .lang-group {
        display: flex;
        margin-top: auto;
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Desktop: muestra solo el de fuera, oculta el del nav */
@media (min-width: 993px) {
    .lang-mobile {
        display: none !important;
    }

    .lang-desktop {
        display: flex;
        gap: 0.5rem;
    }

    .nav {
        flex: 1;
        justify-content: center;
    }
}

/* Móvil: oculta el de fuera, muestra el del nav */
@media (max-width: 992px) {
    .lang-desktop {
        display: none !important;
    }

    .lang-mobile {
        display: flex;
    }
}

.video-lang {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.4s ease;
}

.video-en { opacity: 0; pointer-events: none; }
.video-es { opacity: 1; pointer-events: auto; }

.lang-en-active .video-en { opacity: 1; pointer-events: auto; }
.lang-en-active .video-es { opacity: 0; pointer-events: none; }

/* Ajuste al wrapper para que soporte position absolute de los iframes */
.video-wrapper {
    position: relative;
}