/* Yendo HTML slide deck — 16:9, screen + print-to-PDF */

* { box-sizing: border-box; }

:root {
    --bg: #070b14;
    --slide: #0f172a;
    --surface: rgba(255, 255, 255, 0.045);
    --border: rgba(255, 255, 255, 0.1);
    --text: #e2e8f0;
    --muted: #94a3b8;
    --primary: #0ea5e9;
    --purple: #7c3aed;
    --cyan: #22d3ee;
    --whatsapp: #25d366;
    --amber: #f59e0b;
    --ok: #34d399;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body { overflow: hidden; }

.toolbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    background: rgba(7, 11, 20, 0.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    font-size: 13px;
}

.toolbar a, .toolbar button {
    color: var(--muted);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 10px;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
}

.toolbar a:hover, .toolbar button:hover { color: #fff; border-color: var(--primary); }
.toolbar .lang-btn.active { color: #0f172a; background: var(--primary); border-color: var(--primary); }
.toolbar .spacer { flex: 1; }
.toolbar .hint { color: var(--muted); font-size: 12px; }

.stage {
    position: fixed;
    inset: 48px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deck {
    width: 1280px;
    height: 720px;
    transform-origin: center center;
    position: relative;
}

.slide {
    position: absolute;
    inset: 0;
    display: none;
    background: var(--slide);
    border-radius: 18px;
    border: 1px solid var(--border);
    overflow: hidden;
    padding: 48px 56px 56px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.slide.active { display: flex; flex-direction: column; }

.slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 420px at 110% -10%, rgba(124, 58, 237, 0.18), transparent 55%),
        radial-gradient(700px 380px at -10% 110%, rgba(14, 165, 233, 0.16), transparent 50%);
    pointer-events: none;
}

.slide > * { position: relative; z-index: 1; }

html[lang="es"] .en, html[lang="en"] .es { display: none !important; }

.kicker {
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    color: var(--cyan);
    margin: 0 0 14px;
}

h1, h2 {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0;
    line-height: 1.12;
}

h1 { font-size: 56px; max-width: 980px; }
h2 { font-size: 34px; margin-bottom: 18px; }
h1 .hl, h2 .hl, .hl {
    background: linear-gradient(90deg, var(--primary), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lede {
    margin: 20px 0 0;
    font-size: 22px;
    line-height: 1.45;
    color: var(--muted);
    max-width: 820px;
}

.footer-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
    padding-top: 16px;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.brand-row img { width: 44px; height: 44px; }
.brand-name {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 0.04em;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; flex: 1; min-height: 0; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; flex: 1; }
.grid-2x2 { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; flex: 1; }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px 24px;
}

.card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-family: "Space Grotesk", sans-serif;
}

.card p, .card li { color: var(--muted); font-size: 16px; line-height: 1.45; }
.card ul { margin: 0; padding-left: 18px; }
.card li { margin: 6px 0; }
.card .tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.tag-byod { background: rgba(37, 211, 102, 0.15); color: var(--whatsapp); }
.tag-track { background: rgba(14, 165, 233, 0.15); color: var(--primary); }
.tag-both { background: rgba(124, 58, 237, 0.18); color: #c4b5fd; }

.steps { display: flex; gap: 14px; flex: 1; }
.step {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
}
.step .n {
    font-family: "Space Grotesk", sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}
.step h3 { margin: 8px 0 8px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}
.table th, .table td {
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.table th { color: var(--cyan); font-weight: 600; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.table td { color: var(--muted); }
.table td:first-child { color: #fff; font-weight: 600; width: 28%; }

.chat {
    background: #0b1a14;
    border: 1px solid rgba(37, 211, 102, 0.25);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bubble {
    max-width: 92%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 15px;
    line-height: 1.4;
}
.bubble.out { align-self: flex-end; background: #005c4b; color: #fff; }
.bubble.in { align-self: flex-start; background: #1f2c34; color: #e2e8f0; }
.bubble a { color: var(--cyan); }

.cover-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    color: var(--muted);
}

.nav-hit {
    position: fixed;
    top: 48px;
    bottom: 0;
    width: 12%;
    z-index: 15;
    cursor: pointer;
}
.nav-hit.prev { left: 0; }
.nav-hit.next { right: 0; }

/* === Visualisations === */

.viz {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.viz svg { width: 100%; height: auto; max-height: 100%; }

svg text { font-family: "Plus Jakarta Sans", system-ui, sans-serif; }

.s-lbl { fill: #e2e8f0; font-size: 17px; font-weight: 600; }
.s-sub { fill: #94a3b8; font-size: 15px; }
.s-axis { fill: #64748b; font-size: 14px; }
.s-val {
    fill: #ffffff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 18px;
    font-weight: 700;
}
.s-big {
    fill: #ffffff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 30px;
    font-weight: 700;
}
.s-box { fill: rgba(255, 255, 255, 0.05); stroke: rgba(255, 255, 255, 0.14); }
.s-line { stroke: rgba(255, 255, 255, 0.16); }
.s-arrow {
    fill: none;
    stroke: #94a3b8;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.note {
    margin: 14px 0 0;
    color: #64748b;
    font-size: 13px;
}

.metrics { display: flex; gap: 12px; margin-top: 24px; }
.metric {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
}
.metric .m-val {
    font-family: "Space Grotesk", sans-serif;
    font-size: 25px;
    font-weight: 700;
    color: #fff;
}
.metric .m-lbl {
    color: var(--muted);
    font-size: 13px;
    margin-top: 3px;
}

.chips { display: flex; gap: 10px; margin-top: 16px; }
.chip {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    color: var(--muted);
    font-size: 15px;
}
.chip b { color: #fff; font-weight: 600; }

@media print {
    body { overflow: visible; background: #000; }
    .toolbar, .nav-hit { display: none !important; }
    .stage { position: static; inset: auto; display: block; }
    .deck { transform: none !important; width: auto; height: auto; }
    .slide {
        display: flex !important;
        position: relative;
        page-break-after: always;
        break-after: page;
        width: 1280px;
        height: 720px;
        border-radius: 0;
        box-shadow: none;
        margin: 0 auto;
    }
    @page { size: 1280px 720px; margin: 0; }
}
