/* Simple Suite — hoja de estilos del sitio.
   Sistema: Docs/Diseno.md (papel cálido + tinta + un acento bermellón). Mobile-first. */

/* ---------- 0. Tipografías alojadas en el propio sitio ----------
   Archivos variables originales, sin modificar (SIL OFL 1.1; licencias en fonts/OFL-*.txt). Ningún pedido a terceros.
   shortcut: van en TTF (no hay conversor a WOFF2 en la PC de armado); pasarlos a WOFF2 si el peso de la primera carga molesta. */
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/BricolageGrotesque.ttf") format("truetype"); font-weight: 200 800; font-stretch: 75% 100%; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/HankenGrotesk-wght.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: light;
  --paper: #F5F1E8;
  --surface: #FFFFFF;
  --sand: #EAE3D5;
  --ink: #17171A;
  --muted: #5C574E;
  --accent: #C2381A;
  --accent-ink: #9A3412;
  --accent-on-dark: #FF7A52;
  --muted-on-dark: #A8A196;
  --ok: #1F5C4A;
  --line: #CFC6B4;
  --field-border: #857E70;
  --focus: #1D4ED8;
  --mustard: #E8B23A;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --section: clamp(64px, 10vw, 128px);
  --gutter: clamp(16px, 4vw, 40px);

  --r-sm: 6px; --r-md: 10px; --r-lg: 16px;
  --sh-1: 0 1px 2px rgba(23,23,26,.06), 0 1px 1px rgba(23,23,26,.04);
  --sh-2: 0 12px 32px -12px rgba(23,23,26,.28), 0 2px 6px rgba(23,23,26,.08);

  --t-fast: 150ms; --t-base: 250ms; --t-slow: 350ms;
  --ease-in: cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.4,0,1,1);

  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-text: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--f-text);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 4.5rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-size: 1.375rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0 0 var(--s4); max-width: 62ch; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.dark :focus-visible { outline-color: #8FB0FF; }
::selection { background: var(--mustard); color: var(--ink); }

.wrap { width: 100%; max-width: calc(1200px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font: 500 .875rem/1.45 var(--f-text); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--s4); }
.lead { font-size: 1.1875rem; line-height: 1.55; color: var(--muted); }
.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); font-size: .875rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--s4); top: -100px; z-index: 300; background: var(--ink); color: var(--paper); padding: var(--s3) var(--s4); border-radius: var(--r-sm); }
.skip:focus { top: var(--s3); }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-sm { width: 20px; height: 20px; }

/* ---------- 3. Botones, chips, campos ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 22px; border-radius: var(--r-md);
  font: 600 1rem/1 var(--f-text); text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background-color var(--t-fast) var(--ease-in), color var(--t-fast), border-color var(--t-fast);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #FFF; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--sand); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }

.chips { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; }
.chip { display: inline-block; background: var(--sand); color: var(--ink); font-size: .875rem; line-height: 1.45; padding: 3px 10px; border-radius: var(--r-sm); }
.tag-save { display: inline-block; background: var(--mustard); color: var(--ink); font: 600 .875rem/1.4 var(--f-text); padding: 3px 10px; border-radius: var(--r-sm); }

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(245,241,232,.96);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: var(--s5); height: 56px; }
.brand { display: inline-flex; color: var(--ink); text-decoration: none; padding: var(--s2) 0; }
.brand svg { width: 150px; height: auto; }
.nav { margin-left: auto; }
.nav-list { display: flex; gap: var(--s5); list-style: none; }
.nav-list a { color: var(--ink); text-decoration: none; font-weight: 500; padding: var(--s2) 0; }
.nav-list a:hover { text-decoration: underline; }
.header-actions { display: flex; gap: var(--s3); align-items: center; }
.menu-btn { display: none; }

@media (max-width: 899.98px) {
  .nav, .header-actions .btn-primary { display: none; }
  .header-actions { margin-left: auto; }
  .menu-btn { display: inline-flex; }
  .nav.is-open {
    display: block; position: absolute; left: 0; right: 0; top: 56px; z-index: 40;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: var(--s4) var(--gutter) var(--s5);
  }
  .nav.is-open .nav-list { flex-direction: column; gap: 0; }
  .nav.is-open .nav-list a { display: block; padding: var(--s3) 0; min-height: 44px; border-bottom: 1px solid var(--line); }
}
@media (min-width: 900px) { .header-row { height: 60px; } .brand svg { width: 168px; } }

/* ---------- 5. Marco de captura ---------- */
.frame {
  margin: 0; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid rgba(23,23,26,.12); box-shadow: var(--sh-2); background: var(--ink);
}
.frame img { width: 100%; height: auto; }
.figcap { margin-top: var(--s3); font-size: .875rem; color: var(--muted); }
.illus-tag { display: inline-block; background: var(--sand); color: var(--ink); font-size: .8125rem; padding: 2px 8px; border-radius: var(--r-sm); margin-left: var(--s2); }

/* ---------- 6. Hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 var(--section); }
.hero-grid { display: grid; gap: var(--s7); align-items: center; }
.hero h1 { margin-bottom: var(--s5); }
.hero .lead { margin-bottom: var(--s6); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s6); }
.hero-facts { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); list-style: none; color: var(--muted); }
.hero-facts li + li::before { content: "·"; margin-right: var(--s4); color: var(--line); }
.hero-media { position: relative; }
.hero-media .frame-small { display: none; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s5); }
  .hero-copy { grid-column: 1 / span 5; }
  .hero-media { grid-column: 6 / span 7; padding-bottom: 12%; }
  .hero-media .frame-small {
    display: block; position: absolute; width: 38%; left: -8%; bottom: 0;
  }
}
@media (min-width: 1200px) {
  .hero-media { margin-right: max(-120px, calc((1200px - 100vw) / 2 + 8px)); }
}

/* ---------- 7. Franja de usos ---------- */
.uses { background: var(--sand); padding: var(--s6) 0; }
.uses-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); list-style: none; }
.uses-list a {
  display: flex; flex-direction: column; gap: var(--s1); min-height: 44px;
  color: var(--ink); text-decoration: none; padding: var(--s2) 0;
}
.uses-list a strong { font: 600 1rem/1.3 var(--f-text); }
.uses-list a span { font-size: .875rem; color: var(--muted); }
.uses-list a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.uses-list .icon { color: var(--accent); margin-bottom: var(--s1); }
.uses-list a span { overflow-wrap: anywhere; }
@media (max-width: 599.98px) {
  .uses-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-row { gap: var(--s3); }
  .brand svg { width: 128px; }
  .header-actions { gap: var(--s2); }
  .header-actions .btn-sm { padding: 0 12px; }
}
@media (min-width: 900px) { .uses-list { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* ---------- 8. Secciones ---------- */
.section { padding: var(--section) 0; }
.section-head { margin-bottom: var(--s7); max-width: 720px; }
.section-head h2 { margin-bottom: var(--s4); }
.band-sand { background: var(--sand); }

/* ---------- 9. Acordeón (apertura única) ---------- */
.acc { list-style: none; border-bottom: 1px solid var(--line); }
.acc-item { border-top: 1px solid var(--line); }
.acc-head { margin: 0; font-size: inherit; }
.acc-trigger {
  display: grid; grid-template-columns: 1fr auto; align-items: start; gap: var(--s4);
  width: 100%; min-height: 56px; padding: var(--s5) 0; margin: 0;
  background: none; border: 0; text-align: left; color: var(--ink);
}
.acc-title { display: block; font: 700 1.375rem/1.2 var(--f-display); letter-spacing: -0.01em; }
.acc-sub { display: block; margin-top: var(--s2); color: var(--muted); font: 400 1rem/1.5 var(--f-text); }
.acc-meta { display: block; margin-top: var(--s2); font: .8125rem/1.4 var(--f-mono); color: var(--muted); }
.acc-q { font: 600 1.0625rem/1.4 var(--f-text); }
.acc-plus { position: relative; width: 24px; height: 24px; margin-top: 2px; transition: transform var(--t-slow) var(--ease-in); }
.acc-plus::before, .acc-plus::after {
  content: ""; position: absolute; left: 4px; right: 4px; top: 11px; height: 2px; background: currentColor; border-radius: 1px;
}
.acc-plus::after { transform: rotate(90deg); }
.acc-item.is-open .acc-plus { transform: rotate(45deg); }
.acc-trigger:hover .acc-title, .acc-trigger:hover .acc-q { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.acc-panel {
  display: grid; grid-template-rows: 1fr; opacity: 1; visibility: visible;
  transition: grid-template-rows var(--t-slow) var(--ease-in), opacity var(--t-slow) var(--ease-in), visibility 0s;
}
html.js .acc-item:not(.is-open) > .acc-panel {
  grid-template-rows: 0fr; opacity: 0; visibility: hidden;
  transition: grid-template-rows 220ms var(--ease-out), opacity 220ms var(--ease-out), visibility 0s linear 220ms;
}
.acc-inner { min-height: 0; overflow: hidden; }
.acc-body { padding: 0 0 var(--s6); }
.acc-body > * + * { margin-top: var(--s4); }

.checks { list-style: none; display: grid; gap: var(--s3); }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: var(--s3); align-items: start; }
.checks .icon { color: var(--ok); margin-top: 3px; }
.case { border-left: 3px solid var(--accent); padding: var(--s1) 0 var(--s1) var(--s4); color: var(--muted); }
.case strong { color: var(--ink); font-weight: 600; }
.note { font-size: .875rem; color: var(--muted); }
.panel-links { display: flex; flex-wrap: wrap; gap: var(--s5); }
.panel-links a { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- 10. Recorrido por apps ---------- */
.tour { display: grid; gap: var(--s6); }
.stage { display: none; }
.inline-media { margin-bottom: var(--s5); }
@media (min-width: 900px) {
  .tour { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s5); align-items: start; }
  .tour .acc { grid-column: 1 / span 5; }
  .stage { display: grid; grid-column: 7 / span 6; position: sticky; top: 88px; }
  .inline-media { display: none; }
}
.stage > figure {
  grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden;
  transition: opacity var(--t-base) var(--ease-out), visibility 0s linear var(--t-base);
}
.stage > figure.is-active { opacity: 1; visibility: visible; transition: opacity var(--t-base) var(--ease-in), visibility 0s; }
.duo { position: relative; padding-bottom: 14%; }
.duo .frame + .frame { position: absolute; width: 46%; right: -4%; bottom: 0; }

/* ---------- 11. Tutoriales ---------- */
.tuts { display: grid; gap: var(--s7); }
.video-box video { width: 100%; height: auto; background: var(--ink); aspect-ratio: 16 / 9; }
.video-box h3 { margin-top: var(--s5); }
.video-box .meta { color: var(--muted); font-size: .875rem; }
.steps { list-style: none; counter-reset: step; display: grid; gap: var(--s4); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: var(--s3); align-items: baseline; }
.steps li::before {
  content: counter(step); font: 700 1.75rem/1 var(--f-display); color: var(--accent); font-variant-numeric: tabular-nums;
}
.band-sand .acc, .band-sand .acc-item { border-color: #C8BEAA; }
kbd { font-family: var(--f-mono); font-size: .8125rem; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
@media (min-width: 900px) {
  .tuts { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s5); align-items: start; }
  .video-box { grid-column: 1 / span 6; position: sticky; top: 88px; }
  .tuts .acc { grid-column: 8 / span 5; }
}

/* ---------- 12. Precios (bloque tinta) ---------- */
.dark { background: var(--ink); color: var(--paper); }
.dark a { color: var(--accent-on-dark); }
.dark .muted, .dark .eyebrow, .dark .lead { color: var(--muted-on-dark); }
.price-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s5); margin-bottom: var(--s7); }
.price-head h2 { max-width: 14ch; }
.seg { display: inline-flex; padding: 4px; border: 1.5px solid var(--muted-on-dark); border-radius: var(--r-md); gap: 4px; }
.seg button {
  min-height: 40px; padding: 0 16px; border: 0; border-radius: var(--r-sm);
  background: transparent; color: var(--paper); font-weight: 600;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.seg button[aria-checked="true"] { background: var(--paper); color: var(--ink); }
.plans { display: grid; gap: var(--s5); list-style: none; }
.plan {
  display: flex; flex-direction: column; gap: var(--s4);
  border: 1px solid #3A3A40; border-radius: var(--r-md); padding: var(--s6) var(--s5);
}
.plan-featured { border: 2px solid var(--accent-on-dark); order: -1; }
.plan h3 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.plan .plan-desc { color: var(--muted-on-dark); margin: 0; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2); margin: var(--s2) 0 0; } /* wrap: un monto largo (ARS, COP) baja «por 1 año» en vez de desbordar a 360 px */
.price .cur { font: 600 .9375rem/1 var(--f-text); color: var(--muted-on-dark); }
.price .num {
  min-width: 0; overflow-wrap: anywhere;
  font: 700 clamp(2.25rem, 1.8rem + 2vw, 3rem)/1 var(--f-display); font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
  transition: opacity 200ms var(--ease-in);
}
.price .num.is-swapping { opacity: 0; transition-duration: 120ms; }
.price .per { color: var(--muted-on-dark); font-size: .9375rem; }
.price-tbc { font: 700 1.75rem/1.1 var(--f-display); margin: var(--s2) 0 0; }
.plan .checks .icon { color: var(--accent-on-dark); }
.plan .checks { font-size: .9375rem; }
.plan .btn { margin-top: auto; }
.plan .btn-secondary { color: var(--paper); border-color: var(--paper); }
.plan .btn-secondary:hover { background: #2A2A30; }
.field-dark label { display: block; font-size: .875rem; color: var(--muted-on-dark); margin-bottom: var(--s2); }
.field-dark select {
  width: 100%; min-height: 48px; padding: 0 12px; border-radius: var(--r-sm);
  background: #222227; color: var(--paper); border: 1.5px solid var(--muted-on-dark);
}
.pay-note { margin-top: var(--s6); color: var(--muted-on-dark); font-size: .9375rem; max-width: 70ch; }
.pay-status { margin-top: var(--s3); font-weight: 600; color: var(--paper); min-height: 1.6em; }
@media (min-width: 900px) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plan-featured { order: 0; }
}

/* ---------- 13. FAQ ---------- */
.faq-grid { display: grid; gap: var(--s6); }
@media (min-width: 900px) {
  .faq-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s5); }
  .faq-grid .section-head { grid-column: 1 / span 4; }
  .faq-grid .acc { grid-column: 5 / span 8; }
}

/* ---------- 14. Pie ---------- */
.site-footer { padding: var(--s9) 0 var(--s7); }
.foot-top { display: grid; gap: var(--s6); padding-bottom: var(--s7); border-bottom: 1px solid #3A3A40; }
.foot-brand svg { width: 168px; color: var(--paper); }
.foot-brand p { margin-top: var(--s3); color: var(--muted-on-dark); }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--s5); }
.foot-cols h2 { font: 600 .875rem/1.4 var(--f-text); letter-spacing: .08em; text-transform: uppercase; color: var(--muted-on-dark); margin-bottom: var(--s3); }
.foot-cols ul { list-style: none; display: grid; gap: var(--s1); }
.foot-cols a { color: var(--paper); text-decoration: none; display: inline-block; padding: 6px 0; }
.foot-cols a:hover { text-decoration: underline; }
.disclaimer { padding-top: var(--s6); font-size: .875rem; line-height: 1.6; color: var(--muted-on-dark); }
.disclaimer p { max-width: 90ch; }
.foot-info { margin-top: var(--s4); }
.foot-info-btn { display: inline-block; color: var(--paper); font: 600 .875rem/1.4 var(--f-text); cursor: pointer; padding: 6px 0; }
.foot-info-btn::-webkit-details-marker { display: none; }
.foot-info-btn::before { content: "+ "; }
.foot-info[open] .foot-info-btn::before { content: "\2212 "; }
.foot-info-btn:hover { text-decoration: underline; }
.foot-info-btn:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
.foot-info-box { max-width: 46ch; margin-top: var(--s2); padding: var(--s3) var(--s4); border: 1px solid #3A3A40; border-radius: var(--r-sm); background: var(--ink); color: var(--paper); }
.foot-info-box p { max-width: none; margin: 0; }
.copy { margin-top: var(--s5); color: var(--paper); font-size: .875rem; }

/* ---------- Modal de descargas (prueba gratuita) ---------- */
.dl-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: var(--s4); background: rgba(10,10,12,.72); }
.dl-modal.hidden { display: none; }
.dl-modal-box { max-width: 560px; width: 100%; background: var(--surface); color: var(--ink); border-radius: var(--r-lg); padding: var(--s6); box-shadow: var(--sh-2); text-align: center; }
.dl-modal-box h2 { font: 600 1.25rem/1.3 var(--f-text); margin: 0 0 var(--s3); }
.dl-modal-box p { font-size: .9rem; line-height: 1.55; color: var(--muted); margin: 0 0 var(--s5); }
.dl-modal-close { background: #F97316; color: #fff; border: 0; padding: var(--s3) var(--s5); border-radius: var(--r-md); font: 600 1rem/1 var(--f-text); cursor: pointer; min-width: 140px; }
.dl-modal-close:hover { background: #EA580C; }
.dl-modal-close:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (min-width: 900px) { .foot-top { grid-template-columns: 4fr 8fr; } }

/* ---------- 15. Diálogo y avisos ---------- */
dialog.sheet {
  border: 0; padding: 0; border-radius: var(--r-md); box-shadow: var(--sh-2);
  width: min(440px, calc(100vw - 32px)); background: var(--surface); color: var(--ink);
}
dialog.sheet::backdrop { background: rgba(23,23,26,.55); }
.sheet-body { padding: var(--s6) var(--s5); display: grid; gap: var(--s4); }
.sheet-body h2 { font-size: 1.5rem; }
.provider-list { list-style: none; display: grid; gap: var(--s3); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: var(--s2) var(--s4); margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-family: var(--f-mono); font-size: .9375rem; overflow-wrap: anywhere; }
.notice { border-left: 3px solid var(--mustard); background: #FBF6EA; padding: var(--s3) var(--s4); border-radius: 0 var(--r-sm) var(--r-sm) 0; }

/* ---------- 16. Cuenta ---------- */
.account { min-height: 100dvh; display: grid; }
.account-aside { display: none; }
.account-main { display: flex; flex-direction: column; padding: var(--s5) var(--gutter) var(--s8); }
.account-main .brand { align-self: flex-start; margin-bottom: var(--s7); }
.card { width: 100%; max-width: 420px; margin-inline: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-1); padding: var(--s6) var(--s5); }
.card-wide { max-width: 720px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); margin-bottom: var(--s5); }
.tabs button {
  min-height: 48px; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  font-weight: 600; color: var(--muted);
}
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.field { margin-bottom: var(--s4); }
.field label { display: block; font-weight: 500; margin-bottom: var(--s2); }
.field input {
  width: 100%; min-height: 48px; padding: 0 12px; border-radius: var(--r-sm);
  border: 1.5px solid var(--field-border); background: var(--surface);
}
.field input[aria-invalid="true"] { border-color: var(--accent); }
.pw { position: relative; }
.pw input { padding-right: 88px; }
.pw button { position: absolute; right: 4px; top: 4px; bottom: 4px; padding: 0 12px; background: none; border: 0; color: var(--accent-ink); font-weight: 600; border-radius: var(--r-sm); }
.hint { font-size: .875rem; color: var(--muted); margin: var(--s1) 0 0; }
.err { font-size: .875rem; color: var(--accent-ink); margin: var(--s2) 0 0; font-weight: 500; }
.err:empty { display: none; }
.form-err { margin-bottom: var(--s4); }
.orders { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.orders th, .orders td { text-align: left; padding: var(--s3) var(--s2); border-bottom: 1px solid var(--line); vertical-align: top; }
.orders th { font-weight: 600; color: var(--muted); font-size: .875rem; }
.orders .amt { font-variant-numeric: tabular-nums; white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-paid { color: var(--ok); }
.status-pending { color: #8A5A00; }
.status-cancelled { color: var(--muted); }
.acct-block + .acct-block { margin-top: var(--s7); }
.acct-block h2 { font-size: 1.375rem; margin-bottom: var(--s4); }
@media (max-width: 599.98px) {
  .orders thead { display: none; }
  .orders tr { display: grid; grid-template-columns: 1fr auto; padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
  .orders td { border: 0; padding: 2px 0; }
}
@media (min-width: 900px) {
  .account { grid-template-columns: 5fr 7fr; }
  .account-aside { display: flex; flex-direction: column; justify-content: space-between; gap: var(--s7); padding: var(--s7) var(--s7) var(--s7) var(--gutter); }
  .account-aside h1 { font-size: clamp(2.5rem, 1.6rem + 2.5vw, 3.75rem); }
  .account-aside .frame { max-width: 480px; }
  .account-main { justify-content: center; }
  .account-main .brand { display: none; }
}

/* ---------- 17. Legal ---------- */
.legal { display: grid; gap: var(--s7); padding-block: var(--s8) var(--s9); }
.legal-toc ul { list-style: none; display: grid; gap: var(--s1); }
.legal-toc a { display: inline-block; padding: 6px 0; color: var(--ink); text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
.legal-body section { padding-top: var(--s6); }
.legal-body h2 { font-size: 1.75rem; margin-bottom: var(--s4); }
.legal-body h3 { font-size: 1.125rem; margin: var(--s5) 0 var(--s2); }
.legal-body ul { padding-left: 1.2em; margin-bottom: var(--s4); max-width: 62ch; }
.legal-body li { margin-bottom: var(--s2); }
@media (min-width: 900px) {
  .legal { grid-template-columns: 3fr 9fr; }
  .legal-toc { position: sticky; top: 88px; align-self: start; }
}
.simple-foot { padding: var(--s6) 0; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }

/* ---------- 18. Aparición al hacer scroll (solo con JS) ---------- */
html.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--t-slow) var(--ease-in), transform var(--t-slow) var(--ease-in); }
html.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 19. Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important; transition-delay: 0s !important;
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
}
