* {
    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.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);
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 0;
}

/* ── LOGOS ── */
.logo a {
    display: block;
    position: relative;
    width: 140px;
    height: 40px;
}

.logo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 140px;
    height: 40px;
    object-fit: contain;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.video-btn {
    display: inline-block;
    margin-top: 2rem;
}

.video-btn i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.video-btn:hover i {
    transform: translateX(4px);
}

/* Todos ocultos por defecto */
.log-img,
.log-img-azul,
.log-es,
.log-en {
    opacity: 0;
}

/* Solo el blanco ES visible al inicio */
.log-img.log-es {
    opacity: 1;
    pointer-events: auto;
}

/* El JS toma el control total del resto via style.opacity */

.nav {
    display: flex;
    gap: 2rem;
    background: transparent;
}

.nav a {
    text-decoration: none;
    color: white;
    font-size: .95rem;
    transition: color 0.3s ease;
}

.header.scrolled .nav a {
    color: #1a428a;
}

.nav a:hover {
    color: #4ea1ff;
}

.header.scrolled .nav a:hover {
    color: #1a428a;
}

.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;
}

.header.scrolled .lang-group button {
    border-color: rgba(0, 0, 0, 0.15);
    color: #333;
}

.lang-group button.active {
    background: white;
    color: #4ea1ff !important;
    border-color: white;
}

.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/logistc/Modulo_Logtica_nueva_imagen.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;
}

.hero-content {
    width: 90%;
    max-width: 850px;
    position: relative;
    z-index: 2;
    text-align: center;
}



.hero-tag {
    display: inline-block;
    padding: 10px 18px;
    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: 3.2rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.hero .btn-secondary1 {
    color: #ffffff;
    border: 2px solid #ffffff;
}

.hero .btn-secondary1:hover {
    background: #ffffff;
    color: #1a428a;
}

.hero .btn-primary {
    background: #ffffff;
    color: #1a428a;
}

.hero .btn-primary:hover {
    background: #eaf1ff;
}

section {
    padding: 7rem 0;
}

.section-header {
    width: 90%;
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
}

.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;
}

.section-header p {
    color: #556270;
    line-height: 1.8;
}

.features-grid {
    width: 90%;
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.feature-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 24px;
    overflow: hidden;
    padding: 0;                
    display: flex;
    flex-direction: column;
    transition: .4s;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: #1a428a;
    box-shadow: 0 10px 30px rgba(26, 66, 138, 0.05);
}

.feature-img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #ecf3fd;
    overflow: hidden;
}

.feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.feature-card:hover .feature-img img {
    transform: scale(1.06);
}

/* El número ahora es una insignia sobre la imagen */
.feature-icon {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #1a428a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin: 0;
    box-shadow: 0 4px 12px rgba(26, 66, 138, 0.3);
}

.feature-body {
    padding: 1.5rem;
}

.feature-body h3 {
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
}

.feature-body p {
    color: #444;
    line-height: 1.6;
    font-size: 0.95rem;
}

.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);
    position: relative;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
}

.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;
}

.video-static-img {
    overflow: hidden;
    border-radius: 24px;
}

/* IMAGEN TEMPORAL (quitar cuando se pongan los videos) */
.video-static-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.1);
}

.lang-en-active .video-en {
    opacity: 1;
    pointer-events: auto;
}

.lang-en-active .video-es {
    opacity: 0;
    pointer-events: none;
}

.video-section {
    padding: 7rem 0;
}

.benefits-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: rgb(33, 77, 144);
    grid-template-columns: 2fr;
    padding: 7rem 2;
}

.benefits-container h1,
.benefits-container h2,
.benefits-container h4 {
    text-align: center;
    color: #ffffff;
}

.benefits-container {
    background: rgb(33, 77, 144);
    padding: 3rem 0;
}

.benefits-container .section-header {
    margin-bottom: 3rem;
}

.benefits-container h1 {
    text-align: center;
    color: #ffffff;
    font-size: 1.5rem;
}

.benefits-container .section-header h2 {
    text-align: center;
    color: #ffffff;
    font-size: 2.2rem;
    line-height: 1.2;
}

.benefits-container .section-header p {
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    line-height: 1.8;
}

.benefits-split {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.benefits-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.benefit-check {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.benefit-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    line-height: 1.7;
}

.benefit-item strong {
    color: #ffffff;
    font-weight: 700;
}

.benefits-image {
    overflow: hidden;
    border-radius: 24px;
}

.benefits-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    transform: scale(1.06);
}

.home-office-btn{
    background-color: #1f4a8a
}

@media (max-width: 992px) {
    .benefits-split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}



.cta-section {
    padding-top: 2rem;
}

.cta-card {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    background: linear-gradient(135deg, #10284f, #1a428a);
    padding: 4rem;
    border-radius: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    text-align: left;
}

.cta-card span {
    color: #eaf1ff;
    letter-spacing: 1px;
}

.cta-card h2 {
    font-size: 2.5rem;
    margin: 1rem 0;
    color: white;
}

.cta-image {
    overflow: hidden;
    border-radius: 24px;
}

.cta-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
    transform: scale(1.06);

}

.cta-card p {
    margin-bottom: 2rem;
    color: #dfe8f4;
}

.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);
}

.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;
}

.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;
}

/* ── FOOTER ── */
.footer {
    background-color: #1f4a8a;
    color: #ffffff;
    padding: 80px 20px 40px;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

@media (min-width: 769px) {
    .footer-top {
        display: grid;
        grid-template-columns: 1.5fr repeat(3, 1fr);
        gap: 48px;
        text-align: center;
    }
}

.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 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    opacity: 0.8;
    padding-right: 60px;
}

@media (max-width: 600px) {
    .footer-bottom {
        padding-right: 0;
        padding-bottom: 60px;
    }
}

.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 ── */
#fondo-vectores {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    background-color: #ffffff;
}

.capa-vector {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
}

.hex-bg {
    position: absolute;
    stroke: rgba(15, 39, 77, 0.05);
    stroke-width: 1.5;
}

.hex-bg circle {
    fill: rgba(15, 39, 77, 0.08);
    stroke: none;
}

.capa-profunda .h-1 {
    width: 350px;
    top: 10%;
    left: -50px;
}

.capa-profunda .h-2 {
    width: 450px;
    bottom: 8%;
    right: -100px;
}

.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);
}

.capa-media .h-3 {
    width: 200px;
    top: 45%;
    right: 12%;
}

.capa-media .h-4 {
    width: 250px;
    bottom: 20%;
    left: 8%;
}

/* ── MÓDULOS NAV ── */
.hero-modules-nav {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
}

.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;
}

.modules-nav-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.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);
    text-decoration: none;
}

.module-nav-item img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 0.70;
    filter: brightness(0) invert(1);
    transition: opacity 0.25s ease;
}

.module-nav-item:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.module-nav-item:hover img {
    opacity: 1;
}

.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;
}

.module-nav-item:hover .tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── IDIOMA DESKTOP / MOBILE ── */
@media (min-width: 993px) {
    .lang-mobile {
        display: none !important;
    }

    .lang-desktop {
        display: flex;
        gap: 0.5rem;
    }

    .nav {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 992px) {
    .lang-desktop {
        display: none !important;
    }

    .lang-mobile {
        display: flex;
    }

    .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;
    }

    .cta-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .cta-image img {
        max-width: 420px;
        margin: 0 auto;
    }

    .nav a {
        font-size: 1.1rem;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.9) !important;
        padding: 0.3rem 0;
    }

    .nav a:hover {
        color: #ffffff !important;
    }

    .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,
    .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;
    }

    .hero-modules-nav {
        margin-top: 2rem;
    }
}

/* ── SECCIÓN SOLO EN INGLÉS ── */
.only-en {
    display: none;
}

.lang-en-active .only-en {
    display: block;
}

/* ── EXECUTIVE LEADERSHIP ── */
.executive-section {
    padding: 80px 20px;
    background: #ecf3fd;
}

.executive-container {
    max-width: 1100px;
    margin: auto;
}

.executive-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px;
}

.executive-header h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: #1f4a8a;
    margin-bottom: 16px;
}

.executive-header p {
    font-size: clamp(15px, 1.8vw, 18px);
    color: #6b7280;
    line-height: 1.7;
}

.executive-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.executive-card {
    background: white;
    border: 1px solid #dce6f2;
    border-radius: 16px;
    padding: 36px 24px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.executive-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(31, 74, 138, 0.12);
}

.executive-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1f4a8a, #4FA3D1);
    color: white;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.executive-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1f4a8a;
    margin-bottom: 6px;
}

.executive-card span {
    font-size: 13px;
    font-weight: 600;
    color: #4FA3D1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 900px) {
    .executive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .executive-grid {
        grid-template-columns: 1fr;
    }
}