/* ============================================
   CAB GLOBAL — Main Stylesheet
   ============================================ */

/* --- Font Faces --- */
@font-face {
    font-family: 'Myriad Pro';
    src: url('../fonts/Myriad Pro Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Myriad Pro';
    src: url('../fonts/Myriad Pro Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Myriad Pro';
    src: url('../fonts/Myriad Pro Semibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Myriad Pro';
    src: url('../fonts/Myriad Pro Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Myriad Pro';
    src: url('../fonts/Myriad Pro Bold Italic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Myriad Pro';
    src: url('../fonts/Myriad Pro Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* --- Variables (alias hacia los tokens del design system) ---
   Todas las variables "viejas" ahora apuntan a los tokens centralizados
   de tokens.css. Fuente única de verdad: si cambias un token, la web entera responde.
*/
:root {
    --green:       var(--color-green);
    --green-light: var(--color-green-light);
    --green-glow:  var(--color-green-glow);
    --dark:        var(--color-dark);
    --dark-deep:   var(--color-dark-deep);
    --navy:        var(--color-navy);
    --navy-band:   var(--color-navy-band);
    --gray-dark:   var(--color-gray-dark);
    --gray-mid:    var(--color-gray-mid);
    --gray-light:  var(--color-gray-light);
    --white:       var(--color-white);
    --font:        var(--font-family);
    --max-w:       var(--max-width);
    /* --section-pad ya está en tokens.css (mismo nombre, mismo valor) */
    --transition:  var(--transition-base);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-weight: var(--weight-regular);
    font-size: var(--text-body);
    line-height: var(--leading-body);
    color: var(--text-strong);
    background: var(--color-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    /* El color se interpola en cada frame desde JS — sin transition CSS */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Utility --- */
.text-green { color: var(--green); }
.italic { font-style: italic; }

.text-green-gradient {
    background: linear-gradient(90deg, var(--navy) 0%, var(--green) 30%, var(--green) 70%, var(--navy) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Label de sección (equivalente al modificador .txt--label del sistema) */
.section-label {
    font-size: var(--text-body);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-green);
    margin-bottom: var(--space-4);
}
.section-label--dark { color: var(--color-dark); }
.section-label--center { text-align: center; }

/* Título de sección (equivalente al nivel display del sistema)
   Color dinámico: se interpola con el fondo del body (scroll-driven). */
.section-title {
    font-family: var(--font-display);
    font-size: var(--text-display);
    font-weight: var(--weight-bold);
    line-height: var(--leading-display);
    color: var(--text-strong);
    margin-bottom: var(--space-8);
}
.section-title--light { color: var(--text-strong); }

/* --- Buttons --- (consumen tokens del sistema; ver tokens.css) */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--btn-font-family);
    font-size: var(--btn-text-md);
    font-weight: var(--btn-font-weight);
    padding: var(--btn-padding-md);
    border-radius: var(--btn-radius);
    cursor: pointer;
    transition: var(--btn-transition);
    position: relative;
    overflow: hidden;
    border: none;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}
.btn:hover::before {
    left: 100%;
}

/* Variante: primary */
.btn--primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-color);
}
.btn--primary:hover {
    transform: scale(1.05);
    box-shadow: var(--btn-primary-shadow);
}

/* Variante: ghost */
.btn--ghost {
    background: var(--btn-ghost-bg);
    color: var(--btn-ghost-color);
    border: 1px solid var(--btn-ghost-border);
}
.btn--ghost:hover {
    border-color: var(--btn-ghost-border-hover);
    color: var(--btn-ghost-color-hover);
    transform: scale(1.05);
}

/* Variante: secondary (nombre nuevo) + alias .btn--dark (retrocompat) */
.btn--secondary,
.btn--dark {
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-color);
    border: 1px solid var(--btn-secondary-border);
}
.btn--secondary:hover,
.btn--dark:hover {
    background: var(--btn-secondary-bg-hover);
    color: var(--btn-secondary-color-hover);
    border-color: var(--btn-secondary-bg-hover);
    transform: scale(1.05);
    box-shadow: var(--btn-primary-shadow);
}

/* Tamaños */
.btn--sm { padding: var(--btn-padding-sm); font-size: var(--btn-text-sm); }
.btn--md { padding: var(--btn-padding-md); font-size: var(--btn-text-md); }
.btn--lg { padding: var(--btn-padding-lg); font-size: var(--btn-text-lg); }


/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: box-shadow 0.4s ease;
}
.header.scrolled {
    box-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}
.header__container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 40px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header__logo img {
    height: 40px;
    width: auto;
}
.header__nav {
    display: flex;
    align-items: center;
    gap: 32px;
}
.header__link {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.7);
    position: relative;
    transition: color var(--transition);
}
.header__link:hover {
    color: var(--white);
}
.header__link.active {
    color: var(--green);
}
.header__cta {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px;
    line-height: 1.25;
    background: var(--green);
    color: var(--dark-deep);
    border-radius: 4px;
    transition: var(--transition);
}
.header__cta:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px var(--green-glow);
}

/* Hamburger */
.header__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}
.header__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    transform-origin: center;
}
.header__hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.header__hamburger.active span:nth-child(2) {
    opacity: 0;
}
.header__hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}


/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, var(--navy) 0%, var(--dark) 50%, var(--dark-deep) 100%);
    overflow: hidden;
    padding-top: 80px;
}
.hero__bg {
    position: absolute;
    top: 0;
    right: -10%;
    width: 70%;
    height: 100%;
    opacity: 0.4;
    pointer-events: none;
}
.hero__lines {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}
.hero__container {
    position: relative;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 60px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero__label {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--green);
    margin-bottom: 24px;
}
.hero__title {
    font-family: var(--font-display);
    font-size: clamp(40px, 5.5vw, 64px);
    font-weight: 400;
    line-height: 1.05;
    color: var(--white);
    margin-bottom: 28px;
}
.hero__title--green {
    color: var(--green);
    font-weight: 700;
    text-shadow: 0 0 40px var(--green-glow);
}
.hero__title--bold {
    font-weight: 700;
    color: var(--white);
}
.hero__subtitle {
    font-size: 20px;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
    margin-bottom: 40px;
    max-width: 500px;
}
.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
.hero__player {
    max-height: 600px;
    width: auto;
    filter: drop-shadow(0 20px 60px rgba(0,0,0,0.5));
    will-change: transform;
}


/* ============================================
   LOGOS BAR
   ============================================ */
.logos-bar {
    background: var(--dark-deep);
    padding: 40px 0;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.logos-bar__track {
    display: flex;
    width: max-content;
    animation: scrollLogos 25s linear infinite;
}
.logos-bar__img {
    height: 40px;
    width: auto;
    margin-right: 0;
    filter: brightness(0) invert(1);
    opacity: 0.5;
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* ============================================
   ABOUT / NOSOTROS
   ============================================ */
.about {
    position: relative;
    background: transparent; /* body global interpola color con scroll */
    padding: var(--section-pad) 0;
}
.about__container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}
.about__images {
    position: relative;
    height: 500px;
}
.about__img {
    position: absolute;
    border-radius: var(--radius-md);
    filter: grayscale(100%);
    transition: filter 0.5s ease, box-shadow 0.5s ease;
    box-shadow: var(--shadow-xl);
}
.about__img:hover {
    filter: grayscale(0%);
    box-shadow: 0 30px 80px rgba(0, 201, 44, 0.25);
}
.about__img--main {
    width: 55%;
    top: 0;
    left: 0;
    z-index: 3;
}
.about__img--secondary {
    width: 45%;
    top: 60px;
    right: 0;
    z-index: 2;
}
.about__img--tertiary {
    width: 40%;
    bottom: 0;
    left: 15%;
    z-index: 1;
}
.about__line {
    width: 1px;
    height: 60px;
    background: var(--green);
    margin-bottom: 24px;
}
.about__content .section-title {
    color: var(--text-strong);
}
.about__text {
    font-size: var(--text-body);
    line-height: var(--leading-body);
    color: var(--text-muted);
    margin-bottom: var(--space-5);
}

/* Video band */
.about__video-band {
    margin-top: 80px;
    background: var(--color-dark);
    padding: 60px 0;
    position: relative;
}
.about__video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
    transform: translateY(-40px);
}
.about__video-wrapper video {
    width: 100%;
    display: block;
}


/* ============================================
   STATS · CAB en números (contadores animados)
   ============================================ */
.stats {
    position: relative;
    background: transparent;
    padding: var(--section-pad) 0;
    overflow: hidden;
}
.stats__container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}
.stats__label-top {
    margin-bottom: var(--space-3);
}
.stats__title {
    font-family: var(--font-display);
    font-size: var(--text-display);
    font-weight: var(--weight-bold);
    line-height: var(--leading-display);
    color: var(--text-strong);
    margin-bottom: var(--space-16);
}
.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid rgba(0, 201, 44, 0.22);
    border-bottom: 1px solid rgba(0, 201, 44, 0.22);
}
.stats__item {
    padding: var(--space-12) var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(0, 201, 44, 0.22);
    transition: background 0.3s ease;
}
.stats__item:last-child { border-right: none; }
.stats__item:hover {
    background: rgba(0, 201, 44, 0.04);
}
.stats__num {
    font-size: clamp(48px, 7vw, 96px);
    font-weight: var(--weight-black);
    line-height: 1;
    color: var(--color-green);
    letter-spacing: -2px;
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    text-shadow: 0 0 40px rgba(0, 201, 44, 0.2);
}
.stats__plus {
    font-size: 0.5em;
    opacity: 0.85;
}
.stats__desc {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: var(--weight-semibold);
}

/* Responsive */
@media (max-width: 900px) {
    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats__item {
        border-right: 1px solid rgba(0, 201, 44, 0.22);
        border-bottom: 1px solid rgba(0, 201, 44, 0.22);
    }
    .stats__item:nth-child(2n) { border-right: none; }
    .stats__item:nth-last-child(1),
    .stats__item:nth-last-child(2) { border-bottom: none; }
}
@media (max-width: 600px) {
    .stats__grid {
        grid-template-columns: 1fr;
    }
    .stats__item {
        border-right: none !important;
        border-bottom: 1px solid rgba(0, 201, 44, 0.22) !important;
    }
    .stats__item:last-child { border-bottom: none !important; }
}


/* ============================================
   VALUES
   ============================================ */
.values {
    position: relative;
    background: transparent; /* body global interpola color con scroll */
    padding: var(--section-pad) 0;
}
/* Guiño: textura de puntos sutil · pseudo para no colisionar con el body dinámico */
.values::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}
.values__container { position: relative; z-index: 1; }
.values__container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 40px;
}
.values__header {
    text-align: center;
    margin-bottom: 72px;
}
/* Rediseño "numerales gigantes": grid 2x2 + número outline al fondo */
.values__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    counter-reset: val;
}
.values__card {
    --mx: 50%;
    --my: 50%;
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-top: 2px solid var(--color-green);
    border-radius: var(--radius-md);
    padding: var(--space-12) var(--space-8);
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
    overflow: hidden;
    counter-increment: val;
    min-height: 260px;
}
/* Spotlight verde que sigue al cursor dentro de la card */
.values__card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: radial-gradient(
        circle 260px at var(--mx) var(--my),
        rgba(0, 201, 44, 0.14) 0%,
        rgba(0, 201, 44, 0.04) 40%,
        transparent 70%
    );
    z-index: 0;
}
.values__card:hover::after {
    opacity: 1;
}
.values__card::before {
    content: counter(val, decimal-leading-zero);
    position: absolute;
    right: 16px;
    bottom: -8px;
    font-family: var(--font-display); /* Bebas Neue · condensada e ideal para outline */
    font-size: 200px;
    font-weight: 400;
    color: transparent;
    -webkit-text-stroke: 2px rgba(0, 201, 44, 0.35);
    line-height: 1;
    letter-spacing: 2px;
    pointer-events: none;
    transition: all 0.4s ease;
    z-index: 0;
}
.values__card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 201, 44, 0.35);
    border-top-color: var(--color-green);
    box-shadow: 0 16px 48px rgba(0, 201, 44, 0.15);
    background: rgba(0, 201, 44, 0.04);
}
.values__card:hover::before {
    color: rgba(0, 201, 44, 0.18);
    -webkit-text-stroke: 2px var(--color-green);
}
.values__icon {
    position: relative;
    z-index: 1;
    width: 42px;
    height: 42px;
    margin-bottom: var(--space-5);
    color: var(--color-green);
}
.values__icon svg {
    width: 100%;
    height: 100%;
}
.values__card-title {
    position: relative;
    z-index: 1;
    font-size: var(--text-title);
    font-weight: var(--weight-bold);
    margin-bottom: var(--space-3);
    color: var(--text-strong);
}
.values__card-text {
    position: relative;
    z-index: 1;
    font-size: var(--text-body);
    line-height: var(--leading-body);
    color: var(--text-muted);
    max-width: 48ch;
}


/* ============================================
   SERVICES
   ============================================ */
.services {
    position: relative;
    background: transparent; /* body global interpola color con scroll */
    padding: var(--section-pad) 0;
}
.services__container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 40px;
}
.services__header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: end;
    margin-bottom: 64px;
}
.services__desc {
    font-size: var(--text-body);
    line-height: var(--leading-body);
    color: var(--text-muted);
    margin-bottom: 24px;
}
.services__line {
    width: 60px;
    height: 2px;
    background: var(--green);
}
.services__big-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 700;
    line-height: 1;
    text-align: right;
}
/* Bebas Neue no tiene cursiva real; neutralizamos el italic del span */
.services__big-title .italic { font-style: normal; }
.text-white { color: var(--white); }

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.services__card {
    position: relative;
    aspect-ratio: 0.85;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    display: block;
}
.services__card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.6s ease, transform 0.6s ease;
}
.services__card:hover .services__card-img {
    filter: grayscale(0%);
    transform: scale(1.08);
}
.services__card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    transition: background 0.4s ease;
}
.services__card:hover .services__card-overlay {
    background: linear-gradient(180deg, transparent 20%, rgba(0, 201, 44, 0.6) 100%);
}
.services__card-number {
    font-size: 14px;
    font-weight: 700;
    color: var(--green);
    letter-spacing: 2px;
    margin-bottom: 8px;
}
.services__card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}
.services__card-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}


/* ============================================
   SHOWLOG · Scrollytelling compuesto
   Una sola macrosección donde:
   · la camiseta (canvas) viaja de izquierda a derecha girando
   · el texto izquierdo hace fade entre "Caso real" y "Servicios logísticos"
   El JS controla 3 fases con scroll. Canvas se mantiene sticky
   mientras dura la macrosección.
   ============================================ */
.showlog {
    position: relative;
    background: transparent;
    height: 400vh; /* 4 viewports de scroll total */
}
/* Marcadores de color (invisibles) para el scroll-color sync del body.
   El JS los detecta vía [data-bg] y hace la interpolación entre ambos. */
.showlog__stop {
    position: absolute;
    left: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.showlog__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.showlog__stage {
    position: relative;
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 40px;
    /* 100% del sticky (100vh) para que el canvas y los paneles
       se centren en TODO el viewport, no solo en el 80%. */
    height: 100%;
}

/* Canvas wrapper: position absolute · X controlado por JS */
.showlog__canvas-wrap {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate3d(0, -50%, 0); /* JS actualiza translateX + Y */
    width: 42%;
    max-width: 560px;
    aspect-ratio: 1 / 1;
    z-index: 2;
    will-change: transform;
}
.showlog__canvas {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 20px 60px rgba(0, 201, 44, 0.18));
}

/* Paneles de texto: position absolute · opacidad Y transform controlados por JS.
   El JS actualiza `transform` en cada frame (translate3d con X variable + -50%). */
.showlog__panel {
    position: absolute;
    top: 50%;
    transform: translate3d(0, -50%, 0);
    width: 44%;
    max-width: 540px;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
}
/* Fase 1 · "Caso real" · texto a la DERECHA (canvas a la izq) */
.showlog__panel--case { right: 0; }
/* Fase 2 · "Servicios logísticos" · texto a la IZQUIERDA (canvas a la der) */
.showlog__panel--logistics { left: 0; }

.showlog__title {
    font-family: var(--font-display);
    font-size: var(--text-display);
    font-weight: var(--weight-bold);
    line-height: var(--leading-display);
    color: var(--text-strong);
    margin-bottom: var(--space-6);
}
.showlog__title--uppercase {
    font-weight: var(--weight-black);
    text-transform: uppercase;
}
.showlog__text {
    font-size: var(--text-body);
    line-height: var(--leading-body);
    color: var(--text-muted);
    margin-bottom: var(--space-8);
}
.showlog__features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-6);
    display: grid;
    gap: var(--space-3);
}
.showlog__features li {
    font-size: var(--text-body);
    color: var(--text-muted);
    padding-left: var(--space-5);
    position: relative;
}
.showlog__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 10px;
    height: 2px;
    background: var(--color-green);
}
.showlog__features li strong {
    color: var(--text-strong);
    font-weight: var(--weight-bold);
    margin-right: 4px;
}

/* Responsive · móvil: canvas arriba, texto abajo, menos altura de scroll */
@media (max-width: 900px) {
    .showlog { height: 280vh; }
    .showlog__stage {
        height: auto;
        min-height: 90vh;
    }
    .showlog__canvas-wrap {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 80%;
        max-width: 400px;
        margin: 0 auto 24px;
    }
    .showlog__panel {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
    }
}


/* ============================================
   PROCESS
   ============================================ */
.process {
    position: relative;
    background: transparent; /* body global interpola color con scroll */
    /* Altura grande para dar "scroll" al movimiento horizontal del track */
    height: 450vh;
    overflow: visible;
}
/* Marcador de color invisible (scroll-color sync) — igual que showlog__stop */
.process__stop {
    position: absolute;
    left: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.process__container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 40px;
}
.process__header {
    text-align: center;
    margin-bottom: 72px;
}
/* Rediseño Proceso — HORIZONTAL SCROLL PINNED
   Los 7 pasos están en una línea horizontal. El sticky wrapper se
   mantiene fijo mientras scrolleas verticalmente, y el track se
   desplaza horizontalmente (JS calcula el translateX según progreso).
*/
.process__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}
.process__header {
    text-align: center;
    padding: 0 40px;
    margin-bottom: 60px;
}
.process__viewport {
    width: 100%;
    overflow: hidden;
}
.process__track {
    display: flex;
    align-items: flex-start;
    gap: 80px;
    padding-left: 10vw;  /* el primer paso queda a ~10% del borde izq */
    padding-right: 40vw; /* espacio al final para que el último paso llegue al centro */
    will-change: transform;
}
.process__step {
    flex: 0 0 340px; /* ancho fijo por paso */
    text-align: left;
    position: relative;
}

/* Número gigante outline verde */
.process__step-number {
    display: block;
    font-family: var(--font-display); /* Bebas Neue */
    font-size: 120px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 2px;
    color: transparent;
    -webkit-text-stroke: 2px rgba(0, 201, 44, 0.45);
    margin-bottom: var(--space-5);
    transition: color 0.4s ease, -webkit-text-stroke 0.4s ease;
}
.process__step:hover .process__step-number {
    color: var(--color-green);
    -webkit-text-stroke: 2px var(--color-green);
}
.process__step-title {
    font-size: var(--text-title);
    font-weight: var(--weight-bold);
    color: var(--text-strong);
    margin-bottom: var(--space-3);
    line-height: var(--leading-title);
}
.process__step-text {
    font-size: var(--text-body);
    line-height: var(--leading-body);
    color: var(--text-muted);
    max-width: 280px;
}

/* Flecha conectora entre pasos (excepto el último) */
.process__step::after {
    content: '→';
    position: absolute;
    top: 45px;
    right: -50px;
    font-size: 32px;
    color: rgba(0, 201, 44, 0.45);
    font-weight: var(--weight-light);
    pointer-events: none;
    transition: color 0.4s ease, transform 0.4s ease;
}
.process__step:last-child::after { display: none; }
.process__step:hover::after {
    color: var(--color-green);
    transform: translateX(4px);
}

/* Responsive móvil: vuelve a stack vertical (horizontal scroll no es ideal en móvil) */
@media (max-width: 900px) {
    .process { height: auto !important; }
    .process__sticky {
        position: relative;
        height: auto;
        padding: var(--section-pad) 0;
    }
    .process__viewport { overflow: visible; }
    .process__track {
        flex-direction: column;
        gap: 48px;
        padding: 0 40px;
    }
    .process__step { flex: 1 1 auto; width: 100%; }
    .process__step::after { display: none; }
    .process__step-number { font-size: 84px; }
}


/* ============================================
   CLIENTS
   ============================================ */
.clients {
    position: relative;
    background: transparent; /* body global interpola color con scroll */
    padding: var(--section-pad) 0 80px;
    overflow: hidden;
}
.clients__container {
    position: relative;
    z-index: 2;
    max-width: var(--max-w);
    margin: 0 auto 60px;
    padding: 0 40px;
    text-align: center;
}
.clients__title {
    font-family: var(--font-display);
    font-size: var(--text-display);
    font-weight: var(--weight-black);
    text-transform: uppercase;
    line-height: var(--leading-display);
    color: var(--text-strong);
}
.clients__title .text-green-gradient {
    /* sobreescribe el gradiente que era para fondo oscuro */
    background: linear-gradient(90deg, var(--color-dark) 0%, var(--color-green) 35%, var(--color-green) 65%, var(--color-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.clients__carousel {
    position: relative;
    z-index: 2;
    overflow: hidden;
    padding: 20px 0;
}
.clients__track {
    display: flex;
    width: max-content;
    animation: scrollClients 30s linear infinite;
}
.clients__logos {
    height: 40px;
    width: auto;
    margin-right: 0;
    /* Logos en negro sobre blanco (se ven nítidos) */
    filter: brightness(0);
    opacity: 0.75;
    transition: opacity 0.3s ease;
}
.clients__logos:hover {
    opacity: 1;
}

@keyframes scrollClients {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* ============================================
   CTA FINAL
   ============================================ */
.cta-final {
    background: var(--dark-deep);
    padding: var(--section-pad) 0;
    text-align: center;
    position: relative;
}
.cta-final::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--green));
}
.cta-final__container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 40px;
}
.cta-final__title {
    font-family: var(--font-display);
    font-size: var(--text-display);
    font-weight: var(--weight-bold);
    line-height: var(--leading-display);
    color: var(--color-white); /* fondo de CTA es dark-deep fijo · texto siempre blanco */
    margin-bottom: 20px;
}
.cta-final__text {
    font-size: var(--text-body);
    line-height: var(--leading-body);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
}
.cta-final__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark-deep);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 80px 0 0;
}
.footer__container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
}
.footer__logo {
    height: 36px;
    width: auto;
    margin-bottom: 20px;
}
.footer__desc {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.5);
    margin-bottom: 20px;
}
.footer__address p {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    line-height: 1.6;
}
.footer__heading {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--green);
    margin-bottom: 24px;
}
.footer__link {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 12px;
    transition: color var(--transition);
}
.footer__link:hover {
    color: var(--green);
}
.footer__schedule {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    line-height: 1.8;
}
.footer__bottom {
    margin-top: 60px;
    padding: 24px 40px;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.3);
}


/* ============================================
   ANIMATIONS
   ============================================ */
[data-animate] {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}
[data-animate="fadeInUp"] {
    transform: translateY(50px);
}
[data-animate="fadeInLeft"] {
    transform: translateX(-50px);
}
[data-animate="fadeInRight"] {
    transform: translateX(50px);
}
[data-animate="scaleIn"] {
    transform: scale(0.85);
}
[data-animate].visible {
    opacity: 1;
    transform: none;
}

/* Delay classes */
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }
[data-delay="5"] { transition-delay: 0.5s; }
[data-delay="6"] { transition-delay: 0.6s; }
[data-delay="7"] { transition-delay: 0.7s; }


/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1200px) {
    .values__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .process__steps {
        grid-template-columns: repeat(4, 1fr);
    }
    .process__steps::before {
        display: none;
    }
}

@media (max-width: 1024px) {
    :root {
        --section-pad: 80px;
    }
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero__subtitle {
        max-width: 100%;
    }
    .hero__actions {
        justify-content: center;
    }
    .hero__visual {
        display: none;
    }
    .hero__bg {
        right: -30%;
        width: 100%;
        opacity: 0.2;
    }
    .about__container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .about__images {
        height: 350px;
    }
    .services__header {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .services__big-title {
        text-align: left;
    }
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .logistics__container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .process__steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-pad: 64px;
    }
    body {
        font-size: 16px;
    }
    .header__nav,
    .header__cta {
        display: none;
    }
    .header__hamburger {
        display: flex;
    }
    /* Mobile nav overlay */
    .header__nav.open {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        padding: 100px 40px 40px;
        gap: 24px;
        z-index: 999;
        box-shadow: -10px 0 40px rgba(0,0,0,0.5);
    }
    .header__nav.open .header__link {
        font-size: 16px;
        color: rgba(255,255,255,0.8);
    }
    .hero {
        min-height: 80vh;
    }
    .hero__title {
        font-size: clamp(32px, 8vw, 48px);
    }
    .hero__actions {
        flex-direction: column;
        align-items: center;
    }
    .about__images {
        height: 280px;
    }
    .about__img--main { width: 60%; }
    .about__img--secondary { width: 50%; top: 40px; }
    .about__img--tertiary { width: 45%; }
    .values__grid {
        grid-template-columns: 1fr;
    }
    .services__grid {
        grid-template-columns: 1fr;
    }
    .services__card {
        aspect-ratio: 1.3;
    }
    .process__steps {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .footer__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .cta-final__actions {
        flex-direction: column;
        align-items: center;
    }
    .clients__title {
        font-size: clamp(28px, 7vw, 40px);
    }
}

@media (max-width: 480px) {
    .header__container {
        padding: 0 20px;
    }
    .hero__container,
    .about__container,
    .services__container,
    .logistics__container,
    .process__container,
    .clients__container,
    .cta-final__container,
    .footer__container {
        padding-left: 20px;
        padding-right: 20px;
    }
    .process__steps {
        grid-template-columns: 1fr;
    }
}
