/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --border: #e1e4ea;
  --ink: #161b22;
  --ink-soft: #4b5563;
  --mute: #6b7280;
  --accent: #0f5f4e;
  --accent-hover: #0c4c3f;
  --accent-soft: #e6f2ee;
  --danger: #b3261e;
  --danger-soft: #fbeae9;
  --warn: #92620a;
  --warn-soft: #fdf3de;
  --ok: #1e7d46;
  --ok-soft: #e7f6ec;
  --black-box: #0b0d10;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 32, .06);
  --shadow-md: 0 8px 24px rgba(16, 24, 32, .08);
  --shadow-lg: 0 24px 60px rgba(16, 24, 32, .16);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1013;
    --surface: #151a1f;
    --surface-2: #1b2129;
    --border: #262e37;
    --ink: #eef1f4;
    --ink-soft: #c2c9d1;
    --mute: #8b95a1;
    --accent: #2fa583;
    --accent-hover: #3cc39c;
    --accent-soft: #16302a;
    --danger-soft: #3a1a18;
    --warn-soft: #362809;
    --ok-soft: #123322;
    --black-box: #000000;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, .5);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .6);
  }
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
/* Un elemento con el atributo hidden nunca debe verse, aunque tenga un
   display inline (p. ej. los bloques de nav logueado/no-logueado, que
   alternan con el mismo estilo inline en ambos estados). */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.12; letter-spacing: -0.01em; font-family: var(--serif); font-weight: 600; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: #fff; }
input, textarea, select { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem;
  background: var(--ink); color: var(--bg); z-index: 9999; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
.container--narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font: 600 .78rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: .5rem .8rem; border-radius: 100px;
}
.center { text-align: center; }
.stack { display: flex; flex-direction: column; }
.badge-demo {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--warn-soft); color: var(--warn); border: 1px solid rgba(146,98,10,.25);
  font: 600 .82rem/1.3 var(--sans); padding: .55rem .9rem; border-radius: 10px;
}
.badge-demo::before { content: "⚠"; }

/* =============================================================
   4. Typography
   ============================================================= */
.h-display { font-size: clamp(2.3rem, 4.6vw, 3.6rem); max-width: 20ch; }
.h-section { font-size: clamp(1.6rem, 3vw, 2.3rem); max-width: 22ch; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 56ch; }
.muted { color: var(--mute); }

/* =============================================================
   5. Components
   ============================================================= */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 10px; font-weight: 600; font-size: .95rem;
  transition: transform .18s var(--ease-out), background .18s var(--ease-out), box-shadow .18s var(--ease-out), border-color .18s var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--danger { background: transparent; color: var(--danger); border: 1px solid rgba(179,38,30,.35); }
.btn--danger:hover { background: var(--danger-soft); }
.btn--block { width: 100%; }
.btn--sm { padding: .55rem 1rem; font-size: .85rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .55rem; font: 700 1.15rem/1 var(--serif); color: var(--ink); }
.brand__mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--ink);
  display: grid; place-items: center; flex: none;
}
.brand__mark svg { width: 16px; height: 16px; }
.nav__links { display: none; gap: 1.6rem; align-items: center; font-size: .93rem; font-weight: 500; }
.nav__links a:hover { color: var(--accent); }
.nav__actions { display: flex; align-items: center; gap: .6rem; }
@media (min-width: 860px) { .nav__links { display: flex; } }

/* Credits pill */
.pill-creditos {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--accent-soft); color: var(--accent); border: 1px solid transparent;
  font-weight: 700; font-size: .88rem; padding: .5rem .85rem; border-radius: 100px;
}
.pill-creditos.is-low { background: var(--danger-soft); color: var(--danger); }
.pill-creditos__num { font-variant-numeric: tabular-nums; transition: transform .3s var(--ease-out); }
.pill-creditos.is-updating .pill-creditos__num { transform: scale(1.25); }

/* Cards */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.75rem; box-shadow: var(--shadow-sm);
}

/* Pricing */
.precios-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .precios-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan-card {
  display: flex; flex-direction: column; gap: 1.1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.9rem; box-shadow: var(--shadow-sm); position: relative;
}
.plan-card--destacado { border-color: var(--accent); box-shadow: var(--shadow-md); }
.plan-card__tag {
  position: absolute; top: -13px; left: 1.75rem; background: var(--accent); color: #fff;
  font: 700 .72rem/1 var(--sans); letter-spacing: .05em; text-transform: uppercase;
  padding: .4rem .7rem; border-radius: 100px;
}
.plan-card__nombre { font-size: 1.15rem; }
.plan-card__precio { display: flex; align-items: baseline; gap: .3rem; }
.plan-card__precio strong { font: 700 2.4rem/1 var(--serif); }
.plan-card__precio span { color: var(--mute); font-size: .95rem; }
.plan-card__creditos { font-size: .88rem; color: var(--accent); font-weight: 700; }
.plan-card__desc { color: var(--ink-soft); font-size: .92rem; }
.plan-card ul { display: flex; flex-direction: column; gap: .55rem; font-size: .9rem; color: var(--ink-soft); flex: 1; }
.plan-card li { display: flex; gap: .55rem; align-items: flex-start; }
.plan-card li::before { content: "✓"; color: var(--accent); font-weight: 700; flex: none; }

/* Before / after */
.demo-compare {
  display: grid; gap: 1.25rem; grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 760px) { .demo-compare { grid-template-columns: 1fr 1fr; } }
.demo-doc {
  background: #fff; color: #1a1a1a; border-radius: 10px; border: 1px solid var(--border);
  padding: 1.6rem; font-size: .78rem; line-height: 1.65; box-shadow: var(--shadow-md);
  font-family: var(--mono); position: relative;
}
.demo-doc__label {
  position: absolute; top: -12px; left: 1.2rem; background: var(--ink); color: var(--bg);
  font: 700 .68rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase;
  padding: .35rem .65rem; border-radius: 100px;
}
.demo-doc__label--after { background: var(--accent); }
.demo-doc .box { background: var(--black-box); color: transparent; border-radius: 2px; padding: 0 2px; user-select: none; }
.demo-doc h4 { font-family: var(--mono); font-size: .82rem; margin-bottom: .9rem; color: #111; }
.demo-doc dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem .7rem; margin-top: .8rem; }
.demo-doc dt { color: #6b7280; }
.demo-doc dd { font-weight: 600; }

/* Feature grid */
.feature-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem;
}
.feature__icon {
  width: 38px; height: 38px; border-radius: 9px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; flex: none;
}
.feature h3 { font-size: 1.02rem; }
.feature p { font-size: .9rem; color: var(--ink-soft); }

/* Steps */
.steps { display: grid; gap: 1.4rem; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { display: flex; flex-direction: column; gap: .6rem; counter-increment: step; }
.step::before {
  content: counter(step); width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: var(--bg); display: grid; place-items: center;
  font: 700 .9rem/1 var(--sans);
}
.step h3 { font-size: 1rem; }
.step p { font-size: .9rem; color: var(--ink-soft); }

/* Testimonial-ish audience strip */
.audience-strip { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.audience-chip {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 100px;
  padding: .5rem 1rem; font-size: .85rem; font-weight: 600; color: var(--ink-soft);
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: .7rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: clip; }
.faq-item summary {
  cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--mute); flex: none; transition: transform .2s var(--ease-out); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__body { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); font-size: .92rem; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding-block: 2.5rem; }
.footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer__col { display: flex; flex-direction: column; gap: .55rem; font-size: .88rem; }
.footer__col h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--mute); margin-bottom: .3rem; }
.footer__col a { color: var(--ink-soft); }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .82rem; color: var(--mute); }

/* =============================================================
   6. App shell (app.html / cuenta.html)
   ============================================================= */
.app-shell { min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }
.topbar {
  height: var(--nav-h); border-bottom: 1px solid var(--border); background: var(--surface);
  display: flex; align-items: center; position: sticky; top: 0; z-index: 50;
}
.topbar__inner { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-inline: 1.25rem; }
.topbar__right { display: flex; align-items: center; gap: .7rem; }
.user-menu { position: relative; }
.user-menu__btn {
  display: flex; align-items: center; gap: .5rem; padding: .4rem .7rem; border-radius: 100px;
  border: 1px solid var(--border); font-size: .85rem; font-weight: 600;
}
.user-menu__dropdown {
  position: absolute; right: 0; top: calc(100% + .5rem); background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-lg); min-width: 190px; padding: .4rem; display: none; flex-direction: column;
}
.user-menu.is-open .user-menu__dropdown { display: flex; }
.user-menu__dropdown a, .user-menu__dropdown button {
  text-align: left; padding: .6rem .7rem; border-radius: 8px; font-size: .88rem; width: 100%;
}
.user-menu__dropdown a:hover, .user-menu__dropdown button:hover { background: var(--surface-2); }

.app-main { flex: 1; }
.app-container { max-width: 1080px; margin-inline: auto; padding: 1.75rem 1.25rem 4rem; }

/* Dropzone */
.dropzone {
  border: 2px dashed var(--border); border-radius: var(--radius-lg); padding: clamp(2rem, 6vw, 3.5rem);
  display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center;
  background: var(--surface); transition: border-color .18s var(--ease-out), background .18s var(--ease-out);
}
.dropzone.is-dragover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; color: var(--accent); }
.dropzone[data-state="working"] .dropzone__icon,
.dropzone[data-state="uploading"] .dropzone__icon { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.dropzone p { color: var(--mute); font-size: .9rem; }
.dropzone input[type="file"] { display: none; }

/* Cost banner */
.cost-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.25rem; margin-block: 1.25rem;
}
.cost-banner strong { font-size: 1.05rem; }
.cost-banner.is-blocked { border-color: var(--danger); background: var(--danger-soft); }

/* Workspace: document viewer + detections panel */
.workspace { display: grid; gap: 1.25rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 980px) { .workspace { grid-template-columns: 1.5fr 1fr; } }

.viewer {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1rem; display: flex; flex-direction: column; gap: 1rem; align-items: center; max-height: 76vh; overflow: auto;
}
.viewer__toolbar { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; }
.page-wrap { position: relative; background: #fff; box-shadow: var(--shadow-md); line-height: 0; }
.page-wrap canvas { display: block; max-width: 100%; height: auto; }
.page-wrap__label {
  position: absolute; top: -11px; left: 10px; background: var(--ink); color: var(--bg);
  font: 700 .68rem/1 var(--sans); padding: .3rem .55rem; border-radius: 100px; z-index: 3;
}
.redbox {
  position: absolute; background: var(--black-box); cursor: pointer; opacity: .96;
  transition: opacity .15s var(--ease-out), outline-color .15s var(--ease-out);
  outline: 2px solid transparent; outline-offset: 1px;
}
.redbox:hover { outline-color: var(--accent); }
.redbox.is-off { background: transparent; border: 1.5px dashed var(--danger); opacity: 1; }
.redbox.is-manual { outline: 1.5px dashed var(--accent); outline-offset: 2px; }
.manual-draw-layer { position: absolute; inset: 0; z-index: 4; cursor: crosshair; display: none; touch-action: none; }
.manual-draw-layer.is-active { display: block; }
.manual-rect-ghost { position: absolute; border: 2px dashed var(--accent); background: rgba(47,165,131,.18); pointer-events: none; }

.detecciones-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.4rem; display: flex; flex-direction: column; gap: 1rem; max-height: 76vh; overflow: auto; position: sticky; top: calc(var(--nav-h) + 1rem);
}
.detecciones-panel__head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.detecciones-panel__head h2 { font-size: 1.05rem; }
.det-list { display: flex; flex-direction: column; gap: .5rem; }
.det-item {
  display: flex; align-items: center; gap: .7rem; padding: .65rem .8rem; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface);
}
.det-item.is-off { opacity: .55; }
.det-item.is-not-found { border-color: var(--warn); background: var(--warn-soft); }
.det-tag {
  font: 700 .68rem/1 var(--sans); text-transform: uppercase; letter-spacing: .03em;
  background: var(--surface-2); color: var(--ink-soft); padding: .3rem .5rem; border-radius: 6px; flex: none;
}
.det-item__texto { flex: 1; font-size: .86rem; font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.det-item__page { font-size: .74rem; color: var(--mute); flex: none; }
.switch { position: relative; width: 38px; height: 22px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch__track { position: absolute; inset: 0; background: var(--border); border-radius: 100px; transition: background .18s var(--ease-out); }
.switch__thumb { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .18s var(--ease-out); }
.switch input:checked + .switch__track { background: var(--accent); }
.switch input:checked + .switch__track + .switch__thumb { transform: translateX(16px); }
.det-item__del { flex: none; color: var(--mute); font-size: 1rem; padding: .2rem .35rem; border-radius: 6px; }
.det-item__del:hover { color: var(--danger); background: var(--danger-soft); }

.empty-state { text-align: center; padding: 2rem 1rem; color: var(--mute); font-size: .9rem; }

/* Toast (invariant 12 — never alert()) */
.toast-stack { position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 200; display: flex; flex-direction: column; gap: .6rem; max-width: min(360px, calc(100vw - 2.5rem)); }
.toast {
  background: var(--ink); color: var(--bg); padding: .9rem 1.1rem; border-radius: 10px; font-size: .87rem;
  box-shadow: var(--shadow-lg); display: flex; gap: .7rem; align-items: flex-start;
  animation: toast-in .25s var(--ease-out);
}
.toast--error { background: var(--danger); color: #fff; }
.toast--ok { background: var(--ok); color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Modals (native <dialog>) */
dialog.modal { border: 0; border-radius: var(--radius-lg); padding: 0; width: min(440px, 92vw); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
dialog.modal::backdrop { background: rgba(10,12,15,.55); backdrop-filter: blur(2px); }
.modal__body { padding: 1.9rem; display: flex; flex-direction: column; gap: 1.1rem; }
.modal__close { position: absolute; top: 1rem; right: 1rem; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--mute); }
.modal__close:hover { background: var(--surface-2); }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .85rem; font-weight: 600; }
.field input, .field select { padding: .75rem .9rem; border-radius: 9px; border: 1px solid var(--border); background: var(--bg); color: var(--ink); }
.field input:focus, .field select:focus { border-color: var(--accent); }
.field small { color: var(--mute); font-size: .78rem; }
.form-error { color: var(--danger); font-size: .85rem; min-height: 1.2em; }
.modal__switch-mode { font-size: .85rem; color: var(--mute); text-align: center; }
.modal__switch-mode button { color: var(--accent); font-weight: 600; }
.fake-card { display: flex; flex-direction: column; gap: .6rem; background: var(--surface-2); border: 1px dashed var(--border); border-radius: 10px; padding: 1rem; font-family: var(--mono); font-size: .85rem; color: var(--mute); }

/* Account page */
.cuenta-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .cuenta-grid { grid-template-columns: 1.1fr 1.6fr; } }
.resumen-plan { display: flex; flex-direction: column; gap: 1rem; }
.resumen-plan__creditos { font: 700 2.6rem/1 var(--serif); }
.progress { height: 8px; border-radius: 100px; background: var(--surface-2); overflow: hidden; }
.progress__bar { height: 100%; background: var(--accent); border-radius: inherit; transition: width .4s var(--ease-out); }
.historial-table { width: 100%; border-collapse: collapse; font-size: .87rem; }
.historial-table th { text-align: left; color: var(--mute); font-weight: 600; padding: .6rem .5rem; border-bottom: 1px solid var(--border); font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; }
.historial-table td { padding: .65rem .5rem; border-bottom: 1px solid var(--border); }
.historial-table tr:last-child td { border-bottom: 0; }
.coste-neg { color: var(--danger); font-weight: 600; }
.coste-pos { color: var(--ok); font-weight: 600; }

/* Legal pages */
.legal-doc { display: flex; flex-direction: column; gap: 1.4rem; max-width: 720px; }
.legal-doc h2 { font-size: 1.25rem; margin-top: .6rem; }
.legal-doc p, .legal-doc li { color: var(--ink-soft); font-size: .95rem; }
.legal-doc ul { list-style: disc; padding-left: 1.3rem; display: flex; flex-direction: column; gap: .4rem; }
.legal-doc .updated { color: var(--mute); font-size: .85rem; }

/* =============================================================
   7. Effects
   ============================================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .dropzone[data-state] .dropzone__icon { animation: none; }
}

/* =============================================================
   8. Responsive helpers already inlined above per component
   ============================================================= */
@media (max-width: 639px) {
  .footer__grid { flex-direction: column; }
}
