/* ==========================================================================
   Rutina365 — web (landing, privacidad, soporte)
   Fuente de verdad del diseño: Data/tokens.json · Data/design.md
   Las fuentes se sirven desde este mismo sitio (nada de Google Fonts).
   ========================================================================== */

@font-face { font-family: 'Archivo'; src: url('fonts/Archivo-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('fonts/Archivo-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('fonts/Archivo-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('fonts/Archivo-ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('fonts/JetBrainsMono-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('fonts/JetBrainsMono-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('fonts/JetBrainsMono-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --ink: #2A1E1B;
  --paper: #E4E1E2;
  --paper-2: #CDC8CA;
  --ink-muted: rgba(42, 30, 27, .35);
  --ink-faint: rgba(42, 30, 27, .22);
  --shadow: rgba(42, 30, 27, .28);
  --shadow-2: rgba(42, 30, 27, .3);

  --coral: #EE6150;
  --mustard: #E7AE38;
  --magenta: #D359BB;
  --tangerine: #F27F45;
  --lime: #9CC147;
  --sky: #5AB0E0;
  --lavender: #9B7FE6;
  --mint: #4FBF9A;
  --rose: #F291B8;
  --sand: #D9B88C;

  --display: 'Archivo', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --gutter: 24px;
  --max: 1240px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--coral);
  color: var(--ink);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--ink); }
a:hover { opacity: .75; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-ink :focus-visible, .nav :focus-visible { outline-color: var(--paper); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); }

/* ---------- Logo365 ---------- */
.logo { --s: 28px; --c: var(--ink); --bg: var(--paper); display: inline-flex; align-items: center; gap: calc(var(--s) * .35); color: var(--c); text-decoration: none; }
.logo--paper { --c: var(--paper); --bg: var(--ink); }
.logo__mark {
  --cs: calc(var(--s) * .3); --g: max(2px, calc(var(--s) * .07));
  display: grid; grid-template-columns: repeat(3, var(--cs)); gap: var(--g);
  padding: calc(var(--g) + 1px); border: max(1.5px, calc(var(--s) * .06)) solid var(--c);
}
.logo__mark i { width: var(--cs); height: var(--cs); background: var(--c); }
.logo__mark i:nth-child(8) { background: transparent; border: max(1.5px, calc(var(--s) * .05)) solid var(--c); }
.logo__mark i:nth-child(9) { background: repeating-linear-gradient(45deg, var(--c) 0 1px, transparent 1px 3px); }
.logo__word { display: flex; align-items: center; gap: 3px; }
.logo__word span { font: 800 var(--s)/1 var(--display); letter-spacing: -.055em; }
.logo__word b { font: 700 calc(var(--s) * .62)/1 var(--mono); background: var(--c); color: var(--bg); padding: calc(var(--s) * .14) calc(var(--s) * .16); letter-spacing: -.02em; }

/* ---------- PosterMeta / TagLabel ---------- */
.meta { display: flex; flex-direction: column; gap: 10px; font: 500 10px/1 var(--mono); }
.meta__deco { display: flex; justify-content: space-between; opacity: .7; }
.meta__line { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; }
.meta__line span:last-child { text-align: right; }
.tag { display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: var(--paper); font: 500 12px/1 var(--mono); padding: 6px 8px; white-space: nowrap; letter-spacing: .01em; }
.tags { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Texturas ---------- */
.dots { background-image: radial-gradient(rgba(42, 30, 27, .24) 1px, transparent 1.3px); background-size: 6px 6px; }
.brackets { position: relative; }
.brackets::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  --l: 16px; --w: 2px; --k: var(--ink);
  background:
    linear-gradient(var(--k), var(--k)) top left / var(--l) var(--w) no-repeat,
    linear-gradient(var(--k), var(--k)) top left / var(--w) var(--l) no-repeat,
    linear-gradient(var(--k), var(--k)) top right / var(--l) var(--w) no-repeat,
    linear-gradient(var(--k), var(--k)) top right / var(--w) var(--l) no-repeat,
    linear-gradient(var(--k), var(--k)) bottom left / var(--l) var(--w) no-repeat,
    linear-gradient(var(--k), var(--k)) bottom left / var(--w) var(--l) no-repeat,
    linear-gradient(var(--k), var(--k)) bottom right / var(--l) var(--w) no-repeat,
    linear-gradient(var(--k), var(--k)) bottom right / var(--w) var(--l) no-repeat;
}

/* ---------- Títulos ---------- */
.poster-title { margin: 0; font: 800 clamp(52px, 7vw, 104px)/.84 var(--display); letter-spacing: -.07em; word-spacing: .14em; text-wrap: balance; }
.lede { margin: 0; max-width: 520px; font: 500 clamp(19px, 2vw, 22px)/1.2 var(--display); letter-spacing: -.02em; text-wrap: pretty; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 58px; padding: 0 24px; border: 0; cursor: pointer; text-decoration: none;
  font: 700 13px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  background: var(--ink); color: var(--paper); box-shadow: 5px 5px 0 var(--shadow-2);
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { opacity: 1; }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--shadow-2); }
.btn--paper { background: var(--paper); color: var(--ink); box-shadow: 6px 6px 0 var(--coral); }
.btn--ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); box-shadow: none; }
.btn--ghost:active { box-shadow: none; }
.btn--sm { height: 40px; padding: 0 14px; font-size: 11px; box-shadow: 3px 3px 0 var(--shadow-2); }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- TerminalPanel ---------- */
.term { background: var(--ink); padding: 0 3px 3px; box-shadow: 6px 6px 0 var(--shadow-2); display: flex; flex-direction: column; min-width: 0; }
.term--sm { box-shadow: 4px 4px 0 var(--shadow); }
.term__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px; color: var(--paper); font: 500 12px/1.1 var(--mono); }
.term__bar > span:last-child { opacity: .75; text-align: right; }
.term__title { display: flex; align-items: center; gap: 8px; }
.swatch { width: 12px; height: 12px; flex: none; box-shadow: 0 0 0 1px var(--paper); }
.term__body { flex: 1; background: var(--paper); color: var(--ink); padding: 18px 16px; outline: 1px solid var(--ink); outline-offset: -5px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.term__value { display: flex; align-items: baseline; gap: 6px; }
.term__value b { font: 800 40px/.9 var(--display); letter-spacing: -.06em; }
.term__value span, .caption { font: 400 11px/1.35 var(--mono); }
.term__value span { font-size: 12px; font-weight: 500; }
.lines { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font: 500 13px/1.35 var(--mono); }
.lines li { display: flex; gap: 10px; }
.lines li::before { content: "✓"; font-weight: 700; flex: none; }
.chips { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.chips span { background: var(--paper-2); padding: 5px 7px; font: 500 12px/1 var(--mono); }
.chips span::before { content: "✢ "; }

/* ---------- ProgressBlocks / SegmentBar ---------- */
.blocks { --b: 12px; --gap: 3px; --fill: var(--ink); display: flex; flex-wrap: wrap; gap: var(--gap); }
.blocks i { width: var(--b); height: var(--b); border: 1.5px solid var(--ink); transition: background .2s; }
.blocks i.on { background: var(--fill); }
.blocks--paper i { border-color: var(--paper); }
.segbar { position: relative; height: 12px; width: 100%; background: var(--paper); box-shadow: inset 0 0 0 1px var(--shadow); }
.segbar__fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ink); transition: width .4s cubic-bezier(.2, .8, .2, 1); }
.segbar::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(var(--shadow-2), var(--shadow-2)) 25% 0 / 2px 100% no-repeat,
  linear-gradient(var(--shadow-2), var(--shadow-2)) 50% 0 / 2px 100% no-repeat,
  linear-gradient(var(--shadow-2), var(--shadow-2)) 75% 0 / 2px 100% no-repeat; }

/* ---------- RoutineCard + QuickTaskList ---------- */
.rcard { background: var(--ink); padding: 0 3px 3px; box-shadow: 4px 4px 0 var(--shadow); }
.rcard__bar { display: flex; align-items: center; justify-content: space-between; padding: 7px 6px; color: var(--paper); font: 500 12px/1 var(--mono); }
.rcard__bar > span:first-child { display: flex; align-items: center; gap: 8px; }
.rcard__body { background: var(--paper); padding: 14px 12px 12px; display: flex; flex-direction: column; gap: 11px; outline: 1px solid var(--ink); outline-offset: -5px; }
.rcard__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.rcard__name { font: 800 24px/.95 var(--display); letter-spacing: -.045em; }
.rcard__pct { font: 800 30px/.9 var(--display); letter-spacing: -.05em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.qtl { background: var(--paper); border: 2px solid var(--ink); border-top: 0; margin-top: -3px; padding: 4px 10px 10px; display: flex; flex-direction: column; }
.qtl--flat { border: 0; margin: 0; padding: 0; background: transparent; }
.qtl__item { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0; background: transparent; border: 0; border-bottom: 1px dashed var(--ink-muted); cursor: pointer; text-align: left; width: 100%; }
.qtl__box { width: 26px; height: 26px; flex: none; border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; font: 700 15px/1 var(--display); color: var(--paper); transition: background .12s; }
.qtl__label { flex: 1; min-width: 0; font: 600 15px/1.15 var(--display); letter-spacing: -.02em; }
.qtl__min { font: 500 10px/1 var(--mono); }
.qtl__item[aria-pressed="true"] .qtl__box { background: var(--ink); }
.qtl__item[aria-pressed="true"] .qtl__box::after { content: "✓"; }
.qtl__item[aria-pressed="true"] .qtl__label { text-decoration: line-through; opacity: .55; }
.qtl__all { margin-top: 8px; height: 40px; background: var(--ink); color: var(--paper); border: 0; cursor: pointer; font: 700 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.qtl__all[hidden] { display: none; }

/* ---------- HabitGrid ---------- */
.hgrid { --gap: 3px; display: grid; grid-template-rows: repeat(7, auto); grid-auto-flow: column; gap: var(--gap); width: 100%; }
.hgrid i { aspect-ratio: 1; min-width: 0; transition: background .2s, opacity .2s; }
.hgrid .dow { aspect-ratio: auto; font: 500 9px/1 var(--mono); display: flex; align-items: center; padding-right: 2px; font-style: normal; }
.lv-f { border: 1px dashed var(--ink-faint); }
.lv-r { background-image: repeating-linear-gradient(45deg, rgba(42, 30, 27, .4) 0 1px, transparent 1px 4px); }
.lv-0 { border: 1.5px solid rgba(42, 30, 27, .55); }
.lv-1 { background: rgba(42, 30, 27, .25); }
.lv-2 { background: rgba(42, 30, 27, .5); }
.lv-3 { background: rgba(42, 30, 27, .78); }
.lv-4 { border: 1.5px solid var(--ink); }
.is-today { outline: 2px solid var(--ink); outline-offset: 1px; }
.legend { display: flex; align-items: center; gap: 4px; font: 500 10px/1 var(--mono); flex-wrap: wrap; margin-top: 10px; }
.legend i { width: 11px; height: 11px; }
.legend .grow { flex: 1; }
.scroll-x { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }

/* ---------- BlockChart / ColorMixBar ---------- */
.bchart { display: flex; gap: 4px; align-items: flex-end; width: 100%; }
.bchart__col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.bchart__stack { display: flex; flex-direction: column-reverse; gap: 2px; }
.bchart__stack i { height: 9px; border: 1px solid var(--ink-faint); transition: background .25s; }
.bchart__stack i.on { border-color: var(--ink); }
.bchart__label { font: 500 10px/1 var(--mono); text-align: center; white-space: nowrap; }
.mix__bar { display: flex; height: 34px; border: 2px solid var(--ink); overflow: hidden; }
.mix__bar span { transition: flex .3s; }
.mix__bar span + span { border-left: 2px solid var(--ink); }
.mix__legend { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 12px; }
.mix__legend div { display: flex; align-items: center; gap: 7px; min-width: 0; }
.mix__legend i { width: 12px; height: 12px; flex: none; border: 1.5px solid var(--ink); }
.mix__legend span { flex: 1; min-width: 0; font: 600 13px/1.1 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mix__legend b { font: 700 11px/1 var(--mono); }

/* ---------- Segmented / chips ---------- */
.seg { display: flex; border: 2px solid var(--ink); }
.seg button { flex: 1; height: 40px; border: 0; background: transparent; cursor: pointer; font: 500 12px/1 var(--mono); }
.seg button + button { border-left: 2px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); font-weight: 700; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.days button { height: 40px; border: 2px solid var(--ink); background: transparent; cursor: pointer; font: 700 12px/1 var(--mono); }
.days button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* ---------- TimePicker ---------- */
.tp { display: flex; flex-direction: column; gap: 12px; }
.tp__top { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items: stretch; gap: 8px; }
.tp__col { display: flex; flex-direction: column; border: 2px solid var(--ink); background: var(--paper); box-shadow: 4px 4px 0 var(--ink); }
.tp__col button { height: 32px; border: 0; background: transparent; cursor: pointer; font: 700 13px/1 var(--mono); }
.tp__col button:first-child { border-bottom: 1.5px solid var(--ink); }
.tp__col button:last-child { border-top: 1.5px solid var(--ink); }
.tp__num { text-align: center; font: 800 56px/1 var(--display); letter-spacing: -.06em; font-variant-numeric: tabular-nums; padding: 6px 0 2px; }
.tp__colon { align-self: center; font: 800 46px/1 var(--display); }
.tp__part { display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.tp__part b { background: var(--ink); color: var(--paper); padding: 6px 7px; font: 700 11px/1 var(--mono); text-align: center; }
.tp__part span { font: 500 10px/1.3 var(--mono); text-align: center; }
.tp__hours { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 2px; align-items: end; }
.tp__hours button { height: 24px; padding: 0; cursor: pointer; background: transparent; border: 1.5px solid rgba(42, 30, 27, .4); transition: height .15s; }
.tp__hours button.busy { border-color: var(--ink); }
.tp__hours button.sel { height: 34px; border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: 1px; }
.tp__hours button.sel:not(.busy) { background: var(--ink); }
.tp__axis { display: flex; justify-content: space-between; font: 500 9px/1 var(--mono); margin-top: 5px; }
.tp__mins { display: flex; gap: 6px; flex-wrap: wrap; }
.tp__mins button { height: 40px; padding: 0 12px; border: 2px solid var(--ink); background: transparent; cursor: pointer; font: 500 12px/1 var(--mono); }
.tp__mins button[aria-pressed="true"] { background: var(--ink); color: var(--paper); font-weight: 700; }

/* ---------- NotificationItem ---------- */
.notif { display: flex; gap: 12px; padding: 14px 12px; background: var(--paper); box-shadow: 4px 4px 0 var(--shadow); }
.notif__sw { width: 30px; height: 30px; flex: none; border: 2px solid var(--ink); }
.notif__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.notif__head { display: flex; justify-content: space-between; gap: 8px; font: 500 11px/1 var(--mono); }
.notif__head span:last-child { display: flex; align-items: center; gap: 6px; }
.notif__head span:last-child::before { content: ""; width: 8px; height: 8px; background: var(--ink); }
.notif__title { font: 700 18px/1.1 var(--display); letter-spacing: -.025em; }
.notif__body { font: 400 14px/1.35 var(--display); text-wrap: pretty; }
.notif.is-off { opacity: .45; }

/* ---------- ToggleRow ---------- */
.toggle { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 54px; padding: 0; border: 0; background: transparent; cursor: pointer; text-align: left; }
.toggle__txt { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.toggle__txt b { font: 700 16px/1.1 var(--display); letter-spacing: -.02em; }
.toggle__txt span { font: 400 11px/1.3 var(--mono); }
.toggle__sw { width: 54px; height: 30px; flex: none; border: 2px solid var(--ink); padding: 3px; display: flex; }
.toggle__sw i { width: 20px; height: 20px; background: var(--ink); opacity: .35; transition: transform .15s, opacity .15s; }
.toggle[aria-pressed="true"] .toggle__sw { background: var(--ink); }
.toggle[aria-pressed="true"] .toggle__sw i { background: var(--paper); opacity: 1; transform: translateX(24px); }

/* ---------- Choice list (radio) ---------- */
.choices { display: flex; flex-direction: column; gap: 8px; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border: 2px solid var(--ink); background: transparent; cursor: pointer; text-align: left; font: 600 15px/1.15 var(--display); letter-spacing: -.02em; }
.choice::before { content: ""; width: 16px; height: 16px; flex: none; border: 2px solid var(--ink); }
.choice[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.choice[aria-pressed="true"]::before { border-color: var(--paper); background: var(--paper); box-shadow: inset 0 0 0 3px var(--ink); }

/* ==========================================================================
   Estructura de página
   ========================================================================== */

.nav { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--paper); }
.nav__in { max-width: var(--max); margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav__links { display: flex; align-items: center; gap: 22px; font: 500 12px/1 var(--mono); }
.nav__links a { color: var(--paper); text-decoration: none; }
.nav__links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.nav__cta { display: flex; align-items: center; height: 38px; padding: 0 14px; background: var(--paper); color: var(--ink) !important; font-weight: 700; box-shadow: 3px 3px 0 var(--coral); }

.sec { position: relative; overflow: hidden; padding: 72px 0; background: var(--bg, transparent); }
.sec > .wrap { position: relative; z-index: 1; }
.stack { display: flex; flex-direction: column; gap: 28px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px; align-items: center; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; align-items: start; }
.on-ink { background: var(--ink); color: var(--paper); }
.on-ink a { color: var(--paper); }

.footer { background: var(--ink); color: var(--paper); border-top: 1px dashed rgba(228, 225, 226, .25); }
.footer__in { max-width: var(--max); margin: 0 auto; padding: 26px var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; font: 500 11px/1.4 var(--mono); }
.footer__links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer a { color: var(--paper); }

/* Reveal al hacer scroll (solo con JS y sin movimiento reducido) */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes blink { 50% { opacity: 0; } }
.marquee { background: var(--ink); color: var(--paper); overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee__track span { white-space: pre; padding: 16px 0; font: 700 18px/1 var(--mono); letter-spacing: .04em; }
.cursor { animation: blink 1s steps(1) infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track, .cursor { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .sec { padding: 56px 0; }
  .nav__links .nav__sec { display: none; }
  .nav__links { gap: 14px; }
  .nav .logo { --s: 18px !important; }
}
@media (max-width: 420px) {
  .nav__cta { display: none; }
  .tp__num { font-size: 46px; }
}

/* ==========================================================================
   Páginas de texto (privacidad, soporte)
   ========================================================================== */

.doc-hero { position: relative; overflow: hidden; padding-top: 28px; padding-bottom: 48px; }
.doc-hero__frame { position: relative; margin-top: 18px; border: 1.5px solid var(--ink); padding: 0 0 28px; overflow: hidden; }
.doc-hero__top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; padding-right: 14px; }
.doc-hero__title { position: relative; z-index: 1; margin: 22px 22px 0; padding: 22px 18px; }
.doc-hero__title h1 { margin: 0; font: 800 clamp(60px, 10vw, 140px)/.82 var(--display); letter-spacing: -.075em; word-spacing: .14em; }
.doc-hero__sub { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; padding: 22px 22px 0; }

.doc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; max-width: 860px; }
.prose { font: 500 17px/1.5 var(--display); letter-spacing: -.01em; text-wrap: pretty; }
.prose p { margin: 0; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 12px; }
.prose ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.prose li { display: flex; gap: 10px; }
.prose li::before { content: "■"; font: 700 10px/1.9 var(--mono); flex: none; }
.prose strong { font-weight: 800; }
.prose a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.path { font: 700 .82em/1.6 var(--mono); background: var(--paper-2); padding: 2px 5px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.faq { border: 2px solid var(--ink); background: var(--paper); box-shadow: 4px 4px 0 var(--shadow); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 16px 14px; font: 700 18px/1.15 var(--display); letter-spacing: -.025em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "▼"; margin-left: auto; font: 700 12px/1 var(--mono); transition: transform .15s; }
.faq[open] summary::after { transform: rotate(180deg); }
.faq summary .tag { font-size: 11px; }
.faq__body { padding: 0 14px 16px; border-top: 1px dashed var(--ink-muted); padding-top: 14px; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }

/* ---------- Landing: muestras, plantillas, toast ---------- */
.sw { aspect-ratio: 1; min-width: 0; border: 2px solid var(--ink); cursor: pointer; padding: 6px; display: flex; align-items: flex-end; box-shadow: 0 0 0 var(--ink); transition: transform .15s, box-shadow .15s; }
.sw:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.sw[aria-pressed="true"] { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.sw span { background: var(--ink); color: var(--paper); font: 500 9px/1 var(--mono); padding: 4px 5px; opacity: 0; transition: opacity .15s; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw[aria-pressed="true"] span { opacity: 1; }

.tasklist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.tasklist li { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 42px; border-bottom: 1px dashed var(--ink-muted); font: 600 15px/1.15 var(--display); letter-spacing: -.02em; }
.tasklist li span:last-child { font: 500 10px/1 var(--mono); white-space: nowrap; }

.toast { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 3; display: flex; gap: 10px; align-items: center; padding: 10px; background: var(--paper); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); transform: translateY(-12px); opacity: 0; transition: transform .25s, opacity .25s; pointer-events: none; }
.toast.is-on { transform: none; opacity: 1; }
.toast i { width: 26px; height: 26px; flex: none; border: 2px solid var(--ink); background: var(--coral); }
.toast span { display: flex; flex-direction: column; gap: 4px; }
.toast small { font: 500 10px/1 var(--mono); }
.toast b { font: 700 16px/1.1 var(--display); letter-spacing: -.02em; }

@media print { .js [data-reveal] { opacity: 1; transform: none; } .nav { position: static; } .marquee { display: none; } }

/* ---------- Hero, marco de iPhone y galería de capturas ---------- */
.hero { position: relative; margin-top: 18px; border: 1.5px solid var(--ink); overflow: hidden; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
.hero__text { padding-bottom: 32px; display: flex; flex-direction: column; gap: 22px; }
.hero__phone { display: flex; justify-content: center; align-items: center; padding: 40px 22px 48px; border-left: 1.5px solid var(--ink); }

/* Capturas dentro del marco oficial de Apple (product bezel), sin sombras ni efectos añadidos */
.iphone { display: block; flex: none; width: 250px; max-width: 100%; height: auto; }
.iphone--lg { width: 330px; }

.gallery__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.gallery__nav { display: flex; gap: 10px; }
.gallery__nav .btn { width: 48px; height: 48px; padding: 0; font-size: 20px; }
.gallery {
  --pad: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  display: flex; gap: 28px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 36px var(--pad) 24px; scroll-padding-inline: var(--pad); scrollbar-width: thin; scrollbar-color: var(--ink) transparent;
}
.gallery:focus-visible { outline-offset: -6px; }
.shot { margin: 0; flex: none; width: 250px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 18px; }
.shot figcaption { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.shot figcaption b { font: 800 22px/1 var(--display); letter-spacing: -.04em; }
.shot figcaption span:last-child { font: 500 15px/1.3 var(--display); text-wrap: pretty; }

.appicon { width: 88px; height: 88px; border-radius: 22.4%; flex: none; }

@media (max-width: 980px) {
  .hero__phone { border-left: 0; border-top: 1.5px solid var(--ink); }
}
@media (max-width: 760px) {
  .iphone--lg { width: 280px; }
  .shot, .shot .iphone { width: 230px; }
  .gallery { gap: 20px; }
}
.btn:disabled { opacity: .3; cursor: default; transform: none; }

/* Páginas de texto en dos columnas (lateral fija en escritorio) */
.doc--split { max-width: none; grid-template-columns: minmax(0, 1fr) 380px; align-items: start; gap: 28px; }
.doc__main, .doc__aside { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.doc__aside { position: sticky; top: 84px; }
@media (max-width: 980px) {
  .doc--split { grid-template-columns: minmax(0, 1fr); }
  .doc__aside { position: static; order: -1; }
}

/* Distintivo oficial «Consíguelo en el App Store» (no modificar su arte) */
.appstore { display: inline-flex; flex: none; line-height: 0; }
.appstore img { height: 58px; width: auto; }
.appstore--lg img { height: 64px; }
a.appstore:hover { opacity: .85; }
