/* ==========================================================================
   KRASHHUB MARKETING — Neon Dark Edition
   ========================================================================== */

/* --- Custom Properties --- */
:root {
    --bg: #050507;
    --bg-s: #0b0c10;
    --bg-s2: #0f1018;
    --text: #F0F0F5;
    --muted: #8888aa;
    --yellow: #FFD400;
    --yellow-dim: rgba(255, 212, 0, 0.18);
    --yellow-glow: rgba(255, 212, 0, 0.5);
    --cyan: #00e5ff;
    --cyan-dim: rgba(0, 229, 255, 0.12);
    --magenta: #ff2d78;
    --glass-b: rgba(255, 255, 255, 0.06);
    --r-sm: 16px;
    --r-lg: 26px;
}

/* --- Reset --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Sora', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

::selection {
    background: var(--yellow);
    color: #000;
}

/* --- Typography --- */
h1 {
    font-size: clamp(3.2rem, 9vw, 7rem);
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 800;
}

p {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: var(--muted);
    line-height: 1.7;
}

/* --- Neon Text Utilities --- */
.text-neon {
    color: var(--yellow);
    text-shadow: 0 0 8px var(--yellow-glow), 0 0 30px var(--yellow-dim);
}

.text-neon-cyan {
    color: var(--cyan);
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.7), 0 0 30px var(--cyan-dim);
}

.text-neon-mag {
    color: var(--magenta);
    text-shadow: 0 0 8px rgba(255, 45, 120, 0.6);
}

/* --- Glass Card --- */
.glass-panel {
    background: rgba(11, 12, 16, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-b);
    border-radius: var(--r-lg);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 32px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--yellow);
    color: #000;
    box-shadow: 0 0 20px var(--yellow-dim), 0 0 50px rgba(255, 212, 0, 0.08);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 0 35px var(--yellow-glow), 0 0 70px rgba(255, 212, 0, 0.15);
    background: #ffe23a;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

/* --- Word wrapper for GSAP splits --- */
.word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
}

.word span {
    display: inline-block;
}

/* --- Ambient Background --- */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.ambient-shape {
    fill: none;
    stroke: var(--yellow);
    stroke-width: 1.5;
    filter: drop-shadow(0 0 12px rgba(255, 212, 0, 0.4));
    opacity: 0.1;
}

/* --- Scroll Dots --- */
.scroll-progress {
    position: fixed;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 200;
}

.scroll-dot {
    width: 7px;
    height: 7px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    transition: all 0.35s ease;
    cursor: pointer;
}

.scroll-dot.active {
    background: var(--yellow);
    box-shadow: 0 0 10px var(--yellow-glow), 0 0 20px var(--yellow-dim);
    transform: scale(1.7);
}

/* --- Chapter Base --- */
main {
    position: relative;
}

.chapter {
    position: relative;
    min-height: 100dvh;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 5rem 6%;
    /* per-chapter overrides below */
}

/* Chapter number label */
.chap-label {
    position: absolute;
    top: 2.5rem;
    left: 6%;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    gap: 10px;
}

.chap-label::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

/* ============================================================
   CHAPTER 0 — HERO
   ============================================================ */
#chap-0 {
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

#chap-0::before {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255, 212, 0, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    max-width: 820px;
    z-index: 2;
    position: relative;
}

/* Subtitle eyebrow pill above H1 */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--yellow);
    border: 1px solid rgba(255, 212, 0, 0.25);
    border-radius: 999px;
    padding: 6px 16px;
    background: rgba(255, 212, 0, 0.06);
    width: fit-content;
}

.hero-h1-sub {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

/* Hologram stats panel */
.hologram-panel {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%) rotateY(-15deg) rotateX(5deg);
    width: 260px;
    padding: 2.2rem 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 3;
    transform-style: preserve-3d;
    border: 1px solid rgba(255, 212, 0, 0.18);
    background: rgba(6, 6, 10, 0.8);
    box-shadow: 0 0 40px rgba(255, 212, 0, 0.1), inset 0 0 30px rgba(255, 212, 0, 0.03);
}

.hologram-panel::before {
    content: 'LIVE';
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    color: var(--magenta);
    background: rgba(255, 45, 120, 0.12);
    border: 1px solid rgba(255, 45, 120, 0.3);
    border-radius: 999px;
    padding: 3px 8px;
}

.stat-item {
    transform: translateZ(30px);
}

.stat-item h3 {
    font-size: 2.4rem;
    color: var(--yellow);
    text-shadow: 0 0 15px var(--yellow-glow);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-item p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
}

/* Glitch line on hologram */
.hologram-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--yellow), transparent);
    animation: scanline 3s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes scanline {
    0% {
        top: 0%;
        opacity: 0.8;
    }

    50% {
        top: 100%;
        opacity: 0.3;
    }

    100% {
        top: 0%;
        opacity: 0.8;
    }
}

/* ============================================================
   CHAPTER STATS — NÚMEROS QUE HABLAN
   ============================================================ */
.stats-chapter {
    background: linear-gradient(160deg, #06060a 0%, #0c0d14 60%, #080910 100%);
    overflow: hidden;
    min-height: auto;
    padding: 5rem 5%;
    flex-direction: column;
    align-items: stretch;
}

.stats-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.stats-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 2.5rem;
}

.stats-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 0 10px var(--yellow-glow);
    animation: dotpulse 2s ease-in-out infinite;
}

@keyframes dotpulse {

    0%,
    100% {
        box-shadow: 0 0 8px var(--yellow-glow);
    }

    50% {
        box-shadow: 0 0 20px var(--yellow-glow), 0 0 40px rgba(255, 212, 0, 0.2);
    }
}

/* Bento grid */
.stats-bento {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.2rem;
}

/* Card base */
.stat-bento-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 22px;
    padding: 2.4rem 2.2rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s, background 0.4s;
}

.stat-bento-card:hover {
    border-color: rgba(255, 212, 0, 0.25);
    background: rgba(255, 212, 0, 0.03);
}

.stat-bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top left, rgba(255, 212, 0, 0.05), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s;
}

.stat-bento-card:hover::before {
    opacity: 1;
}

/* Featured: row 1–2 col 1 */
.stat-featured {
    grid-column: 1;
    grid-row: 1 / 3;
    background: linear-gradient(145deg, rgba(255, 212, 0, 0.06) 0%, rgba(255, 255, 255, 0.02) 60%);
    border-color: rgba(255, 212, 0, 0.18);
}

/* Tall: row 1 col 2 */
.stat-tall {
    grid-column: 2;
    grid-row: 1;
}

/* Normal: row 1 col 3 */
.stat-bento-card:not(.stat-featured):not(.stat-tall):not(.stat-wide) {
    grid-column: 3;
    grid-row: 1;
}

/* Wide: row 2 col 2-3 */
.stat-wide {
    grid-column: 2 / 4;
    grid-row: 2;
}

/* Card content */
.stat-tag {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--yellow);
    background: rgba(255, 212, 0, 0.08);
    border: 1px solid rgba(255, 212, 0, 0.2);
    border-radius: 999px;
    padding: 4px 12px;
    width: fit-content;
    margin-bottom: 1.2rem;
}

.stat-big {
    font-size: clamp(3.5rem, 7vw, 6rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    color: #fff;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.stat-featured .stat-big {
    font-size: clamp(5rem, 10vw, 8.5rem);
    color: var(--yellow);
    text-shadow: 0 0 30px rgba(255, 212, 0, 0.4), 0 0 80px rgba(255, 212, 0, 0.1);
}

.stat-unit {
    font-size: 0.45em;
    color: var(--yellow);
    opacity: 0.7;
    margin-top: 0.3em;
}

.stat-desc {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
    margin-top: 0.5rem;
}

/* Progress bar */
.stat-bar-wrap {
    margin-top: 2rem;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
}

.stat-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--yellow), #ffaa00);
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(255, 212, 0, 0.6);
    transition: width 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Logo/industry strip */
.stat-logo-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1.5rem;
}

.stat-logo-strip span {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.03);
}

/* ============================================================
   CHAPTER 1 — THE PROBLEM
   ============================================================ */
#chap-1 {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-s) 100%);
}

#chap-1::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    bottom: 10%;
    width: 4px;
    background: linear-gradient(to bottom, transparent, var(--magenta), transparent);
    filter: blur(2px);
    opacity: 0.4;
}

#chap-1 .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.text-block h2 {
    margin-bottom: 1.5rem;
}

.problem-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.problem-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    padding: 1.1rem 1.5rem;
    border-radius: var(--r-sm);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(20, 20, 30, 0.5);
    transition: border-color 0.3s, background 0.3s;
    position: relative;
    overflow: hidden;
}

.problem-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--magenta);
    box-shadow: 0 0 10px rgba(255, 45, 120, 0.6);
    opacity: 0;
    transition: opacity 0.3s;
}

.problem-item:hover {
    border-color: rgba(255, 45, 120, 0.25);
    background: rgba(255, 45, 120, 0.05);
}

.problem-item:hover::before {
    opacity: 1;
}

.problem-icon {
    color: var(--magenta);
    background: rgba(255, 45, 120, 0.1);
    border: 1px solid rgba(255, 45, 120, 0.2);
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1rem;
    box-shadow: 0 0 12px rgba(255, 45, 120, 0.15);
}

/* ============================================================
   CHAPTER 2 — SISTEMA KRASH (CARDS)
   ============================================================ */
#chap-2 {
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(160deg, var(--bg-s) 0%, var(--bg) 60%);
    overflow: hidden;
    gap: 3rem;
}

#chap-2::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.05), transparent 70%);
    pointer-events: none;
}

.system-header {
    text-align: center;
    position: relative;
    z-index: 2;
}

.system-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 3rem auto 0;
    display: flex;
    gap: 1.5rem;
    z-index: 2;
    perspective: 1200px;
}

.system-card {
    flex: 1;
    min-width: 0;
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: var(--r-lg);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Each card has a distinct accent */
.system-card:nth-child(1) {
    --card-color: var(--yellow);
    --card-glow: var(--yellow-glow);
}

.system-card:nth-child(2) {
    --card-color: var(--cyan);
    --card-glow: rgba(0, 229, 255, 0.5);
}

.system-card:nth-child(3) {
    --card-color: var(--magenta);
    --card-glow: rgba(255, 45, 120, 0.5);
}

.system-card {
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.system-card h3 {
    color: var(--card-color) !important;
    font-size: 2.2rem !important;
    text-shadow: 0 0 20px var(--card-glow);
    margin-bottom: 0.8rem !important;
}

.system-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1.8rem;
    flex-wrap: wrap;
}

.sys-tag {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.04);
    letter-spacing: 0.04em;
}

/* Dot indicators for 3D carousel */
.system-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: -1rem;
    z-index: 4;
    position: relative;
}

.sys-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.3s;
}

.sys-dot.active {
    background: var(--yellow);
    box-shadow: 0 0 8px var(--yellow-glow);
    width: 24px;
    border-radius: 4px;
}

/* ============================================================
   FLIP CARD — Arsenal modules
   ============================================================ */
.flip-card {
    flex: 1;
    min-width: 200px;
    max-width: 260px;
    height: 340px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-inner {
    transform: rotateY(180deg);
}

.flip-front,
.flip-back {
    position: absolute;
    inset: 0;
    border-radius: var(--r-lg);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Front: reuses .console-module styles — just need the 3D base */
.flip-front {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.4rem;
    text-align: center;
}

/* Back face */
.flip-back {
    transform: rotateY(180deg);
    padding: 1.6rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(8, 9, 14, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

/* Top accent bar per card index — matches neon color */
.flip-card:nth-child(1) .flip-back::before {
    background: var(--yellow);
}

.flip-card:nth-child(2) .flip-back::before {
    background: var(--cyan);
}

.flip-card:nth-child(3) .flip-back::before {
    background: #a855f7;
}

.flip-card:nth-child(4) .flip-back::before {
    background: var(--magenta);
}

.flip-card:nth-child(5) .flip-back::before {
    background: #22c55e;
}

.flip-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    box-shadow: 0 0 12px currentColor;
}

.flip-back-tag {
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--yellow);
    margin-bottom: 1rem;
}

.flip-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex: 1;
}

.flip-list li {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.45;
    padding-left: 1.2rem;
    position: relative;
}

.flip-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--yellow);
    font-size: 0.7rem;
}

.flip-cta {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--yellow);
    text-decoration: none;
    letter-spacing: 0.05em;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 0.8rem;
    transition: color 0.2s, letter-spacing 0.2s;
}

.flip-cta:hover {
    color: #fff;
    letter-spacing: 0.1em;
}

/* ============================================================
   CHAPTER 3 — EL ARSENAL (Console modules)
   ============================================================ */
#chap-3 {
    background: linear-gradient(200deg, var(--bg) 0%, #07080f 100%);
}

#chap-3 .container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.console-grid {
    display: flex;
    gap: 18px;
    margin-top: 3.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.console-module {
    /* sizing now driven by .flip-card */
    flex: 1;
    width: 100%;
    max-width: 100%;
    /* layout */
    padding: 2.2rem 1.4rem;
    text-align: center;
    cursor: pointer;
    background: linear-gradient(180deg, #0b0c14 0%, #050508 100%);
    position: relative;
    overflow: hidden;
    /* No hover transform — flip-card handles interaction */
    transition: none;
}

/* Top neon bar — unique color per module */
.console-module::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--m-color, var(--yellow));
    box-shadow: 0 0 12px var(--m-glow, var(--yellow-glow)), 0 0 25px var(--m-glow, var(--yellow-glow));
    opacity: 0.7;
    transition: opacity 0.4s;
}

.console-module:nth-child(1) {
    --m-color: #FFD400;
    --m-glow: rgba(255, 212, 0, 0.6);
}

.console-module:nth-child(2) {
    --m-color: #00e5ff;
    --m-glow: rgba(0, 229, 255, 0.6);
}

.console-module:nth-child(3) {
    --m-color: #a855f7;
    --m-glow: rgba(168, 85, 247, 0.6);
}

.console-module:nth-child(4) {
    --m-color: #ff2d78;
    --m-glow: rgba(255, 45, 120, 0.6);
}

.console-module:nth-child(5) {
    --m-color: #22c55e;
    --m-glow: rgba(34, 197, 94, 0.6);
}

.console-module:hover {
    transform: translateY(-12px) rotateX(8deg);
    border-color: var(--m-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 25px var(--m-glow);
}

.console-module:hover::before {
    opacity: 1;
}

.module-icon {
    font-size: 2.8rem;
    color: var(--m-color);
    margin-bottom: 1.4rem;
    opacity: 0.65;
    transition: opacity 0.3s, filter 0.3s;
    filter: drop-shadow(0 0 0px transparent);
}

.flip-card:hover .module-icon {
    opacity: 1;
    filter: drop-shadow(0 0 10px var(--m-glow));
}

.console-module h4 {
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.4rem;
    transition: color 0.3s;
}

.console-module:hover h4 {
    color: var(--m-color);
}

/* Vertical fader */
.module-fader {
    width: 6px;
    height: 70px;
    background: #16171f;
    margin: 0 auto;
    border-radius: 3px;
    position: relative;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8);
}

.module-fader::after {
    content: '';
    position: absolute;
    bottom: 8%;
    left: -7px;
    width: 20px;
    height: 10px;
    background: #3a3a4a;
    border-radius: 3px;
    transition: bottom 0.5s cubic-bezier(0.25, 1, 0.5, 1), background 0.3s, box-shadow 0.3s;
}

.console-module:hover .module-fader::after {
    bottom: 82%;
    background: var(--m-color);
    box-shadow: 0 0 14px var(--m-glow);
}

/* ============================================================
   CHAPTER 4 — RESULTADOS (Cases)
   ============================================================ */
#chap-4 {
    background: var(--bg-s);
    overflow: hidden;
}

#chap-4::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 80vw;
    max-width: 700px;
    background: radial-gradient(ellipse, rgba(255, 212, 0, 0.04), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

#chap-4 .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    margin-top: 4rem;
}

.case-card {
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.4s, transform 0.4s, box-shadow 0.4s;
    position: relative;
    overflow: hidden;
}

.case-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--yellow), var(--cyan));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.case-card:hover {
    border-color: rgba(255, 212, 0, 0.2);
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.case-card:hover::after {
    transform: scaleX(1);
}

.case-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 4px 12px;
    width: fit-content;
}

.case-metric {
    font-size: 3.8rem;
    font-weight: 900;
    color: var(--yellow);
    line-height: 1;
    text-shadow: 0 0 25px var(--yellow-dim);
}

.case-img-ph {
    width: 100%;
    height: 180px;
    border-radius: var(--r-sm);
    margin-top: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

/* ============================================================
   CHAPTER 5 — PROCESO (Timeline)
   ============================================================ */
#chap-5 {
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(160deg, var(--bg-s2) 0%, var(--bg) 100%);
}

.timeline-container {
    position: relative;
    width: 100%;
    max-width: 1050px;
    margin: 4.5rem auto 0;
    display: flex;
    justify-content: space-between;
}

.timeline-svg {
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    height: 20px;
    z-index: 0;
}

.timeline-path-active {
    fill: none;
    stroke: var(--yellow);
    stroke-width: 3;
    filter: drop-shadow(0 0 8px var(--yellow-glow)) drop-shadow(0 0 20px rgba(255, 212, 0, 0.2));
}

.timeline-node {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 200px;
}

.node-dot {
    width: 62px;
    height: 62px;
    background: var(--bg-s2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 0 0 0 transparent;
}

.timeline-node.active .node-dot {
    background: rgba(255, 212, 0, 0.08);
    border-color: var(--yellow);
    color: var(--yellow);
    box-shadow: 0 0 25px var(--yellow-glow), 0 0 50px rgba(255, 212, 0, 0.1),
        inset 0 0 15px rgba(255, 212, 0, 0.06);
    transform: scale(1.15);
}

.timeline-node h4 {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.4s;
    margin-bottom: 0.5rem;
}

.timeline-node.active h4 {
    color: var(--yellow);
}

.timeline-node p {
    font-size: 0.85rem;
}

/* ============================================================
   CHAPTER 6 — CTA
   ============================================================ */
#chap-6 {
    justify-content: center;
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(255, 212, 0, 0.06) 0%, var(--bg) 65%);
    overflow: hidden;
}

#chap-6::before {
    content: 'KRASHHUB';
    position: absolute;
    bottom: -5%;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(6rem, 18vw, 16rem);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.015);
    white-space: nowrap;
    letter-spacing: -0.04em;
    pointer-events: none;
}

.cta-panel {
    max-width: 620px;
    width: 100%;
    padding: 4rem 3.5rem;
    position: relative;
    z-index: 1;
    border-color: rgba(255, 212, 0, 0.18);
    box-shadow: 0 0 60px rgba(255, 212, 0, 0.08), 0 30px 80px rgba(0, 0, 0, 0.6);
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 2.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group select option {
    background: #0f1018;
}

.form-group input:focus,
.form-group select:focus {
    border-color: rgba(255, 212, 0, 0.5);
    box-shadow: 0 0 20px rgba(255, 212, 0, 0.12);
}

/* ============================================================
   SCROLL REVEAL base state (GSAP will reveal these)
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .chapter {
        min-height: auto;
        padding: 7rem 5%;
        perspective: none;
    }

    .hologram-panel {
        position: relative;
        right: auto;
        top: auto;
        transform: none !important;
        width: 100%;
        margin-top: 3rem;
    }

    #chap-1 .container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .stats-bento {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .stat-featured,
    .stat-tall,
    .stat-wide,
    .stat-bento-card:not(.stat-featured):not(.stat-tall):not(.stat-wide) {
        grid-column: 1;
        grid-row: auto;
    }

    .stat-featured .stat-big {
        font-size: clamp(4rem, 18vw, 6rem);
    }


    .system-carousel-wrapper {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        perspective: none;
    }

    .system-card {
        position: relative;
        transform: none !important;
        opacity: 1 !important;
    }

    .console-grid {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 1rem;
    }

    .console-module {
        min-width: 160px;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }

    .timeline-container {
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start;
    }

    .timeline-svg {
        display: none;
    }

    .timeline-node {
        display: flex;
        align-items: center;
        width: 100%;
        text-align: left;
        gap: 1.5rem;
    }

    .node-dot {
        margin: 0;
        flex-shrink: 0;
    }

    .scroll-progress {
        display: none;
    }

    #chap-0::before {
        width: 100vw;
        height: 100vw;
    }
}

@media (max-width: 600px) {
    .cta-panel {
        padding: 2.5rem 1.8rem;
    }

    .hero-actions {
        flex-direction: column;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}