/* Tidebook · la web. Sale de la app: petróleo #0B6E7F del icono, papel de carta náutica,
   Eczar para los titulares y Work Sans para el texto (las dos letras de la app).
   Colores de señal iguales a la gráfica de la app: sube verde, baja cobre, ahora rojo. */

@font-face { font-family: "Work Sans"; src: url(/fonts/worksans-400.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url(/fonts/worksans-500.woff) format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url(/fonts/worksans-600.woff) format("woff"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Eczar"; src: url(/fonts/eczar-400.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Eczar"; src: url(/fonts/eczar-600.woff) format("woff"); font-weight: 500 700; font-display: swap; }

:root {
  --paper: #F3F7F6;
  --paper-2: #E6EFEE;
  --shoal: #D3E6E7;
  --card: #FFFFFF;
  --ink: #0F2830;
  --ink-2: #33505A;
  --muted: #5B737B;
  --sea: #0B6E7F;
  --sea-ink: #08586A;
  --sea-deep: #0A3F4C;
  --on-sea: #FFFFFF;
  --rise: #1B7F4E;
  --fall: #A8551C;
  --now: #B23A34;
  --amber: #FFE9B3;
  --on-amber: #4A3600;
  --current: #6D3FB5;
  --line: rgba(15, 40, 48, .13);
  --line-2: rgba(15, 40, 48, .22);
  --contour: rgba(11, 110, 127, .13);
  --fill-1: rgba(11, 110, 127, .30);
  --fill-2: rgba(11, 110, 127, .02);
  --shadow: 0 1px 2px rgba(10, 40, 50, .06), 0 12px 32px -12px rgba(10, 50, 62, .22);
  --radius: 18px;
  --serif: "Eczar", Georgia, "Times New Roman", serif;
  --sans: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0B171C; --paper-2: #0F1E25; --shoal: #14262E; --card: #12232B;
    --ink: #E3EEF0; --ink-2: #B9CBD0; --muted: #8DA3AA;
    --sea: #48B0C2; --sea-ink: #84CFDB; --sea-deep: #06222A; --on-sea: #04161B;
    --rise: #5CB98A; --fall: #DB9152; --now: #E37B72; --amber: #4F3D00; --on-amber: #FFE08A; --current: #C2A5F5;
    --line: rgba(227, 238, 240, .12); --line-2: rgba(227, 238, 240, .22); --contour: rgba(72, 176, 194, .12);
    --fill-1: rgba(72, 176, 194, .32); --fill-2: rgba(72, 176, 194, .02);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 36px -14px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0B171C; --paper-2: #0F1E25; --shoal: #14262E; --card: #12232B;
  --ink: #E3EEF0; --ink-2: #B9CBD0; --muted: #8DA3AA;
  --sea: #48B0C2; --sea-ink: #84CFDB; --sea-deep: #06222A; --on-sea: #04161B;
  --rise: #5CB98A; --fall: #DB9152; --now: #E37B72; --amber: #4F3D00; --on-amber: #FFE08A; --current: #C2A5F5;
  --line: rgba(227, 238, 240, .12); --line-2: rgba(227, 238, 240, .22); --contour: rgba(72, 176, 194, .12);
  --fill-1: rgba(72, 176, 194, .32); --fill-2: rgba(72, 176, 194, .02);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 36px -14px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.62 var(--sans); font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--sea-ink); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.35rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; line-height: 1.2; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.num, table, .tide { font-variant-numeric: tabular-nums lining-nums; }
.fine { font-size: .86rem; color: var(--muted); margin-top: .7em; }
.kicker, .card__kicker, .label {
  font: 600 .74rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sea-ink); margin: 0 0 .9em;
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--ink-2); max-width: 38em; }

/* ── Cabecera ─────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 1.32rem/1 var(--serif); }
.logo__mark { width: 32px; height: 32px; }
.logo__mark rect { fill: var(--sea-deep); }
:root[data-theme="dark"] .logo__mark rect { fill: #0E5865; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo__mark rect { fill: #0E5865; } }
.logo__fill { fill: #fff; fill-opacity: .22; }
.logo__line { fill: none; stroke: #fff; stroke-width: 4.5; stroke-linecap: round; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--shoal); }
.nav__lang { border: 1px solid var(--line-2); }
.top__tools { display: flex; gap: 8px; align-items: center; }
.iconbtn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; }
.iconbtn:hover { background: var(--paper-2); }
.iconbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.iconbtn .i-moon { fill: currentColor; stroke: none; }
.iconbtn .i-sun { display: none; }
:root[data-theme="dark"] .iconbtn .i-moon { display: none; }
:root[data-theme="dark"] .iconbtn .i-sun { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .iconbtn .i-moon { display: none; } :root:not([data-theme="light"]) .iconbtn .i-sun { display: block; } }
.nav__toggle { display: none; }
.nav__toggle span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s; }
.nav__toggle span + span { margin-top: -14px; transform: translateY(6px); }
.nav__toggle span:first-child { transform: translateY(-3px); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span + span { transform: rotate(-45deg); margin-top: -2px; }
.nav__toggle { flex-direction: column; }

@media (max-width: 860px) {
  .nav { position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 16px 18px; gap: 2px; transform: translateY(-120%); visibility: hidden; transition: transform .28s ease, visibility .28s; }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a { padding: 13px 12px; font-size: 1.05rem; }
  .nav__lang { margin-top: 8px; text-align: center; }
  .nav__toggle { display: grid; }
  .top__tools .btn--small span { display: none; }
  .top__tools { margin-left: auto; }
}

/* ── Botones ──────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 14px; text-decoration: none; font-weight: 600; background: var(--ink); color: var(--paper); padding: 10px 18px; border: 0; transition: transform .15s ease, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn__apple { width: 17px; height: 20px; flex: none; }
.btn--small { padding: 8px 12px; font-size: .9rem; border-radius: 11px; }
.btn--store span { display: flex; flex-direction: column; line-height: 1.12; font-size: 1.12rem; }
.btn--store small { font-size: .7rem; font-weight: 500; opacity: .8; letter-spacing: .02em; }
.btn--big { padding: 12px 22px 12px 18px; }
.btn--big .btn__apple { width: 22px; height: 26px; }

/* ── Fondo de isóbatas ────────────────────────────────── */
.chart-bg { position: relative; isolation: isolate; }
.chart-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--contour);
  -webkit-mask: url(/img/isobaths.svg) center / cover no-repeat; mask: url(/img/isobaths.svg) center / cover no-repeat;
}

/* ── Portada ──────────────────────────────────────────── */
.hero { padding: clamp(36px, 7vw, 92px) 0 clamp(40px, 6vw, 80px); }
.hero__in { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.1rem); line-height: .98; }
.hero h1 em { font-style: normal; color: var(--sea); }
.hero .lede { margin-bottom: 1.5em; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 22px 0 0; padding: 0; list-style: none; font-size: .9rem; color: var(--ink-2); }
.hero__facts li::before { content: "~ "; color: var(--sea); font-weight: 600; }
@media (max-width: 900px) { .hero__in { grid-template-columns: 1fr; } }

/* La curva viva */
.tide { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 20px 20px 16px; box-shadow: var(--shadow); position: relative; }
.tide__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tide__station { font: 600 1.25rem/1.1 var(--serif); margin: 0; }
.tide__when { font-size: .86rem; color: var(--muted); margin: 3px 0 0; }
.tide__now { margin: 0; text-align: right; line-height: 1; }
.tide__h { font: 600 2.4rem/1 var(--serif); }
.tide__dir { display: block; font-weight: 600; font-size: .9rem; margin-top: 6px; }
.tide__dir.is-up { color: var(--rise); }
.tide__dir.is-down { color: var(--fall); }
.tide__svg { width: 100%; height: auto; margin: 12px 0 4px; overflow: visible; }
.tide__f1 { stop-color: var(--sea); stop-opacity: .34; }
.tide__f2 { stop-color: var(--sea); stop-opacity: .02; }
.tide__area { fill: url(#tideFill); }
.tide__line { fill: none; stroke: var(--sea); stroke-width: 3.2; stroke-linejoin: round; stroke-linecap: round; }
.tide__grid line { stroke: var(--line); stroke-width: 1; }
.tide__grid text, .tc__ext text { fill: var(--muted); font: 500 12px var(--sans); text-anchor: middle; }
.tc__ext circle { fill: var(--card); stroke: var(--sea); stroke-width: 2.2; }
.tc__ext--h text { fill: var(--ink-2); }
.tide__nowmark line { stroke: var(--now); stroke-width: 1.6; stroke-dasharray: 3 4; }
.tide__nowmark circle { fill: var(--now); stroke: var(--card); stroke-width: 3; }
.tide__next { margin: 0 0 10px; font-size: .95rem; color: var(--ink-2); }
.tide__next b { color: var(--ink); font-weight: 600; }
.tide__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip { font: 500 .84rem var(--sans); border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--sea); border-color: var(--sea); color: var(--on-sea); }
.tide__note { font-size: .76rem; color: var(--muted); margin: 0; line-height: 1.45; }
.js .tide__line.draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.8s cubic-bezier(.3, .7, .2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ── Tiras de datos ───────────────────────────────────── */
.ledger { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line-2); }
.ledger > div { padding: 22px 18px 20px 0; }
.ledger > div + div { border-left: 1px solid var(--line); padding-left: 18px; }
.ledger b { display: block; font: 600 clamp(2rem, 3.6vw, 2.8rem)/1 var(--serif); color: var(--ink); margin-bottom: 8px; font-variant-numeric: lining-nums tabular-nums; }
.ledger span { font-size: .92rem; color: var(--ink-2); display: block; }
.ledger small { display: block; color: var(--muted); font-size: .76rem; margin-top: 6px; }
@media (max-width: 760px) { .ledger { grid-template-columns: 1fr 1fr; } .ledger > div:nth-child(3) { border-left: 0; padding-left: 0; } .ledger > div:nth-child(n+3) { border-top: 1px solid var(--line); } }

.section { padding: clamp(48px, 8vw, 104px) 0; }
.section--tint { background: var(--paper-2); }
.section__head { max-width: 46em; margin-bottom: 34px; }
.section__head p { color: var(--ink-2); font-size: 1.08rem; }

/* Escenas: captura + texto alternando */
.scene { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 88px); align-items: center; padding: clamp(28px, 5vw, 56px) 0; }
.scene + .scene { border-top: 1px solid var(--line); }
.scene:nth-child(even) .scene__shot { order: 2; }
.scene__shot { display: flex; justify-content: center; }
.scene h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.scene p { color: var(--ink-2); }
.scene ul { padding-left: 1.1em; color: var(--ink-2); }
.scene .more { font-weight: 600; text-decoration: none; }
.scene .more::after { content: " →"; }
@media (max-width: 760px) { .scene { grid-template-columns: 1fr; } .scene:nth-child(even) .scene__shot { order: 0; } }

/* Marcos de teléfono y reloj */
.phone { margin: 0; width: min(300px, 70vw); border-radius: 46px; padding: 9px; background: linear-gradient(160deg, #22333A, #0B161B); box-shadow: 0 30px 60px -28px rgba(8, 40, 50, .55), inset 0 0 0 1.5px rgba(255, 255, 255, .08); }
.phone__screen img { border-radius: 38px; width: 100%; }
.phone--tilt { transform: rotate(2deg); }
.phone--sm { width: min(240px, 60vw); border-radius: 38px; padding: 7px; }
.phone--sm .phone__screen img { border-radius: 31px; }
.watch { margin: 0; width: 200px; padding: 14px; border-radius: 52px; background: linear-gradient(160deg, #2A3A40, #0B1419); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .6); }
.watch__screen img { border-radius: 38px; }
.widget-shot img { border-radius: 26px; box-shadow: var(--shadow); }

/* Mosaico de funciones */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 14px; }
.tile { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s, box-shadow .2s; }
.tile:hover { border-color: var(--sea); transform: translateY(-2px); box-shadow: var(--shadow); }
.tile__shot { height: 132px; overflow: hidden; border-radius: 14px; background: var(--paper-2); }
.tile__shot img { width: 100%; }
.tile__title { display: block; font: 600 1.2rem/1.2 var(--serif); margin-bottom: 6px; }
.tile .card__kicker { display: block; margin-bottom: 6px; }
.card__text { display: block; color: var(--ink-2); font-size: .94rem; line-height: 1.5; }
.plan { display: inline-block; font: 600 .68rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; border-radius: 999px; padding: 5px 9px 4px; margin-top: 10px; vertical-align: middle; }
.plan--free, .plan--gratis { background: color-mix(in srgb, var(--rise) 16%, transparent); color: var(--rise); }
.plan--pro { background: var(--amber); color: var(--on-amber); }
.plan--free\+pro, .plan--gratis\+pro { background: var(--shoal); color: var(--sea-ink); }
.kicker .plan { margin: 0 0 0 8px; }

/* Tarjetas */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card { position: relative; display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 44px; text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--sea); transform: translateY(-2px); }
.card__kicker { margin: 0; }
.card__title { font: 600 1.22rem/1.2 var(--serif); }
.card__go { position: absolute; left: 20px; bottom: 14px; color: var(--sea); font-weight: 600; transition: transform .2s; }
.card:hover .card__go { transform: translateX(4px); }
.tag { font: 600 .66rem var(--sans); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 5px; vertical-align: middle; color: var(--muted); }
.cards--guides .card { background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(135deg, var(--line), var(--line)) border-box; }

/* Gratis / Pro como una tabla de mareas */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.planbox { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.planbox--pro { border: 2px solid var(--sea); }
.planbox h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 1.6rem; }
.planbox h3 span { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--sea-ink); }
.planbox ul { list-style: none; padding: 0; margin: 0; }
.planbox li { padding: 10px 0 10px 28px; border-top: 1px dashed var(--line-2); position: relative; color: var(--ink-2); font-size: .97rem; }
.planbox li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 14px; height: 7px; border: solid var(--sea); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* Banda final */
.band { background: var(--sea-deep); color: #E8F4F6; padding: clamp(48px, 8vw, 96px) 0; position: relative; overflow: hidden; }
:root[data-theme="dark"] .band { background: #0A2A33; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .band { background: #0A2A33; } }
.band::before { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .07); -webkit-mask: url(/img/isobaths.svg) center / cover no-repeat; mask: url(/img/isobaths.svg) center / cover no-repeat; }
.band__in { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.band h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.3rem); }
.band p { color: #BFDDE2; max-width: 34em; }
.band .btn { background: #fff; color: #0A3F4C; margin-top: 8px; }
.band .fine { color: #9CC7CE; }
.band .wave-rule { width: 120px; height: 12px; margin-bottom: 18px; }
.band .wave-rule path { stroke: #7CC6D3; }
.wave-rule { width: 100%; height: 12px; margin: 28px 0 18px; }
.wave-rule path { fill: none; stroke: var(--line-2); stroke-width: 1.5; vector-effect: non-scaling-stroke; }

/* ── Páginas de función ───────────────────────────────── */
.fhero { padding: clamp(28px, 5vw, 64px) 0 clamp(20px, 4vw, 48px); background: linear-gradient(var(--paper-2), var(--paper)); }
.fhero__in { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.fhero h1 { font-size: clamp(2.2rem, 4.8vw, 3.8rem); }
.fhero__shot { display: flex; justify-content: center; }
@media (max-width: 820px) { .fhero__in { grid-template-columns: 1fr; } }

/* ── Texto largo ──────────────────────────────────────── */
.prose { max-width: 720px; min-width: 0; overflow-wrap: break-word; }
.prose caption, .box { overflow-wrap: anywhere; }
.prose--feature { padding: 28px 0 56px; }
.prose h2 { font-size: clamp(1.55rem, 2.6vw, 2rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--sea); }
.prose figure { margin: 28px 0; }
.prose figure.phone { margin-inline: auto; }
.prose figcaption { font-size: .86rem; color: var(--muted); margin-top: 10px; text-align: center; }
.short { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--sea); border-radius: 14px; padding: 18px 20px 6px; margin: 0 0 28px; }
.short .label { margin-bottom: .5em; }
.short p, .short li { color: var(--ink); }
.note { background: var(--amber); color: var(--on-amber); border-radius: 14px; padding: 14px 18px; font-size: .95rem; }
.note p { color: var(--on-amber); margin: 0; }
.layer { font: 600 .66rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-2); border-radius: 5px; padding: 3px 5px 2px; margin-left: 4px; vertical-align: 2px; white-space: nowrap; }
@media (max-width: 560px) { .layer { white-space: normal; line-height: 1.5; display: inline-block; max-width: 100%; } }
.tablewrap { overflow-x: auto; margin: 22px 0 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
caption { caption-side: bottom; text-align: left; font-size: .8rem; color: var(--muted); padding: 10px 14px 12px; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font: 600 .72rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); }
tbody tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; }
td.up { color: var(--rise); font-weight: 600; }
td.down { color: var(--fall); font-weight: 600; }
td.hot { color: var(--now); font-weight: 600; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps > li { counter-increment: s; position: relative; padding-left: 52px; margin-bottom: 18px; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 600 1rem/1 var(--serif); color: var(--on-sea); background: var(--sea); }
.sources { font-size: .88rem; border-top: 1px solid var(--line-2); margin-top: 40px; padding-top: 8px; }
.sources li { color: var(--muted); overflow-wrap: anywhere; }
.sources a { word-break: break-word; }
details.faq { border-top: 1px solid var(--line); padding: 4px 0; }
details.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); padding: 12px 0; list-style: none; position: relative; padding-right: 30px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 4px; top: 8px; font: 400 1.5rem/1 var(--sans); color: var(--sea); transition: transform .2s; }
details.faq[open] summary::after { transform: rotate(45deg); }

.article__head { padding: clamp(24px, 5vw, 56px) 0 10px; max-width: 900px; }
.article__head h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); }
.byline { font-size: .86rem; color: var(--muted); }
.article__grid { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 56px; padding-bottom: 56px; }
.toc { position: sticky; top: 92px; align-self: start; font-size: .88rem; }
.toc h2 { font: 600 .72rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; color: var(--ink-2); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; }
.toc a:hover, .toc a.is-here { color: var(--sea-ink); border-left-color: var(--sea); }
@media (max-width: 960px) { .article__grid { grid-template-columns: minmax(0, 1fr); gap: 0; } .toc { display: none; } }
.related { padding: 8px 0 64px; }
.related h2 { font-size: 1.5rem; }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; font-size: .84rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--sea-ink); }

/* Página simple (soporte, privacidad, prensa…) */
.page { padding: clamp(24px, 5vw, 56px) 0 64px; }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page .prose { max-width: 760px; }
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: minmax(0, 1fr); } }
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }

/* 404 */
.lost { text-align: center; padding: clamp(56px, 10vw, 120px) 0; }
.lost h1 { font-size: clamp(3rem, 8vw, 6rem); }
.lost svg { width: min(520px, 90%); margin: 0 auto 24px; }
.lost path { fill: none; stroke: var(--sea); stroke-width: 3; stroke-linecap: round; }
.lost .dry { stroke: var(--fall); stroke-dasharray: 6 8; }

/* ── Pie ──────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding: 48px 0 28px; font-size: .92rem; background: var(--paper-2); }
.foot__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; }
.foot h2 { font: 600 .72rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 7px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--sea-ink); text-decoration: underline; }
.foot__brand p { color: var(--muted); margin: 12px 0 16px; }
.foot__brand .btn { color: var(--paper); }
.foot__fine { color: var(--muted); font-size: .8rem; max-width: 70em; }
@media (max-width: 820px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }

/* Aparecer al bajar (solo con JS y sin «reducir movimiento») */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .tide__line.draw { stroke-dashoffset: 0; }
}
@media print { .top, .foot, .band, .toc { display: none; } body { background: #fff; } }
.lost .lede { margin-inline: auto; }
.press-icon img { width: 128px; border-radius: 28px; margin-bottom: 10px; }
.ledger .layer { display: inline-block; margin: 0 4px 0 0; }
