/* ============================================================
   Delfos Travel — web comercial
   Tema: navy profundo + azul eléctrico (paleta del logo)
   ============================================================ */

:root {
    --bg0: #030714;
    --bg1: #050b1f;
    --bg2: #081130;
    --panel: rgba(13, 24, 54, .55);
    --glass: rgba(255, 255, 255, .045);
    --line: rgba(150, 175, 230, .14);
    --line-strong: rgba(150, 175, 230, .25);
    --text: #e9eefb;
    --muted: #9fb0d2;
    --blue: #2e6bf0;
    --blue-2: #3b82f6;
    --blue-soft: #7db4ff;
    --cyan: #22d3ee;
    --grad: linear-gradient(92deg, #4f8cff 0%, #22d3ee 100%);
    --grad-btn: linear-gradient(92deg, #2e6bf0 0%, #0ea5e9 100%);
    --glow: 0 10px 40px -8px rgba(46, 107, 240, .55);
    --radius: 18px;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 86px; }

body {
    font-family: var(--font-body);
    background: var(--bg0);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1180px, 92%); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.02em; }

.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ============ fondo global ============ */
.bg-stage { position: fixed; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 50% 0%, var(--bg2) 0%, var(--bg1) 45%, var(--bg0) 100%); }

.bg-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(125, 180, 255, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(125, 180, 255, .055) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(75% 55% at 50% 8%, #000 0%, transparent 100%);
    -webkit-mask-image: radial-gradient(75% 55% at 50% 8%, #000 0%, transparent 100%);
}

.orb { position: absolute; border-radius: 50%; opacity: .6; transform: translateZ(0); }
.orb-a { width: 720px; height: 720px; top: -260px; left: -200px; background: radial-gradient(circle, rgba(46, 107, 240, .4) 0%, rgba(46, 107, 240, .12) 40%, transparent 68%); animation: drift 16s ease-in-out infinite alternate; }
.orb-b { width: 640px; height: 640px; top: 2%; right: -240px; background: radial-gradient(circle, rgba(34, 211, 238, .26) 0%, rgba(34, 211, 238, .08) 40%, transparent 68%); animation: drift 20s ease-in-out infinite alternate-reverse; }
.orb-c { width: 800px; height: 800px; bottom: -340px; left: 26%; background: radial-gradient(circle, rgba(99, 91, 255, .22) 0%, rgba(99, 91, 255, .07) 40%, transparent 68%); animation: drift 24s ease-in-out infinite alternate; }

@keyframes drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(60px, 40px, 0) scale(1.08); }
}

.stars {
    position: absolute; inset: 0; opacity: .5;
    background-image:
        radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,.7) 50%, transparent 51%),
        radial-gradient(1px 1px at 28% 64%, rgba(255,255,255,.5) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 45% 12%, rgba(160,200,255,.7) 50%, transparent 51%),
        radial-gradient(1px 1px at 62% 42%, rgba(255,255,255,.45) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 78% 18%, rgba(160,200,255,.6) 50%, transparent 51%),
        radial-gradient(1px 1px at 88% 56%, rgba(255,255,255,.5) 50%, transparent 51%),
        radial-gradient(1px 1px at 8% 84%, rgba(255,255,255,.35) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 94% 82%, rgba(160,200,255,.45) 50%, transparent 51%);
    animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .3; } to { opacity: .65; } }

/* ============ botones ============ */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    font-weight: 600; font-size: .95rem;
    padding: .72rem 1.3rem; border-radius: 999px;
    border: 1px solid transparent;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
    cursor: pointer; white-space: nowrap;
}
.btn i { font-size: 1.1em; }
.btn-lg { padding: .95rem 1.7rem; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -8px rgba(46, 107, 240, .75); }

.btn-glass { background: var(--glass); border-color: var(--line-strong); color: var(--text); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .09); transform: translateY(-2px); }

.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--text); }

/* ============ nav ============ */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
    border-bottom: 1px solid transparent;
}
.nav.scrolled, .nav.menu-open {
    background: rgba(5, 11, 31, .8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
    box-shadow: 0 10px 35px -18px rgba(0, 0, 0, .8);
}
.nav.menu-open { background: #060d24; }
.nav-inner { display: flex; align-items: center; gap: 1.25rem; height: 76px; }
.nav-logo { flex-shrink: 0; }
.nav-logo img { height: 40px; width: auto; max-width: none; }
.nav-links { display: flex; gap: 1.1rem; margin-inline: auto; }
.nav-links a { color: var(--muted); font-size: .92rem; font-weight: 500; transition: color .2s; position: relative; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
    border-radius: 2px; background: var(--grad);
}
.nav-cta { display: flex; align-items: center; gap: .35rem; flex-shrink: 0; }
.nav-cta .btn-ghost { padding: .45rem .65rem; font-size: .86rem; }
.nav-cta .btn-primary { padding: .5rem .9rem; font-size: .87rem; }
.nav-cta .btn-primary i { display: none; }
.nav-burger {
    display: none; background: var(--glass); border: 1px solid var(--line-strong);
    color: var(--text); width: 42px; height: 42px; border-radius: 12px;
    font-size: 1.3rem; cursor: pointer; align-items: center; justify-content: center;
}
.nav-cta-mobile { display: none; }

/* ============ hero ============ */
.hero { padding: 168px 0 40px; position: relative; }
.hero-grid {
    display: grid; grid-template-columns: 1.02fr .98fr;
    gap: 3.5rem; align-items: center;
}

.badge {
    display: inline-flex; align-items: center; gap: .55rem;
    font-size: .85rem; font-weight: 600; color: var(--blue-soft);
    background: rgba(46, 107, 240, .12);
    border: 1px solid rgba(95, 150, 255, .35);
    padding: .42rem 1rem; border-radius: 999px;
    margin-bottom: 1.4rem;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: pulse 2s ease infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.7); opacity: .6; } }

.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 700; margin-bottom: 1.3rem; }
.hero h1 .grad-text { position: relative; background-size: 200% 100%; animation: shimmer 5s linear infinite; }
@keyframes shimmer { to { background-position: 200% 0; } }

.hero-sub { color: var(--muted); font-size: 1.13rem; max-width: 34rem; margin-bottom: 2rem; }
.hero-sub strong { color: var(--text); }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .88rem; margin-top: 1.4rem; flex-wrap: wrap; }
.hero-trust i { color: var(--cyan); }
.hero-trust span { opacity: .4; }

/* ---- demo window ---- */
.hero-demo { position: relative; }
.demo-beam {
    position: absolute; inset: -12% -8%;
    background: conic-gradient(from 0deg at 50% 50%,
        transparent 0deg, rgba(46, 107, 240, .07) 30deg, rgba(46, 107, 240, .2) 60deg, rgba(46, 107, 240, .07) 90deg,
        transparent 130deg, rgba(34, 211, 238, .06) 185deg, rgba(34, 211, 238, .15) 220deg, rgba(34, 211, 238, .06) 255deg,
        transparent 300deg);
    border-radius: 50%;
    animation: spin 18s linear infinite;
    transform: translateZ(0);
}
@keyframes spin { to { transform: rotate(360deg); } }

.demo-window {
    position: relative;
    background: linear-gradient(160deg, rgba(20, 33, 70, .9), rgba(8, 15, 38, .94));
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .07);
    overflow: hidden;
}
.demo-bar {
    display: flex; align-items: center; gap: .45rem;
    padding: .8rem 1.1rem; border-bottom: 1px solid var(--line);
}
.demo-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.demo-url {
    margin-left: .8rem; flex: 1; display: flex; align-items: center; gap: .45rem;
    background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
    font-size: .76rem; color: var(--muted);
    padding: .3rem .8rem; border-radius: 8px;
}
.demo-body { position: relative; height: 420px; }

.demo-phase {
    position: absolute; inset: 0; padding: 1.4rem;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity .45s ease;
}
.demo-phase.on { opacity: 1; visibility: visible; }

/* fase 1: subida */
.upload-zone {
    width: min(330px, 90%);
    border: 1.5px dashed rgba(125, 180, 255, .4);
    border-radius: 16px;
    padding: 1.6rem;
    display: flex; flex-direction: column; gap: 1rem; align-items: center;
    background: rgba(46, 107, 240, .05);
}
.upload-file { display: flex; gap: .8rem; align-items: center; width: 100%; }
.upload-file i { font-size: 2.1rem; color: #ff6b6b; }
.upload-file strong { display: block; font-size: .92rem; }
.upload-file small { color: var(--muted); font-size: .76rem; }
.upload-track { width: 100%; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .09); overflow: hidden; }
.upload-fill { height: 100%; width: 0; border-radius: 99px; background: var(--grad); }
.phase-upload.on .upload-fill { animation: fillUp 2.3s ease-out forwards; }
@keyframes fillUp { 0% { width: 0; } 70% { width: 82%; } 100% { width: 100%; } }
.upload-label { color: var(--muted); font-size: .8rem; }

/* fase 2: IA */
.ai-core { position: relative; width: 92px; height: 92px; display: grid; place-items: center; margin-bottom: 1.1rem; }
.ai-core > i { font-size: 2.5rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; animation: pulse 1.6s ease infinite; }
.ai-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(79, 140, 255, .5); border-top-color: transparent; animation: spin 1.6s linear infinite; }
.ai-ring.r2 { inset: -14px; border-color: rgba(34, 211, 238, .35); border-bottom-color: transparent; animation: spin 2.6s linear infinite reverse; }
.ai-status { font-size: .95rem; color: var(--text); margin-bottom: 1.2rem; }
.dots span { animation: blink 1.2s infinite; }
.dots span:nth-child(2) { animation-delay: .2s; }
.dots span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }

.ai-chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; max-width: 360px; }
.chip {
    display: inline-flex; align-items: center; gap: .4rem;
    background: rgba(46, 107, 240, .14); border: 1px solid rgba(95, 150, 255, .4);
    color: #cfe0ff; font-size: .8rem; font-weight: 500;
    padding: .38rem .8rem; border-radius: 999px;
    opacity: 0; transform: translateY(10px) scale(.92);
}
.phase-ai.on .chip { animation: chipIn .45s cubic-bezier(.2, .9, .3, 1.4) forwards; }
.phase-ai.on .chip:nth-child(1) { animation-delay: .5s; }
.phase-ai.on .chip:nth-child(2) { animation-delay: 1.1s; }
.phase-ai.on .chip:nth-child(3) { animation-delay: 1.7s; }
.phase-ai.on .chip:nth-child(4) { animation-delay: 2.3s; }
.phase-ai.on .chip:nth-child(5) { animation-delay: 2.9s; }
@keyframes chipIn { to { opacity: 1; transform: none; } }
.chip i { color: var(--cyan); }

.ai-scanline {
    position: absolute; left: 0; right: 0; top: 0; height: 90px;
    background: linear-gradient(to bottom, transparent, rgba(34, 211, 238, .12), transparent);
    border-bottom: 1px solid rgba(34, 211, 238, .45);
    opacity: 0;
}
.phase-ai.on .ai-scanline { animation: scan 2.6s ease-in-out infinite; }
@keyframes scan { 0% { transform: translateY(-90px); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(420px); opacity: 0; } }

/* fase 3: landing construida */
.phase-build { padding: 1.1rem; }
.lp { width: min(330px, 94%); display: flex; flex-direction: column; gap: .6rem; position: relative; z-index: 1; }
.lb { opacity: 0; transform: translateY(16px); }
.phase-build.on .lb { animation: lbIn .55s cubic-bezier(.2, .8, .3, 1.15) forwards; }
.phase-build.on .lb:nth-child(1) { animation-delay: .15s; }
.phase-build.on .lb:nth-child(2) { animation-delay: .65s; }
.phase-build.on .lb:nth-child(3) { animation-delay: 1.15s; }
.phase-build.on .lb:nth-child(4) { animation-delay: 1.65s; }
@keyframes lbIn { to { opacity: 1; transform: none; } }

.lp-hero { border-radius: 14px; overflow: hidden; position: relative; border: 1px solid var(--line); }
.lp-scene { display: block; width: 100%; height: 118px; }
.lp-hero-txt { position: absolute; left: .9rem; bottom: .6rem; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.lp-hero-txt strong { display: block; font-family: var(--font-display); font-size: 1.02rem; color: #fff; }
.lp-hero-txt span { font-size: .72rem; color: #e7f6ff; }

.lp-chips { display: flex; gap: .4rem; }
.lp-chips span {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
    background: rgba(255, 255, 255, .07); border: 1px solid var(--line);
    font-size: .66rem; color: var(--muted); padding: .34rem .2rem; border-radius: 8px;
}
.lp-chips i { color: var(--blue-soft); font-size: .8rem; }

.lp-itinerary { display: flex; gap: .4rem; }
.lp-day {
    flex: 1; background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
    border-radius: 10px; padding: .5rem .6rem;
}
.lp-day b { font-size: .66rem; color: var(--blue-soft); display: block; margin-bottom: .35rem; }
.lp-day span { display: block; height: 5px; border-radius: 4px; background: rgba(255, 255, 255, .14); }
.lp-day span::after { content: ''; }

.lp-price {
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(120deg, rgba(46, 107, 240, .22), rgba(34, 211, 238, .12));
    border: 1px solid rgba(95, 150, 255, .45);
    border-radius: 12px; padding: .7rem .9rem;
}
.lp-price small { display: block; font-size: .66rem; color: var(--muted); }
.lp-price strong { font-family: var(--font-display); font-size: 1.3rem; color: #fff; }
.lp-wa {
    display: inline-flex; align-items: center; gap: .35rem;
    background: #1faa53; color: #fff; font-size: .78rem; font-weight: 600;
    padding: .5rem .85rem; border-radius: 999px;
    box-shadow: 0 8px 22px -6px rgba(31, 170, 83, .7);
}
.lp-glow { position: absolute; inset: 30% 10% 0; background: radial-gradient(60% 60% at 50% 60%, rgba(46, 107, 240, .25), transparent 70%); filter: blur(20px); }

/* tarjetas flotantes */
.float-card {
    position: absolute; z-index: 2;
    display: flex; gap: .65rem; align-items: center;
    background: rgba(10, 19, 45, .85); backdrop-filter: blur(10px);
    border: 1px solid var(--line-strong);
    border-radius: 14px; padding: .65rem .9rem;
    box-shadow: 0 18px 45px -18px rgba(0, 0, 0, .75);
    animation: floaty 5.5s ease-in-out infinite;
}
.float-card strong { display: block; font-size: .8rem; }
.float-card small { color: var(--muted); font-size: .68rem; }
.float-card i { font-size: 1.25rem; }
.fc-a { top: -24px; right: -14px; animation-delay: .4s; }
.fc-a i { color: #ff8a4c; }
.fc-b { bottom: 132px; left: -46px; }
.fc-b i { color: #2dd4a7; }
.fc-c { bottom: -22px; right: 26px; animation-delay: 1.1s; }
.fc-c i { color: var(--blue-soft); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* stats */
.stats {
    margin-top: 4.5rem;
    display: grid; grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--glass); backdrop-filter: blur(8px);
    overflow: hidden;
}
.stat { text-align: center; padding: 1.5rem 1rem; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-display); font-size: 2.2rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: .86rem; }

/* ============ strip integraciones ============ */
.strip { padding: 3.2rem 0 1rem; text-align: center; }
.strip-title { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1.4rem; }

.marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: inline-flex; gap: .7rem; padding-block: .2rem; animation: marquee 36s linear infinite; white-space: nowrap; width: max-content; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.pill {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--glass); border: 1px solid var(--line);
    color: var(--muted); font-size: .88rem; font-weight: 500;
    padding: .55rem 1.1rem; border-radius: 999px;
}
.pill i { color: var(--blue-soft); font-size: 1.05rem; }
.pill.sm { font-size: .8rem; padding: .4rem .9rem; }

/* ============ secciones ============ */
.section { padding: 6.5rem 0; position: relative; }
.section-tight { padding: 4rem 0; }

.section-head { text-align: center; max-width: 46rem; margin: 0 auto 3.6rem; }
.kicker {
    display: inline-flex; align-items: center; gap: .45rem;
    color: var(--cyan); font-size: .82rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .16em;
    margin-bottom: 1rem;
}
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-bottom: 1rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ============ pasos ============ */
.steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 1.2rem; align-items: stretch; }
.step {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.8rem;
    position: relative; overflow: hidden;
    transition: transform .25s ease, border-color .25s ease;
}
.step:hover { transform: translateY(-5px); border-color: rgba(95, 150, 255, .5); }
.step-num { position: absolute; top: 1rem; right: 1.2rem; font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: rgba(125, 180, 255, .14); }
.step-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: grid; place-items: center; font-size: 1.5rem; color: var(--blue-soft);
    background: rgba(46, 107, 240, .14); border: 1px solid rgba(95, 150, 255, .35);
    margin-bottom: 1.1rem;
}
.step-icon.glow { box-shadow: 0 0 30px rgba(46, 107, 240, .45); color: var(--cyan); }
.step h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.step p { color: var(--muted); font-size: .93rem; }
.step-link { display: grid; place-items: center; color: rgba(125, 180, 255, .5); font-size: 1.5rem; }

.step-visual { margin-top: 1.2rem; display: flex; gap: .5rem; align-items: center; position: relative; }
.sv-file {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .78rem; color: var(--muted);
    background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
    padding: .4rem .75rem; border-radius: 9px;
}
.sv-file i { color: #ff8a8a; }
.sv-file + .sv-file i { color: #7db4ff; }
.sv-ai { min-height: 36px; }
.sv-scan { position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); animation: sweep 2.4s ease-in-out infinite; }
@keyframes sweep { 0%, 100% { opacity: .2; transform: scaleX(.6); } 50% { opacity: 1; transform: scaleX(1); } }
.sv-tag { font-size: .74rem; color: var(--cyan); background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .35); padding: .3rem .6rem; border-radius: 99px; }
.sv-chip {
    width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center; font-size: 1.1rem;
    background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--muted);
}
.sv-chip.wa { background: rgba(31, 170, 83, .18); border-color: rgba(31, 170, 83, .5); color: #4ade80; }

/* ============ bento IA ============ */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.bento-card {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.7rem;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    overflow: hidden; position: relative;
}
.bento-card:hover { transform: translateY(-5px); border-color: rgba(95, 150, 255, .5); box-shadow: 0 24px 60px -28px rgba(46, 107, 240, .45); }
.bento-lg { grid-row: span 2; display: flex; flex-direction: column; }
.bento-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .7rem; }
.bento-head i { font-size: 1.45rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bento-head h3 { font-size: 1.08rem; }
.bento-card > p { color: var(--muted); font-size: .92rem; }

.terminal { margin-top: 1.3rem; border-radius: 13px; border: 1px solid var(--line-strong); background: #060c20; overflow: hidden; flex: 1; display: flex; flex-direction: column; min-height: 280px; }
.terminal-bar { display: flex; align-items: center; gap: .4rem; padding: .6rem .9rem; border-bottom: 1px solid var(--line); }
.terminal-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.terminal-bar em { margin-left: .5rem; font-style: normal; font-size: .72rem; color: var(--muted); }
.terminal-body {
    padding: 1rem 1.1rem; font-family: 'Cascadia Code', 'Consolas', monospace;
    font-size: .8rem; line-height: 1.75; color: #9fd3ff;
    white-space: pre-wrap; word-break: break-word; flex: 1;
}
.terminal-body .caret { display: inline-block; width: 8px; height: 15px; background: var(--cyan); vertical-align: -2px; animation: blink 1s steps(1) infinite; }

.rewrite { margin-top: 1.2rem; display: flex; flex-direction: column; gap: .55rem; }
.rw-old { color: var(--muted); font-size: .84rem; text-decoration: line-through; opacity: .7; }
.rw-arrow { color: var(--cyan); font-size: 1.05rem; animation: pulse 2.2s ease infinite; }
.rw-new {
    font-size: .9rem; color: #d9e6ff;
    background: rgba(46, 107, 240, .12); border: 1px solid rgba(95, 150, 255, .35);
    border-radius: 11px; padding: .65rem .85rem;
}

.tags-wrap { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.tag { font-size: .82rem; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 99px; padding: .4rem .8rem; transition: border-color .2s, background .2s; }
.tag:hover { border-color: var(--cyan); background: rgba(34, 211, 238, .1); }

.langs { margin-top: 1.2rem; display: flex; gap: .45rem; flex-wrap: wrap; }
.langs span {
    width: 44px; height: 34px; display: grid; place-items: center;
    font-size: .8rem; font-weight: 700; color: var(--muted);
    background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 9px;
}
.langs span:first-child { color: #fff; background: rgba(46, 107, 240, .25); border-color: rgba(95, 150, 255, .55); }

.wa-preview {
    margin-top: 1.2rem; display: flex; gap: .75rem; align-items: center;
    background: #0b141a; border: 1px solid rgba(31, 170, 83, .35);
    border-left: 4px solid #1faa53;
    border-radius: 10px; padding: .7rem .85rem;
}
.wa-thumb { width: 52px; height: 52px; flex-shrink: 0; border-radius: 8px; background: linear-gradient(140deg, #0ea5e9, #fbbf24 130%); }
.wa-preview strong { display: block; font-size: .82rem; color: #e7fce9; }
.wa-preview small { color: #88a89a; font-size: .72rem; }

.dest-data { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.dest-data span { font-size: .8rem; color: var(--muted); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 9px; padding: .42rem .7rem; }

/* ============ splits ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split > * { min-width: 0; }
.split.rev .split-copy { order: 2; }
.split.rev .split-visual { order: 1; }
.split-copy .kicker { margin-bottom: .9rem; }
.split-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 1rem; }
.split-copy > p { color: var(--muted); margin-bottom: 1.5rem; }
.checks { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.8rem; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; color: #cdd9f2; font-size: .95rem; }
.checks i { color: var(--cyan); background: rgba(34, 211, 238, .12); border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; flex-shrink: 0; margin-top: .15rem; font-size: .9rem; }

/* builder mock */
.builder-mock {
    display: grid; grid-template-columns: 150px 1fr; gap: .8rem;
    background: var(--panel); border: 1px solid var(--line-strong);
    border-radius: var(--radius); padding: .9rem;
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .75);
}
.bm-side { display: flex; flex-direction: column; gap: .5rem; }
.bm-side small { color: var(--muted); font-size: .62rem; letter-spacing: .12em; margin-bottom: .2rem; }
.bm-item {
    display: flex; align-items: center; gap: .45rem;
    font-size: .76rem; color: var(--muted);
    background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
    border-radius: 9px; padding: .45rem .6rem;
}
.bm-item i { color: var(--blue-soft); }
.bm-item.drag { position: relative; border-color: rgba(95, 150, 255, .6); color: var(--text); animation: dragPulse 4s ease-in-out infinite; }
@keyframes dragPulse { 0%, 100% { box-shadow: 0 0 0 rgba(46, 107, 240, 0); } 50% { box-shadow: 0 0 22px rgba(46, 107, 240, .5); } }
.bm-canvas { display: flex; flex-direction: column; gap: .55rem; background: rgba(4, 8, 22, .65); border: 1px solid var(--line); border-radius: 12px; padding: .7rem; }
.bm-block { height: 52px; border-radius: 9px; background: linear-gradient(120deg, rgba(46, 107, 240, .25), rgba(34, 211, 238, .12)); border: 1px solid rgba(95, 150, 255, .3); }
.bm-block.sm { height: 30px; opacity: .7; }
.bm-slot {
    height: 44px; border-radius: 9px; border: 1.5px dashed rgba(34, 211, 238, .5);
    display: grid; place-items: center;
    background: rgba(34, 211, 238, .05);
}
.bm-ghost {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .76rem; color: var(--cyan);
    animation: ghostDrop 4s ease-in-out infinite;
}
@keyframes ghostDrop {
    0%, 18% { opacity: 0; transform: translate(-70px, -46px) rotate(-4deg); }
    42% { opacity: 1; transform: translate(0, 0) rotate(0); }
    78% { opacity: 1; transform: none; }
    100% { opacity: 0; }
}
.blocks-marquee { margin-top: 1.1rem; }

/* ============ plantillas ============ */
.templates { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.tpl { cursor: default; }
.tpl-art {
    aspect-ratio: 3 / 4; border-radius: 14px; border: 1px solid var(--line);
    padding: .8rem; display: flex; flex-direction: column; gap: .5rem;
    position: relative; overflow: hidden;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.tpl:hover .tpl-art { transform: translateY(-7px) scale(1.02); border-color: rgba(95, 150, 255, .55); box-shadow: 0 24px 50px -22px rgba(46, 107, 240, .5); }
figcaption { margin-top: .7rem; text-align: center; }
figcaption strong { display: block; font-family: var(--font-display); font-size: .95rem; }
figcaption span { color: var(--muted); font-size: .76rem; }

.ta-line { height: 7px; border-radius: 5px; background: rgba(255, 255, 255, .25); }
.ta-line.light { background: rgba(255, 255, 255, .5); }
.ta-line.gold { background: #c9a23f; }
.w40 { width: 40%; } .w45 { width: 45%; } .w50 { width: 50%; } .w55 { width: 55%; }
.w60 { width: 60%; } .w65 { width: 65%; } .w70 { width: 70%; } .w80 { width: 80%; }
.ta-row { display: flex; gap: .35rem; }
.ta-row span { flex: 1; height: 14px; border-radius: 5px; background: rgba(255, 255, 255, .14); }
.ta-btn { width: 55%; height: 16px; border-radius: 99px; background: var(--grad-btn); margin-top: auto; }
.ta-btn.gold { background: linear-gradient(90deg, #c9a23f, #e6c66b); }
.ta-btn.adv { background: linear-gradient(90deg, #f97316, #facc15); }
.ta-img { height: 42%; border-radius: 9px; background: linear-gradient(135deg, #2e6bf0, #22d3ee); }
.ta-img.lux { background: linear-gradient(135deg, #2b2410, #c9a23f 160%); }
.ta-img.min { background: rgba(0, 0, 0, .08); height: 34%; }

.tpl[data-tpl="modern"] .tpl-art { background: linear-gradient(160deg, #0d1733, #0a1129); }
.tpl[data-tpl="cinema"] .tpl-art { background: #05070f; justify-content: flex-end; }
.ta-full { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(244, 114, 60, .55) 0%, rgba(124, 45, 18, .55) 45%, #05070f 100%), linear-gradient(135deg, #7c2d12, #0c4a6e); }
.ta-title { position: relative; width: 70%; height: 13px; border-radius: 6px; background: #fff; }
.tpl[data-tpl="cinema"] .ta-line { position: relative; }
.tpl[data-tpl="classic"] .tpl-art { background: #f3ecdd; }
.ta-frame { flex: 1; border: 1.5px solid #b3a27c; border-radius: 6px; padding: .7rem; display: flex; flex-direction: column; gap: .5rem; justify-content: center; }
.tpl[data-tpl="classic"] .ta-line { background: rgba(80, 65, 30, .35); }
.tpl[data-tpl="luxury"] .tpl-art { background: #0a0a0e; }
.tpl[data-tpl="adventure"] .tpl-art { background: linear-gradient(160deg, #0c2d1f, #14532d); }
.ta-diag { height: 40%; border-radius: 9px; background: linear-gradient(120deg, #16a34a 40%, #f97316 40.5%, #facc15); }
.tpl[data-tpl="minimal"] .tpl-art { background: #f8fafc; align-items: flex-start; }
.tpl[data-tpl="minimal"] .ta-line { background: rgba(15, 23, 42, .25); }
.tpl[data-tpl="minimal"] .ta-img { width: 100%; }

/* ============ dashboard mock ============ */
.dash-mock {
    background: var(--panel); border: 1px solid var(--line-strong);
    border-radius: var(--radius); padding: 1.2rem;
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .75);
    display: flex; flex-direction: column; gap: 1rem;
}
.dm-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.dm-kpi { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 12px; padding: .75rem .9rem; }
.dm-kpi small { color: var(--muted); font-size: .7rem; display: block; }
.dm-kpi strong { font-family: var(--font-display); font-size: 1.35rem; }
.dm-kpi .up { display: inline-flex; align-items: center; font-size: .68rem; color: #2dd4a7; margin-left: .4rem; }
.dm-chart { width: 100%; height: 110px; }
.dm-line { stroke-dasharray: 640; stroke-dashoffset: 640; }
.reveal.in .dm-line { animation: draw 1.8s .3s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.dm-area { opacity: 0; }
.reveal.in .dm-area { animation: fadeIn 1s 1.2s ease forwards; }
@keyframes fadeIn { to { opacity: 1; } }

.dm-leads { display: flex; flex-direction: column; gap: .55rem; }
.dm-lead { display: flex; gap: .75rem; align-items: center; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 12px; padding: .6rem .8rem; }
.dm-lead strong { font-size: .85rem; display: block; }
.dm-lead small { color: var(--muted); font-size: .72rem; }
.score { font-size: .78rem; font-weight: 700; border-radius: 9px; padding: .35rem .55rem; white-space: nowrap; }
.score.hot { background: rgba(255, 199, 89, .12); border: 1px solid rgba(251, 146, 60, .55); color: #fdba74; }
.score.warm { background: rgba(125, 180, 255, .1); border: 1px solid rgba(95, 150, 255, .45); color: var(--blue-soft); }
.score.cold { background: rgba(148, 163, 184, .1); border: 1px solid rgba(148, 163, 184, .35); color: #cbd5e1; }

/* ============ pagos mock ============ */
.pay-mock {
    max-width: 400px; margin-inline: auto;
    background: var(--panel); border: 1px solid var(--line-strong);
    border-radius: var(--radius); padding: 1.5rem;
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .75);
    display: flex; flex-direction: column; gap: .8rem;
}
.pay-head small { color: var(--muted); font-size: .78rem; }
.pay-head strong { display: block; font-family: var(--font-display); font-size: 1.25rem; }
.pay-option {
    display: flex; align-items: center; gap: .8rem;
    border: 1px solid var(--line); border-radius: 13px; padding: .8rem .9rem;
}
.pay-option .radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(148, 163, 184, .5); flex-shrink: 0; }
.pay-option.sel { border-color: rgba(95, 150, 255, .65); background: rgba(46, 107, 240, .1); }
.pay-option.sel .radio { border-color: var(--blue-2); background: radial-gradient(circle at center, var(--blue-2) 0 5px, transparent 6px); }
.pay-option div { flex: 1; }
.pay-option strong { font-size: .9rem; display: block; }
.pay-option small { color: var(--muted); font-size: .72rem; }
.pay-option b { font-family: var(--font-display); }
.pay-btn {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    background: var(--grad-btn); color: #fff; border: 0;
    font-family: var(--font-body); font-weight: 600; font-size: .95rem;
    border-radius: 12px; padding: .85rem; cursor: default;
    box-shadow: var(--glow);
}
.pay-logos { display: flex; justify-content: center; gap: .9rem; }
.pay-logos span { font-size: .68rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.pay-success {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    color: #2dd4a7; font-size: .85rem; font-weight: 600;
    background: rgba(45, 212, 167, .08); border: 1px solid rgba(45, 212, 167, .35);
    border-radius: 11px; padding: .6rem;
}

/* ============ mini grid ============ */
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.mini {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.5rem;
    transition: transform .25s ease, border-color .25s ease;
}
.mini:hover { transform: translateY(-4px); border-color: rgba(95, 150, 255, .45); }
.mini i { font-size: 1.6rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mini h3 { font-size: 1.02rem; margin: .7rem 0 .4rem; }
.mini p { color: var(--muted); font-size: .88rem; }

/* ============ planes ============ */
/* Tabla comparativa de planes (5 columnas, scroll horizontal en móvil) */
.plan-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.plan-table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: .9rem; }
.plan-table th, .plan-table td { padding: 13px 16px; text-align: center; border-bottom: 1px solid var(--line); }
.plan-table thead th { vertical-align: bottom; padding: 22px 14px 18px; }
.plan-table tbody th { text-align: left; font-weight: 600; color: var(--muted); white-space: nowrap; }
.plan-table tfoot td { padding: 18px 14px; border-bottom: 0; }
.plan-table .pt-corner { border: 0; background: transparent; }
.pt-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--text); }
.pt-price { display: block; font-family: var(--font-display); font-size: 1.55rem; font-weight: 800; line-height: 1; margin-top: 6px; color: var(--text); }
.pt-price small { font-size: .68rem; font-weight: 500; color: var(--muted); margin-left: 2px; }
.pt-price.pt-price-sm { font-size: 1.15rem; }
.pt-ideal { display: block; font-size: .72rem; color: var(--muted); margin-top: 7px; }
.pt-flag { display: inline-block; margin-bottom: 9px; background: var(--grad-btn); color: #fff; font-size: .6rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .25rem .65rem; border-radius: 99px; }
.plan-table td.pt-yes { color: var(--cyan); font-weight: 700; font-size: 1.05rem; }
.plan-table td.pt-no { color: var(--muted); opacity: .4; }
.plan-table .pt-feat { background: rgba(46, 107, 240, .10); }
.plan-table thead th.pt-feat { border-top: 2px solid var(--blue-soft); border-radius: 12px 12px 0 0; }
.plan-table tfoot td.pt-feat { border-radius: 0 0 12px 12px; }
.plan-table tfoot .btn { white-space: nowrap; }
.plans-note { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 1.8rem; }
/* Selector Mensual / Anual: sin JS queda oculto (se ve el mensual con el anual indicado debajo) */
#planes [hidden] { display: none !important; }
.plan-cycle { display: flex; justify-content: center; margin: -1.8rem 0 1.8rem; }
.plan-cycle-switch { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line-strong); }
.plan-cycle-switch button { border: 0; background: transparent; color: var(--muted); font-family: var(--font-body); font-weight: 600; font-size: .88rem; padding: .5rem 1.15rem; border-radius: 999px; cursor: pointer; transition: background .2s ease, color .2s ease; }
.plan-cycle-switch button:hover { color: var(--text); }
.plan-cycle-switch button span { margin-left: .3rem; font-size: .7rem; font-weight: 700; color: var(--cyan); }
.plan-cycle-switch button.active { background: var(--grad-btn); color: #fff; box-shadow: var(--glow); }
.plan-cycle-switch button.active span { color: rgba(255, 255, 255, .85); }
.plan-table .pt-price { white-space: nowrap; }
.pt-sub { display: block; font-size: .7rem; color: var(--muted); }
.pt-sub b { color: var(--cyan); font-weight: 700; }
/* Cabecera en 2 filas: nombre y precio abajo (alineados); ciclo y descripción arriba,
   así las descripciones de largo distinto no descuadran los precios */
.plan-table thead tr.pt-head th { border-bottom: 0; padding-bottom: 8px; }
.plan-table thead tr.pt-desc td { vertical-align: top; padding: 0 14px 18px; }

/* ============ FAQ ============ */
.faq-wrap { max-width: 50rem; }
.faqs { display: flex; flex-direction: column; gap: .8rem; }
.faq {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: 15px; overflow: hidden;
    transition: border-color .25s ease;
}
.faq[open] { border-color: rgba(95, 150, 255, .5); }
.faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    list-style: none; cursor: pointer;
    font-weight: 600; font-size: 1rem;
    padding: 1.1rem 1.3rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { transition: transform .3s ease; color: var(--blue-soft); flex-shrink: 0; }
.faq[open] summary i { transform: rotate(45deg); }
.faq p { padding: 0 1.3rem 1.2rem; color: var(--muted); font-size: .94rem; }

/* ============ CTA final ============ */
.cta-final {
    position: relative; text-align: center;
    border: 1px solid rgba(95, 150, 255, .4);
    border-radius: 26px;
    padding: 4.5rem 2rem;
    background: linear-gradient(170deg, rgba(46, 107, 240, .2), rgba(8, 15, 38, .7));
    overflow: hidden;
}
.cta-burst {
    position: absolute; inset: -40% -20%;
    background:
        radial-gradient(40% 45% at 30% 20%, rgba(46, 107, 240, .35), transparent 70%),
        radial-gradient(35% 40% at 75% 80%, rgba(34, 211, 238, .25), transparent 70%);
    animation: drift 14s ease-in-out infinite alternate;
}
.cta-final h2 { position: relative; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: .9rem; }
.cta-final p { position: relative; color: var(--muted); font-size: 1.08rem; margin-bottom: 2rem; }
.cta-final .btn { position: relative; }
.cta-final small { position: relative; display: block; color: var(--muted); margin-top: 1.1rem; font-size: .84rem; }

/* ============ footer ============ */
.footer { border-top: 1px solid var(--line); background: rgba(3, 7, 18, .8); padding-top: 3.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.8rem; }
.footer-brand img { height: 46px; width: auto; margin-bottom: 1rem; }
.footer-brand p { color: var(--muted); font-size: .9rem; max-width: 22rem; }
.footer-col { display: flex; flex-direction: column; gap: .6rem; }
.footer-col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--blue-soft); margin-bottom: .4rem; }
.footer-col a { color: var(--muted); font-size: .9rem; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem;
    border-top: 1px solid var(--line);
    padding-block: 1.4rem;
    color: var(--muted); font-size: .82rem;
}
.footer-made i { color: var(--cyan); }

/* ============ reveals ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .65, .3, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; }
.reveal.d2 { transition-delay: .24s; }
.reveal.d3 { transition-delay: .36s; }
.reveal.d4 { transition-delay: .48s; }

/* ============ responsive ============ */
@media (max-width: 1080px) {
    .nav-links { position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: .2rem;
        background: #060d24;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .85);
        padding: 1rem 4%; margin: 0;
        visibility: hidden;
        transform: translateY(-130%); transition: transform .35s ease, visibility .35s;
    }
    .nav-links.open { visibility: visible; }
    .nav-links.open { transform: none; }
    .nav-links a { padding: .7rem .4rem; font-size: 1.02rem; }
    .nav-cta { display: none; }
    .nav-cta-mobile { display: flex; gap: .7rem; padding-top: .8rem; }
    .nav-burger { display: grid; }

    .hero { padding-top: 130px; }
    .hero-grid { grid-template-columns: 1fr; gap: 4.5rem; }
    .hero-copy { text-align: center; }
    .hero-sub { margin-inline: auto; }
    .hero-actions, .hero-trust { justify-content: center; }
    .hero-demo { max-width: 560px; margin-inline: auto; }

    .steps { grid-template-columns: 1fr; }
    .step-link { transform: rotate(90deg); padding: .2rem 0; }
    .bento { grid-template-columns: 1fr 1fr; }
    .bento-lg { grid-row: auto; grid-column: span 2; }
    .split { grid-template-columns: 1fr; gap: 2.8rem; }
    .split.rev .split-copy { order: 1; }
    .split.rev .split-visual { order: 2; }
    .templates { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .stats { grid-template-columns: 1fr 1fr; }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .bento { grid-template-columns: 1fr; }
    .bento-lg { grid-column: auto; }
    .mini-grid { grid-template-columns: 1fr; }
    .templates { grid-template-columns: repeat(2, 1fr); }
    .float-card { display: none; }
    .demo-body { height: 380px; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
    .footer-bottom { justify-content: center; text-align: center; }
    .section { padding: 4.2rem 0; }
}

/* ============ reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .15s !important; }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
    .demo-phase { transition: none; }
}
