/* ══════════════════════════════════════
   S2 — COUNT styles.css
══════════════════════════════════════ */

/* ── Fix core.css ── */
#lt-s2                    { overflow: visible !important; }
#lt-s2 .lt-section__inner { will-change: auto !important; }
#lt-s2 .lt-section__inner,
#lt-s2 .cnt-cards-wrap,
#lt-s2 .cnt-cards          { transform-style: preserve-3d; }

/* ── Pin spacer estático — evita CLS al reservar el espacio antes del paint ── */
.lt-s2-spacer {
    height: 300vh;
    pointer-events: none;
}

/* ── Base ── */
.lt-s2 .cnt-zip {
    position: relative;
    width: 100%; height: 100%;
    background: var(--color-s2-bg);
    overflow: hidden;
}

/* ── Canvas ── */
.lt-s2 #cntCanvas {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    z-index: 0;
    display: block;
    pointer-events: none;
}
.lt-s2 .cnt-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.7) 100%);
    pointer-events: none;
    z-index: 1;
}

/* ══════════════════════════════════════
   HEADER
══════════════════════════════════════ */
.lt-s2 .cnt-header {
    position: absolute;
    top: clamp(2.5rem, 5vh, 4rem);
    left: 0; width: 100%;
    z-index: 6;
    text-align: center;
    pointer-events: none;
    overflow: visible;
}
.lt-s2 .cnt-header__sub {
    font-family: var(--font-body);
    font-size: clamp(.75rem, .82vw, .85rem);
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--color-green);
    margin-bottom: .8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}
.lt-s2 .cnt-sub-dot {
    width: 5px; height: 5px;
    background: var(--color-green);
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 0.7;
    position: relative;
}
.lt-s2 .cnt-sub-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--color-green);
    will-change: transform, opacity;
    animation: cntSubPulse 2.4s ease-in-out infinite;
}
@keyframes cntSubPulse {
    0%, 70%, 100% { transform: scale(1);   opacity: 0.5; }
    35%            { transform: scale(2.6); opacity: 0; }
}
.lt-s2 .cnt-header__title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 3.4vw, 4.2rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: .01em;
    text-transform: uppercase;
    color: var(--color-white);
    margin: 0;
    white-space: nowrap;
    overflow: visible;
    position: relative;
}
.lt-s2 .cnt-wg-left,
.lt-s2 .cnt-wg-right { display: inline-block; }
.lt-s2 .cnt-highlight { color: var(--color-green); }

.lt-s2 .cnt-header__title.cnt-glitch { will-change: filter; animation: cntGlitch .9s steps(1) forwards; }
@keyframes cntGlitch {
    0%   { text-shadow: none; filter: none; }
    8%   { text-shadow: -4px 0 rgba(255,0,80,.9), 4px 0 rgba(0,220,255,.9); filter: blur(.5px) brightness(1.3); }
    16%  { text-shadow: 3px 0 rgba(255,0,80,.7), -3px 0 rgba(0,220,255,.7); filter: none; }
    24%  { text-shadow: -2px 0 rgba(255,0,80,.6), 2px 0 rgba(0,220,255,.6); }
    32%  { text-shadow: none; }
    40%  { text-shadow: 4px 0 rgba(255,0,80,.5), -4px 0 rgba(0,220,255,.5); filter: brightness(1.15); }
    48%  { text-shadow: none; filter: none; }
    100% { text-shadow: none; filter: none; }
}

/* ══════════════════════════════════════
   CARDS WRAP
══════════════════════════════════════ */
.lt-s2 .cnt-cards-wrap {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: clamp(5rem, 10vh, 9rem);
    visibility: hidden;
}
.lt-s2 .cnt-cards {
    width: 90%;
    max-width: 1800px;
    height: 72vh;
    display: flex;
    perspective: 1400px;
    gap: 0;
}

/* ── Card base ── */
.lt-s2 .cnt-card {
    position: relative;
    flex: 1; height: 100%;
    transform-style: preserve-3d;
    transform-origin: center;
    cursor: pointer;
}
.lt-s2 .cnt-card-1 { border-radius: 20px 0 0 20px; margin-right: -1px; }
.lt-s2 .cnt-card-2 { margin-right: -1px; }
.lt-s2 .cnt-card-3 { border-radius: 0 20px 20px 0; }

/* ── Glow ── */
.lt-s2 .cnt-card-glow {
    position: absolute;
    inset: -60px;
    border-radius: 40px;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
    filter: blur(55px);
}
.lt-s2 .cnt-card-1 .cnt-card-glow { background: radial-gradient(circle, rgba(2,87,210,.45)  0%, transparent 65%); }
.lt-s2 .cnt-card-2 .cnt-card-glow { background: radial-gradient(circle, rgba(26,74,170,.4)  0%, transparent 65%); }
.lt-s2 .cnt-card-3 .cnt-card-glow { background: radial-gradient(circle, rgba(2,87,210,.35)  0%, transparent 65%); }

/* ── Front y Back base ── */
.lt-s2 .cnt-front,
.lt-s2 .cnt-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: inherit;
    overflow: hidden;
}
.lt-s2 .cnt-front img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Back ── */
.lt-s2 .cnt-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding: clamp(1.8rem, 2.5vw, 3rem) clamp(1.5rem, 2vw, 2.5rem);
    border: 1px solid rgba(255,255,255,.08);
    border-top: 1px solid rgba(255,255,255,.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 24px 60px rgba(0,0,0,.55);
}
.lt-s2 .cnt-back > * { position: relative; z-index: 2; }

.lt-s2 .cnt-back-1 { background: linear-gradient(158deg, var(--color-s2-card1-a) 0%, var(--color-s2-card1-b) 45%, var(--color-s2-card1-a) 100%); }
.lt-s2 .cnt-back-2 { background: linear-gradient(158deg, var(--color-s2-card2-a) 0%, var(--color-s2-card2-b) 45%, var(--color-s2-card2-a) 100%); }
.lt-s2 .cnt-back-3 { background: linear-gradient(158deg, var(--color-s2-card3-a) 0%, var(--color-s2-card3-b) 45%, var(--color-s2-card3-a) 100%); }

/* Shimmer hover */
.lt-s2 .cnt-back::after {
    content: '';
    position: absolute;
    top: 0; left: -80%;
    width: 50%; height: 100%;
    background: linear-gradient(108deg, transparent 15%, rgba(255,255,255,.07) 50%, transparent 85%);
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
}
@media (hover: hover) {
    .lt-s2 .cnt-card:hover .cnt-back::after {
        animation: cntShimmer .8s cubic-bezier(.4,0,.2,1) forwards;
    }
}
@keyframes cntShimmer { from { left: -80%; } to { left: 140%; } }

/* Watermark */
.lt-s2 .cnt-watermark {
    position: absolute;
    bottom: -60px; left: 50%;
    transform: translateX(-50%);
    font-size: 320px;
    color: rgba(255,255,255,.04);
    pointer-events: none;
    line-height: 1;
    z-index: 1;
}

/* Ícono */
.lt-s2 .cnt-icon {
    font-size: clamp(1.1rem, 1.5vw, 1.7rem);
    align-self: flex-start;
    color: rgba(255,255,255,.22);
}

/* Bloque central */
.lt-s2 .cnt-mid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
}
.lt-s2 .cnt-mid::after {
    content: '';
    display: block;
    width: 28px; height: 1px;
    background: rgba(255,255,255,.12);
}

/* Número */
.lt-s2 .cnt-num {
    font-family: var(--font-display);
    font-size: clamp(4rem, 7vw, 8.5rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -.02em;
    background: linear-gradient(160deg, #b8ffbd 0%, #5dde65 30%, #39b54a 55%, #5dde65 80%, #b8ffbd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 16px rgba(57,181,74,.28));
}
.lt-s2 .cnt-num b { font-weight: 400; font-style: normal; }

/* Label */
.lt-s2 .cnt-lbl {
    font-family: var(--font-body);
    font-size: clamp(.78rem, .95vw, 1.05rem);
    font-weight: 600;
    color: rgba(255,255,255,.75);
    letter-spacing: .14em;
    text-transform: uppercase;
}

/* Descripción */
.lt-s2 .cnt-desc {
    font-family: var(--font-body);
    font-size: clamp(.82rem, .95vw, 1rem);
    font-weight: 400;
    color: rgba(255,255,255,.6);
    line-height: 1.65;
}

/* ══════════════════════════════════════
   LAPTOP CORTO — 1366x768, 1280x720
══════════════════════════════════════ */
@media (min-width: 1200px) and (orientation: landscape) and (min-height: 500px) and (max-height: 800px) {
    .lt-s2 .cnt-header      { top: clamp(1.2rem, 3vh, 2.5rem); }
    .lt-s2 .cnt-header__sub { margin-bottom: .25rem; font-size: .75rem; }
    .lt-s2 .cnt-header__title { font-size: clamp(1.5rem, 2.3vw, 2.4rem); }

    .lt-s2 .cnt-cards-wrap {
        align-items: center;
        padding-top: 70px;
        padding-bottom: 0;
    }
    /* 76vh a 720px = 547px — con space-between el contenido se distribuye bien */
    .lt-s2 .cnt-cards { height: 76vh; }

    /* Back — space-between igual que desktop, padding más compacto */
    .lt-s2 .cnt-back {
        justify-content: space-between;
        padding: clamp(1.2rem, 2vh, 1.8rem) clamp(1.2rem, 1.5vw, 2rem);
    }
    .lt-s2 .cnt-icon  { font-size: clamp(1rem, 1.2vw, 1.3rem); }
    .lt-s2 .cnt-mid   { gap: .4rem; }
    .lt-s2 .cnt-num   { font-size: clamp(3rem, 5.5vw, 6rem); }
    .lt-s2 .cnt-lbl   { font-size: clamp(.75rem, .85vw, .92rem); }
    .lt-s2 .cnt-desc  {
        font-size: clamp(.75rem, .8vw, .88rem);
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        line-clamp: 3;
        overflow: hidden;
    }
    .lt-s2 .cnt-watermark { font-size: 220px; bottom: -45px; }
}
/* Liquid fill SVG — visible only in mobile block below */
.lt-s2 .liquid-svg { display: none; }

/* ══════════════════════════════════════
   MOBILE + TABLET
   Desktop: ≥1200px + landscape + ≥500px alto
   Todo lo demás: mobile / tablet
══════════════════════════════════════ */
@media not all and (min-width: 1200px) and (orientation: landscape) and (min-height: 500px) {

    /* Flujo natural — anula height:100svh y position:absolute de core.css */
    .lt-s2 {
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }
    .lt-s2 .lt-section__inner {
        position: relative !important;
        inset: auto !important;
        height: auto !important;
    }

    /* cnt-zip fluye con el documento — sin scroll interno */
    .lt-s2 .cnt-zip {
        background: transparent;
        overflow: visible;
        height: auto;
    }

    /* ── Header ── */
    .lt-s2 .cnt-header {
        position: relative;
        top: auto;
        padding: clamp(3.5rem, 8vw, 6rem) clamp(1.5rem, 5.5vw, 4rem) clamp(1.5rem, 3.5vw, 3rem);
        text-align: left;
    }
    .lt-s2 .cnt-header__sub {
        justify-content: flex-start;
        font-size: clamp(.72rem, 1.5vw, .88rem);
        margin-bottom: .7rem;
    }
    .lt-s2 .cnt-header__title {
        white-space: normal;
        font-size: clamp(2.8rem, 9.5vw, 5rem);
        line-height: .88;
    }

    /* ── Cards wrap → lista de stats ── */
    .lt-s2 .cnt-cards-wrap {
        position: relative;
        inset: auto;
        visibility: visible;
        display: block;
        padding: 0 clamp(1.5rem, 5.5vw, 4rem) clamp(3rem, 7vw, 6rem);
    }

    /* ── Cards → glass stat cards ── */
    .lt-s2 .cnt-cards {
        width: 100%;
        height: auto;
        flex-direction: column;
        gap: clamp(.75rem, 2.5vw, 1.2rem);
        perspective: none;
    }

    /* ── Glass stat card ── */
    .lt-s2 .cnt-card {
        height: auto;
        min-height: 0;
        transform-style: flat;
        overflow: visible;
        border-radius: 16px !important;
        margin-right: 0 !important;
        padding: clamp(1.4rem, 4.5vw, 2.4rem) clamp(1.2rem, 4vw, 2rem);
        border: 1px solid rgba(255,255,255,.08);
        border-top: 1px solid rgba(255,255,255,.16);
        background: rgba(255,255,255,.04);
        backdrop-filter: blur(14px) saturate(1.4);
        -webkit-backdrop-filter: blur(14px) saturate(1.4);
        box-shadow: 0 4px 28px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.07);
        position: relative;
        cursor: default;
        opacity: 0;
        transform: translateY(16px);
        transition: opacity .55s ease, transform .55s ease;
    }

    /* ── Liquid fill SVG ── */
    .lt-s2 .liquid-svg {
        display: block;
        position: absolute;
        inset: 0;
        width: 100%; height: 100%;
        z-index: 1;
        pointer-events: none;
        clip-path: inset(0 round 16px);
    }
    .lt-s2 .cnt-back { z-index: 2; }
    .lt-s2 .cnt-card:last-child {
        border-bottom: 1px solid rgba(255,255,255,.08);
    }
    .lt-s2 .cnt-card.cnt-card--visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* Línea acento verde superior — se despliega al entrar al viewport */
    .lt-s2 .cnt-card::after {
        content: '';
        position: absolute;
        top: 0; left: 15%; right: 15%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(57,181,74,.40), transparent);
        transform: scaleX(0);
        transform-origin: center;
        transition: transform .55s ease .2s;
    }
    .lt-s2 .cnt-card.cnt-card--visible::after {
        transform: scaleX(1);
    }

    /* ── Front: oculto ── */
    .lt-s2 .cnt-front { display: none; }

    /* ── Back: contenido sin glass ── */
    .lt-s2 .cnt-back {
        position: relative !important;
        transform: none !important;
        backface-visibility: visible !important;
        -webkit-backface-visibility: visible !important;
        overflow: visible !important;
        height: auto !important;
        min-height: 0 !important;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        text-align: center;
        gap: 0;
        padding: 0 !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        box-shadow: none !important;
    }
    .lt-s2 .cnt-back-1,
    .lt-s2 .cnt-back-2,
    .lt-s2 .cnt-back-3 { background: transparent !important; }
    .lt-s2 .cnt-back::after { display: none !important; }

    /* Ícono: top-right del card, dentro del padding */
    .lt-s2 .cnt-icon {
        position: absolute;
        top: clamp(1.4rem, 4.5vw, 2.4rem);
        right: clamp(1.2rem, 4vw, 2rem);
        font-size: clamp(1.1rem, 3.5vw, 1.5rem);
        color: rgba(255,255,255,.14);
        margin-bottom: 0;
        align-self: auto;
    }

    /* Número: héroe visual */
    .lt-s2 .cnt-num {
        font-size: clamp(5rem, 18vw, 7.5rem);
        letter-spacing: -.04em;
        line-height: .9;
        filter: drop-shadow(0 0 28px rgba(57,181,74,.22));
    }

    .lt-s2 .cnt-mid {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 0;
        margin-bottom: clamp(.65rem, 2vw, 1rem);
    }
    .lt-s2 .cnt-mid::after { display: none; }

    .lt-s2 .cnt-lbl {
        font-size: clamp(.76rem, 2vw, .96rem);
        letter-spacing: .16em;
        margin-top: clamp(.35rem, 1.2vw, .6rem);
        color: rgba(255,255,255,.62);
    }
    .lt-s2 .cnt-desc {
        font-size: clamp(.8rem, 1.5vw, .96rem);
        line-height: 1.65;
        color: rgba(255,255,255,.42);
    }

    .lt-s2 .cnt-watermark { display: none; }
    .lt-s2 .cnt-card-glow { display: none; }
    .lt-s2 #cntCanvas     { opacity: 0.18; }
    .lt-s2-spacer          { display: none; }
}

/* ── Pantallas muy cortas (landscape phone) — solo comprime espacios ── */
@media (max-height: 499px) {
    .lt-s2 .cnt-header        { padding-block: 1rem .5rem; }
    .lt-s2 .cnt-header__title { font-size: clamp(1.8rem, 5vw, 2.8rem); }
    .lt-s2 .cnt-card          { padding-block: 1rem; }
    .lt-s2 .cnt-num           { font-size: clamp(2.5rem, 6.5vw, 3.8rem); }
    .lt-s2 .cnt-cards-wrap    { padding-bottom: 1rem; }
}

/* ── Laptop normal: desktop, 800–900px alto ── */
@media (min-width: 1200px) and (orientation: landscape) and (min-height: 800px) and (max-height: 900px) {
    .lt-s2 .cnt-header { top: clamp(1.8rem, 4vh, 3rem); }
}