/* FTC · web pública. Usa los tokens oficiales (tokens.css) de Propuesta FTC / Trama Viva. */
@font-face { font-family: "Manrope"; src: url("fonts/manrope-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --deep: #153437;
  --on-deep: #f4f0e8;
  --on-deep-muted: #b9c8c3;
  --accent-on-deep: #a9c8b9;
  --dot-a: var(--brand-accent);
  --dot-b: var(--brand-signal);
  --serif: "Source Serif 4", Georgia, serif;
  --wrap: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --surface-page: #101f21; --surface-raised: #17292b; --surface-sunken: #0b1719;
    --border-hairline: #24393b; --border-strong: #678688;
    --ink-strong: #eef2f0; --ink-muted: #9db0ad;
    --brand-primary: #7fc4b8; --brand-soft: #1d3a38; --brand-accent: #a9c8b9; --brand-signal: #d4836b;
    --alert-medium-surface: #33260f; --alert-medium-ink: #f5d39a;
    --deep: #0b1719;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--surface-page); color: var(--ink-strong); font: 400 17px/1.6 "Manrope", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: var(--brand-primary); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; }
em { font-style: normal; color: var(--brand-primary); }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.wrap--wide { width: min(1280px, 100% - 48px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface-raised); padding: 8px 14px; z-index: 50; border-radius: 6px; }
.skip:focus { left: 8px; }

/* Barra superior */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--deep); color: var(--on-deep); transition: box-shadow .2s; }
.topbar.is-scrolled { box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 8px 24px rgba(0,0,0,.18); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.lockup { display: inline-flex; align-items: center; gap: 12px; color: var(--on-deep); text-decoration: none; --dot-a: var(--accent-on-deep); --dot-b: #d4836b; }
.lockup__symbol { width: 34px; height: 34px; }
.lockup__word { font-weight: 800; font-size: 20px; letter-spacing: .22em; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--on-deep-muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 12px; border-radius: 6px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { color: var(--on-deep); background: rgba(255,255,255,.06); }
@media (max-width: 820px) { .nav a:not([href="#video"]):not([href="#roadmap"]) { display: none; } }

/* Hero */
.hero { position: relative; background: var(--deep); color: var(--on-deep); padding: 72px 0 96px; overflow: hidden; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-primary); margin-bottom: 16px; }
.eyebrow--inverse { color: var(--accent-on-deep); }
.hero__title { font-weight: 700; font-size: clamp(44px, 7.4vw, 92px); letter-spacing: -0.035em; line-height: 1.02; }
.hero__title em { color: var(--accent-on-deep); }
.hero__title .serif { font-size: .9em; }
.hero__lead { max-width: 620px; margin-top: 24px; font-size: clamp(17px, 1.6vw, 20px); color: var(--on-deep-muted); }
.hero__trace { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 120px; pointer-events: none; }
.hero__trace path { fill: none; stroke: var(--accent-on-deep); stroke-width: 2; opacity: .35; stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: draw 2.6s .4s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Reproductor: la pieza estrella */
.player { position: relative; z-index: 1; margin: 56px auto 0; border-radius: 14px; overflow: hidden; background: #0b1719; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 80px rgba(0,0,0,.45); aspect-ratio: 16 / 9; }
.player video { display: block; width: 100%; height: 100%; object-fit: cover; background: #0b1719; }
.player__play { position: absolute; inset: 0; display: flex; flex-direction: row; align-items: flex-end; justify-content: flex-start; gap: 18px; padding: clamp(20px, 4vw, 48px); border: 0; color: var(--on-deep); background: linear-gradient(180deg, rgba(11,23,25,0) 55%, rgba(11,23,25,.7)); cursor: pointer; font: inherit; text-align: left; }
.player__icon { flex: none; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: var(--on-deep); color: var(--deep); box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .2s; }
.player__icon svg { width: 40px; height: 40px; margin-left: 5px; }
.player__play:hover .player__icon, .player__play:focus-visible .player__icon { transform: scale(1.06); }
.player__label { padding-bottom: 26px; font-weight: 700; font-size: 20px; letter-spacing: .01em; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.player.is-playing .player__play { display: none; }
.player__caption { position: absolute; left: -9999px; }
@media (max-width: 600px) { .player__play { align-items: flex-end; justify-content: flex-end; padding: 14px; } .player__icon { width: 64px; height: 64px; } .player__icon svg { width: 28px; height: 28px; } .player__label { position: absolute; left: -9999px; } }

/* Declaración */
.statement { padding: 112px 0 40px; }
.statement__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.statement__title { font-size: clamp(36px, 4.6vw, 56px); font-weight: 700; }
.statement__body > p { font-size: 19px; color: var(--ink-muted); }
.pillars { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 4px; }
.pillars li { display: flex; gap: 20px; align-items: center; padding: 16px 0; border-top: 1px solid var(--border-hairline); }
.pillars__letter { flex: none; width: 52px; font-weight: 800; font-size: 34px; color: var(--brand-primary); }
.pillars strong { display: block; font-size: 17px; }
.pillars span span, .pillars li > span:last-child { color: var(--ink-muted); }
.pillars li > span:last-child strong { color: var(--ink-strong); }
@media (max-width: 860px) { .statement__grid { grid-template-columns: 1fr; gap: 32px; } }

/* Secciones */
.section { padding: 112px 0; }
.section--sunken { background: var(--surface-sunken); }
.section__head { max-width: 720px; margin-bottom: 64px; }
.section__title { font-size: clamp(34px, 4.4vw, 52px); font-weight: 700; }
.section__lead { margin-top: 18px; font-size: 19px; color: var(--ink-muted); }
.section__head--inverse .section__lead { color: var(--on-deep-muted); }

.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; padding: 48px 0; }
.feature + .feature { border-top: 1px solid var(--border-hairline); }
.feature--flip .feature__text { order: 2; }
.feature__kicker { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 12px; }
.feature h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 36px); letter-spacing: -0.01em; }
.feature__text > p:not(.feature__kicker) { margin-top: 16px; color: var(--ink-muted); }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; font-size: 16px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='%232f6460' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.shot { margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--border-hairline); background: var(--surface-raised); box-shadow: 0 1px 2px rgba(21,52,55,.06), 0 18px 48px rgba(21,52,55,.12); }
.shot img { width: 100%; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; gap: 32px; } .feature--flip .feature__text { order: 0; } }

.mini { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mini li { padding: 20px; border-radius: 10px; background: var(--surface-raised); border: 1px solid var(--border-hairline); color: var(--ink-muted); font-size: 15px; }
.mini strong { display: block; color: var(--ink-strong); font-size: 16px; margin-bottom: 6px; }
@media (max-width: 960px) { .mini { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .mini { grid-template-columns: 1fr; } }

/* IA */
.ai { background: var(--deep); color: var(--on-deep); padding: 112px 0; }
.ai .section__title em { color: var(--accent-on-deep); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare__item { margin: 0; position: relative; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 20px 50px rgba(0,0,0,.3); }
.badge { position: absolute; top: 14px; left: 14px; z-index: 1; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 6px; }
.badge--draft { background: #f1ede1; color: #153437; border: 1.5px dashed #8b8474; }
.badge--done { background: #e2ece9; color: #245450; border: 1.5px solid #2f6460; }
.ai__list { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.ai__list li { border-top: 2px solid var(--accent-on-deep); padding-top: 18px; color: var(--on-deep-muted); font-size: 15px; }
.ai__list strong { display: block; color: var(--on-deep); font-size: 17px; margin-bottom: 8px; }
@media (max-width: 960px) { .ai__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .compare, .ai__list { grid-template-columns: 1fr; } }

/* Privacidad */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: var(--surface-raised); border: 1px solid var(--border-hairline); border-radius: 10px; padding: 24px; }
.card h3 { font-size: 18px; margin-bottom: 10px; letter-spacing: -0.01em; }
.card p { color: var(--ink-muted); font-size: 15px; }
.notice { margin-top: 32px; padding: 18px 22px; border-radius: 10px; background: var(--alert-medium-surface); color: var(--alert-medium-ink); font-size: 16px; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }

/* Roadmap como cronología */
.roadmap { list-style: none; padding: 0; margin: 0; position: relative; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 64px; }
.step { position: relative; display: flex; gap: 20px; padding: 0 0 36px; }
.step::before { content: ""; position: absolute; left: 9px; top: 22px; bottom: -2px; width: 2px; background: var(--border-strong); opacity: .5; }
.step--done::before { background: var(--brand-primary); opacity: 1; }
.step__node { flex: none; position: relative; z-index: 1; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--surface-sunken); }
.step--done .step__node { background: var(--brand-primary); border-color: var(--brand-primary); }
.step--current .step__node { border-color: var(--brand-primary); background: var(--surface-sunken); box-shadow: inset 0 0 0 3px var(--surface-sunken), inset 0 0 0 10px var(--brand-primary); }
.step--goal .step__node { border-color: var(--ink-strong); box-shadow: 0 0 0 4px var(--surface-sunken), 0 0 0 6px var(--ink-strong); }
.step__state { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.step--done .step__state, .step--current .step__state { color: var(--brand-primary); }
.step h3 { font-size: 20px; margin: 4px 0 6px; letter-spacing: -0.01em; }
.step p:last-child { color: var(--ink-muted); font-size: 15px; }
@media (min-width: 861px) { .roadmap { grid-auto-flow: column; grid-template-rows: repeat(7, auto); } .step:nth-child(7)::before, .step:last-child::before { display: none; } }
@media (max-width: 860px) { .roadmap { grid-template-columns: 1fr; } .step:last-child::before { display: none; } }

/* Cierre */
.closing { background: var(--deep); color: var(--on-deep); padding: 120px 0; text-align: center; }
.closing__inner { display: flex; flex-direction: column; align-items: center; }
.closing__symbol { width: 72px; height: 72px; color: var(--on-deep); }
.closing__title { margin-top: 32px; font-weight: 700; font-size: clamp(30px, 4.2vw, 50px); line-height: 1.15; letter-spacing: -0.025em; }
.closing__title em { color: #d4836b; }
.closing__sign { margin-top: 20px; font-size: 24px; color: var(--on-deep-muted); }
.button { margin-top: 40px; display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 6px; background: var(--on-deep); color: #153437; font-weight: 700; text-decoration: none; }
.button:hover { background: #ffffff; }

.footer { background: var(--deep); color: var(--on-deep-muted); border-top: 1px solid rgba(255,255,255,.08); font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 24px 0; }

/* Aparición suave al hacer scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Selector de tema */
[data-theme="dark"] { color-scheme: dark; --deep: #0b1719; }
[data-theme="light"] { color-scheme: light; }
.nav { margin-left: auto; }
.theme { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; border: 1px solid rgba(255,255,255,.16); background: transparent; color: var(--on-deep); cursor: pointer; }
.theme:hover { background: rgba(255,255,255,.08); }
.theme svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme__sun circle { fill: currentColor; stroke: none; }
.theme__moon { fill: currentColor !important; stroke: none !important; }
.theme__sun { display: none; }
.is-dark .theme__sun { display: block; }
.is-dark .theme__moon { display: none; }
@media (max-width: 520px) { .topbar__inner { gap: 8px; } .nav a { padding: 10px 8px; font-size: 14px; } .lockup__word { font-size: 18px; } }

/* Flujo: del audio al expediente */
.flow { list-style: none; padding: 0; margin: 0 0 64px; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; counter-reset: flow; }
.flow::before { content: ""; position: absolute; left: 10%; right: 10%; top: 27px; height: 2px; background: linear-gradient(90deg, var(--accent-on-deep), rgba(169,200,185,.35)); }
.flow li { position: relative; text-align: center; padding: 0 10px; color: var(--on-deep-muted); font-size: 14px; line-height: 1.45; }
.flow__node { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: var(--deep); border: 2px solid var(--accent-on-deep); color: var(--accent-on-deep); }
.flow__node svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flow__node--ai { border-style: dashed; }
.flow__node--you { background: var(--accent-on-deep); color: #153437; }
.flow strong { display: block; color: var(--on-deep); font-size: 16px; margin-bottom: 4px; }
.flow__who { display: inline-block; margin-top: 10px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; border: 1px solid rgba(169,200,185,.4); color: var(--accent-on-deep); }
.flow__who--you { background: var(--accent-on-deep); color: #153437; border-color: transparent; }
@media (max-width: 760px) {
  .flow { grid-template-columns: 1fr; gap: 22px; }
  .flow::before { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; background: linear-gradient(180deg, var(--accent-on-deep), rgba(169,200,185,.35)); }
  .flow li { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; text-align: left; padding: 0; align-items: center; }
  .flow__node { margin: 0; grid-row: span 2; }
  .flow__who { justify-self: start; margin-top: 6px; }
}
