/* ============ Ruta Clara — sistema de diseño ============ */
:root {
  --bg: #f5f0e8;
  --surface: #fbf8f2;
  --surface-2: #efe8dc;
  --ink: #1f1b16;
  --ink-2: #5b5249;
  --ink-3: #7a7065;
  --line: #ddd3c3;
  --line-strong: #c7baa5;
  --accent: #c8623b;
  --accent-ink: #a5471f;
  --accent-btn: #b5532d;
  --accent-btn-hover: #9e4724;
  --accent-soft: #f4dccf;
  --on-accent: #ffffff;
  --teal: #1f4d4a;
  --teal-ink: #1f4d4a;
  --teal-soft: #d9e7e2;
  --on-teal: #f5f0e8;
  --amber-ink: #7d5200;
  --amber-soft: #f6e6bd;
  --red-ink: #983731;
  --red-soft: #f3d8d2;
  --blue-ink: #2f5680;
  --blue-soft: #dbe5ef;
  --stone-ink: #5b5249;
  --stone-soft: #e9e1d3;
  --focus: #1f6fb5;
  --shadow-sm: 0 1px 2px rgb(60 40 20 / .06), 0 1px 1px rgb(60 40 20 / .04);
  --shadow: 0 8px 24px -8px rgb(60 40 20 / .16), 0 2px 6px rgb(60 40 20 / .06);
  --shadow-lg: 0 24px 56px -16px rgb(60 40 20 / .28), 0 4px 12px rgb(60 40 20 / .08);
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --font-serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --logo-ink: #fbf3e6;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #16120f; --surface: #1e1915; --surface-2: #28221c; --ink: #f2ebe0; --ink-2: #b9ad9c; --ink-3: #988c7c;
    --line: #38302a; --line-strong: #4f453b; --accent: #e07a52; --accent-ink: #f09a78; --accent-btn: #e07a52;
    --accent-btn-hover: #ea8c67; --accent-soft: #3b2418; --on-accent: #1a0f09; --teal: #12302e; --teal-ink: #8fd3c7;
    --teal-soft: #1b3836; --on-teal: #f2ebe0; --amber-ink: #f0c766; --amber-soft: #382d12; --red-ink: #f2a59b;
    --red-soft: #3a1f1c; --blue-ink: #9db9da; --blue-soft: #1e2c3c; --stone-ink: #b9ad9c; --stone-soft: #2c261f;
    --focus: #6cb4f0; --shadow-sm: 0 1px 2px rgb(0 0 0 / .4); --shadow: 0 8px 24px -8px rgb(0 0 0 / .6);
    --shadow-lg: 0 24px 56px -16px rgb(0 0 0 / .7); --logo-ink: #1a0f09; color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #16120f; --surface: #1e1915; --surface-2: #28221c; --ink: #f2ebe0; --ink-2: #b9ad9c; --ink-3: #988c7c;
  --line: #38302a; --line-strong: #4f453b; --accent: #e07a52; --accent-ink: #f09a78; --accent-btn: #e07a52;
  --accent-btn-hover: #ea8c67; --accent-soft: #3b2418; --on-accent: #1a0f09; --teal: #12302e; --teal-ink: #8fd3c7;
  --teal-soft: #1b3836; --on-teal: #f2ebe0; --amber-ink: #f0c766; --amber-soft: #382d12; --red-ink: #f2a59b;
  --red-soft: #3a1f1c; --blue-ink: #9db9da; --blue-soft: #1e2c3c; --stone-ink: #b9ad9c; --stone-soft: #2c261f;
  --focus: #6cb4f0; --shadow-sm: 0 1px 2px rgb(0 0 0 / .4); --shadow: 0 8px 24px -8px rgb(0 0 0 / .6);
  --shadow-lg: 0 24px 56px -16px rgb(0 0 0 / .7); --logo-ink: #1a0f09; color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; min-height: 100vh;
  display: flex; flex-direction: column; overflow-x: clip;
}
main { flex: 1; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.2rem + 4.6vw, 4rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.65rem, 1.1rem + 2.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img, svg, video { max-width: 100%; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.25em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--on-accent); }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; z-index: 100; transition: top .15s; }
.skip:focus { top: 12px; }
.eyebrow { font: 600 .8125rem/1 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.lead { font-size: clamp(1.05rem, .95rem + .5vw, 1.25rem); color: var(--ink-2); max-width: 56ch; }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.hide { display: none !important; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: 0 1.35rem;
  border-radius: 999px; border: 1.5px solid transparent; font: 600 1rem/1 var(--font-sans); cursor: pointer; text-decoration: none;
  transition: background-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s; white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--accent-btn); color: var(--on-accent); box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--accent-btn) 70%, transparent); }
.btn-primary:hover { background: var(--accent-btn-hover); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--surface-2); border-color: var(--ink-3); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-lg { min-height: 56px; padding: 0 1.75rem; font-size: 1.0625rem; }
.btn-sm { min-height: 44px; padding: 0 1.1rem; font-size: .9375rem; }
.btn[disabled], .btn[aria-busy='true'] { opacity: .6; cursor: not-allowed; pointer-events: none; }
.btn .ic { transition: transform .2s var(--ease); }
.btn:hover .ic-go { transform: translateX(3px); }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 999px; border: 1.5px solid var(--line);
  background: transparent; color: var(--ink); cursor: pointer; transition: background-color .18s, border-color .18s;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--line-strong); }

/* ---------- Header / footer ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; min-height: 44px; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name { font: 600 1.35rem/1 var(--font-serif); letter-spacing: -.02em; }
.brand-name em { font-style: italic; color: var(--accent-ink); font-weight: 500; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 10px 14px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 550; min-height: 44px; display: inline-flex; align-items: center; transition: background-color .15s, color .15s; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current='page'] { color: var(--ink); background: var(--surface-2); }
.bar-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; }
@media (max-width: 859px) {
  .menu-btn { display: inline-grid; }
  .bar-actions .btn { display: none; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px clamp(16px, 4vw, 32px) 16px; box-shadow: var(--shadow); display: none; }
  .nav.open { display: flex; animation: drop .2s var(--ease); }
  .nav a { padding: 14px 16px; font-size: 1.0625rem; }
  .nav .nav-cta { display: inline-flex; margin-top: 8px; }
}
@media (min-width: 860px) { .nav-cta { display: none !important; } }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

.site-footer { margin-top: 96px; background: var(--surface-2); border-top: 1px solid var(--line); padding: 48px 0 32px; color: var(--ink-2); font-size: .9375rem; }
.foot-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1.3fr; } }
.site-footer h4 { font: 600 .8125rem/1 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer li a { display: inline-block; padding: 8px 0; color: var(--ink-2); min-height: 44px; }
.foot-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--ink-3); }

/* ---------- Tarjetas, avisos, chips ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow-sm); }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--amber-soft); color: var(--amber-ink); border-radius: var(--r); font-size: .9375rem; }
.notice .ic { margin-top: 2px; }
.notice.info { background: var(--blue-soft); color: var(--blue-ink); }
.notice.ok { background: var(--teal-soft); color: var(--teal-ink); }
.notice.err { background: var(--red-soft); color: var(--red-ink); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 600 .75rem/1.2 var(--font-sans); letter-spacing: .02em; white-space: nowrap; background: var(--stone-soft); color: var(--stone-ink); }
.chip-muy { background: var(--red-soft); color: var(--red-ink); }
.chip-grave { background: var(--amber-soft); color: var(--amber-ink); }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 10px; border-radius: 999px; font: 600 .8125rem/1.2 var(--font-sans); white-space: nowrap; background: var(--stone-soft); color: var(--stone-ink); }
.badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.badge[data-estado='en_revision'] { background: var(--amber-soft); color: var(--amber-ink); }
.badge[data-estado='validada'] { background: var(--teal-soft); color: var(--teal-ink); }
.badge[data-estado='rechazada'] { background: var(--red-soft); color: var(--red-ink); }
.badge[data-estado='derivada'] { background: var(--blue-soft); color: var(--blue-ink); }
.badge[data-estado='cerrada'] { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); color: var(--ink-2); }

/* ---------- Formularios ---------- */
.field { display: grid; gap: 6px; }
.field > label, .label { font-weight: 600; font-size: .9375rem; }
.req { color: var(--accent-ink); }
.hint { font-size: .875rem; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--r-sm); border: 1.5px solid var(--line-strong); background: var(--surface);
  color: var(--ink); font: inherit; font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 132px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-3); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 28%, transparent); }
.input[aria-invalid='true'], .textarea[aria-invalid='true'] { border-color: var(--red-ink); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 38px; }
.err { color: var(--red-ink); font-size: .875rem; font-weight: 550; display: flex; gap: 6px; align-items: flex-start; }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.row { display: grid; gap: 16px; }
@media (min-width: 640px) { .row.two { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 6px 0; }
.check input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--accent-btn); flex: none; }

/* ---------- Animaciones sobrias ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Páginas de contenido ---------- */
.page-head { padding: clamp(32px, 6vw, 64px) 0 clamp(20px, 3vw, 32px); display: grid; gap: 14px; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section-head { display: grid; gap: 12px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 680px; }

/* Hero */
.hero { position: relative; padding: clamp(36px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); }
.hero::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 100%; background: radial-gradient(60% 70% at 85% 10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), radial-gradient(50% 60% at 0% 90%, color-mix(in srgb, var(--teal-ink) 10%, transparent), transparent 70%); pointer-events: none; z-index: -1; }
.hero-grid { display: grid; gap: clamp(36px, 6vw, 64px); align-items: center; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.hero h1 { margin: 18px 0 20px; }
.hl { position: relative; white-space: normal; font-style: italic; font-weight: 500; color: var(--accent-ink); background: linear-gradient(transparent 82%, color-mix(in srgb, var(--accent) 28%, transparent) 82% 94%, transparent 94%); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.cta-row .btn { flex: 1 1 auto; }
@media (min-width: 520px) { .cta-row .btn { flex: 0 0 auto; } }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-2); font-size: .9375rem; font-weight: 550; }
.trust span { display: inline-flex; gap: 8px; align-items: center; }
.trust .ic { color: var(--teal-ink); }

.demo { position: relative; padding: 6px; max-width: 440px; width: 100%; margin-inline: auto; }
.demo-card { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-lg); padding: 22px; transform: rotate(1.6deg); }
.demo-map { height: 150px; border-radius: 16px; margin-bottom: 18px; background: var(--surface-2); position: relative; overflow: hidden; }
.demo-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo-code-label { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.demo-code { font: 600 clamp(1.5rem, 6vw, 2rem)/1.1 var(--font-serif); letter-spacing: .04em; margin: 4px 0 16px; font-variant-numeric: tabular-nums; }
.demo-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.demo-steps li { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 9px 0; font-size: .9375rem; position: relative; }
.demo-steps li + li::before { content: ''; position: absolute; left: 10px; top: -9px; height: 18px; width: 2px; background: var(--line-strong); }
.demo-steps .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-ink); }
.demo-steps .dot .ic { width: 13px; height: 13px; stroke-width: 2.5; }
.demo-steps .now .dot { background: var(--amber-soft); color: var(--amber-ink); box-shadow: 0 0 0 5px color-mix(in srgb, var(--amber-ink) 14%, transparent); }
.demo-steps .next { color: var(--ink-3); }
.demo-steps .next .dot { background: var(--stone-soft); color: var(--ink-3); }
.demo-steps time { font-size: .8125rem; color: var(--ink-3); }
.demo-tag { position: absolute; right: -4px; top: -14px; background: var(--teal); color: var(--on-teal); padding: 8px 14px; border-radius: 999px; font-size: .8125rem; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; box-shadow: var(--shadow); transform: rotate(-3deg); }

/* Datos de la encuesta */
.stats-band { background: var(--teal); color: var(--on-teal); border-radius: clamp(20px, 4vw, 36px); padding: clamp(28px, 5vw, 56px); }
.stats-band .eyebrow { color: color-mix(in srgb, var(--on-teal) 70%, var(--teal)); }
.stats-band h2 { max-width: 20ch; margin: 12px 0 clamp(24px, 4vw, 44px); }
.stats-grid { display: grid; gap: 28px 24px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .stats-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { border-top: 1.5px solid color-mix(in srgb, var(--on-teal) 30%, transparent); padding-top: 16px; }
.stat b { display: block; font: 600 clamp(2.6rem, 2rem + 3vw, 3.75rem)/1 var(--font-serif); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 10px; color: color-mix(in srgb, var(--on-teal) 85%, var(--teal)); max-width: 24ch; }
.stats-src { margin-top: 28px; font-size: .8125rem; opacity: .75; }

/* Pasos */
.steps { display: grid; gap: 20px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.step { position: relative; padding: 24px 22px 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.step .n { font: 500 3.25rem/1 var(--font-serif); color: var(--accent); font-style: italic; margin-bottom: 14px; display: block; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-2); }

/* Tipos */
.tipos-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tipos-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .tipos-grid { grid-template-columns: repeat(3, 1fr); } }
.tipo { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.tipo:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.tipo strong { font: 600 1.125rem/1.25 var(--font-serif); }
.tipo .meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: auto; color: var(--ink-2); font-size: .875rem; }

.cta-band { background: var(--accent-soft); border-radius: clamp(20px, 4vw, 36px); padding: clamp(28px, 5vw, 56px); display: grid; gap: 24px; align-items: center; }
@media (min-width: 820px) { .cta-band { grid-template-columns: 1.4fr 1fr; } .cta-band .cta-row { justify-content: flex-end; margin: 0; } }
.cta-band .cta-row { margin: 0; }

/* ---------- Formulario de denuncia ---------- */
.form { display: grid; gap: 20px; margin: 28px 0 0; }
.step-card { display: grid; gap: 18px; min-width: 0; margin: 0; }
.step-card > legend { display: flex; gap: 12px; align-items: center; padding: 0; font: 600 1.375rem/1.2 var(--font-serif); margin-bottom: 18px; }
.step-card { gap: 0; }
.step-card > * + * { margin-top: 18px; }
.step-card > legend + * { margin-top: 0; }
.num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font: 600 1rem/1 var(--font-sans); flex: none; }
.opts { display: grid; gap: 10px; }
.opt { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; padding: 14px 16px; border: 1.5px solid var(--line-strong); border-radius: var(--r); background: var(--surface); cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s; min-height: 56px; }
.opt:hover { border-color: var(--ink-3); }
.opt input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent-btn); }
.opt:has(input:checked) { border-color: var(--accent-btn); background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.opt:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.opt-body { display: grid; gap: 6px; min-width: 0; }
.opt-body strong { font-weight: 600; line-height: 1.3; }
.opt-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .8125rem; color: var(--ink-2); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px; background: var(--surface-2); border-radius: var(--r); }
.seg label { display: flex; gap: 8px; align-items: center; justify-content: center; text-align: center; padding: 10px 8px; min-height: 52px; border-radius: 11px; cursor: pointer; font-weight: 600; color: var(--ink-2); transition: background-color .15s, color .15s, box-shadow .15s; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.loc-row { display: grid; gap: 10px; }
@media (min-width: 560px) { .loc-row { grid-template-columns: 1fr auto; } }
.counter { text-align: right; font-size: .8125rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.counter.warn { color: var(--red-ink); font-weight: 600; }
.upload { display: grid; gap: 12px; }
.drop { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 18px; border: 1.5px dashed var(--line-strong); border-radius: var(--r); color: var(--ink-2); font-weight: 600; cursor: pointer; min-height: 64px; text-align: center; transition: border-color .15s, background-color .15s, color .15s; background: transparent; width: 100%; font-family: inherit; font-size: 1rem; }
.drop:hover, .drop:focus-visible { border-color: var(--accent-btn); color: var(--accent-ink); background: color-mix(in srgb, var(--accent-soft) 40%, transparent); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.thumbs:empty { display: none; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgb(20 14 10 / .75); color: #fff; display: grid; place-items: center; cursor: pointer; }
.thumb button::after { content: ''; position: absolute; inset: -6px; }
.filechip { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
.filechip span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9375rem; }
.submit-bar { display: grid; gap: 12px; }
.submit-bar .btn { width: 100%; }
@media (min-width: 640px) { .submit-bar .btn { width: auto; justify-self: start; min-width: 260px; } }

.success { text-align: center; display: grid; gap: 18px; justify-items: center; padding-block: clamp(28px, 6vw, 56px); }
.success .seal { width: 84px; height: 84px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-ink); display: grid; place-items: center; animation: pop .5s var(--ease) both; }
.success .seal .ic { width: 42px; height: 42px; stroke-width: 2.2; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.codebox { display: grid; gap: 10px; justify-items: center; width: 100%; max-width: 460px; padding: 22px 18px; border: 2px dashed var(--accent); border-radius: var(--r-lg); background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); }
.codebox output { font: 600 clamp(1.7rem, 7.5vw, 2.6rem)/1.1 var(--font-serif); letter-spacing: .05em; font-variant-numeric: tabular-nums; user-select: all; word-break: break-all; }

/* ---------- Seguimiento ---------- */
.lookup { display: grid; gap: 12px; }
@media (min-width: 560px) { .lookup { grid-template-columns: 1fr auto; align-items: start; } }
.lookup .input { font: 600 1.25rem/1 var(--font-serif); letter-spacing: .06em; text-transform: uppercase; min-height: 56px; }
.result { display: grid; gap: 28px; margin-top: 28px; }
.status-head { display: grid; gap: 12px; }
.status-head h2 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.25rem); }
.dl { display: grid; gap: 14px 24px; grid-template-columns: 1fr; margin: 0; }
@media (min-width: 560px) { .dl { grid-template-columns: 1fr 1fr; } }
.dl > div { min-width: 0; }
.dl dt { font-size: .8125rem; color: var(--ink-3); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.dl dd { margin: 2px 0 0; font-weight: 550; overflow-wrap: anywhere; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tl { display: grid; grid-template-columns: 26px 1fr; gap: 14px; position: relative; padding-bottom: 24px; }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: ''; position: absolute; left: 12px; top: 26px; bottom: 0; width: 2px; background: var(--line-strong); }
.tl:last-child::before { display: none; }
.tl .pt { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--stone-soft); color: var(--stone-ink); position: relative; z-index: 1; }
.tl .pt::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.tl[data-estado='en_revision'] .pt { background: var(--amber-soft); color: var(--amber-ink); }
.tl[data-estado='validada'] .pt { background: var(--teal-soft); color: var(--teal-ink); }
.tl[data-estado='rechazada'] .pt { background: var(--red-soft); color: var(--red-ink); }
.tl[data-estado='derivada'] .pt { background: var(--blue-soft); color: var(--blue-ink); }
.tl-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.tl-head strong { font-weight: 650; }
.tl-head time { color: var(--ink-3); font-size: .875rem; font-variant-numeric: tabular-nums; }
.tl p { margin-top: 4px; color: var(--ink-2); overflow-wrap: anywhere; }
.tl.last .pt { box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 16%, transparent); }

/* ---------- Acerca ---------- */
.team { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .team { grid-template-columns: 1fr 1fr; } }
.team li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); font-weight: 550; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font: 600 1rem/1 var(--font-serif); flex: none; }
.prose { display: grid; gap: 16px; max-width: 68ch; color: var(--ink-2); }
.prose strong { color: var(--ink); }
.pills { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.pills li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.pills .ic-wrap { width: 40px; height: 40px; border-radius: 12px; background: var(--teal-soft); color: var(--teal-ink); display: grid; place-items: center; }

/* 404 */
.nf { text-align: center; display: grid; gap: 18px; justify-items: center; padding: clamp(48px, 10vw, 120px) 0; }
.nf big { font: 500 italic clamp(5rem, 24vw, 11rem)/1 var(--font-serif); color: var(--accent); letter-spacing: -.04em; }
.nf .cta-row { justify-content: center; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-weight: 600; box-shadow: var(--shadow-lg); z-index: 200; animation: rise .25s var(--ease); max-width: calc(100vw - 32px); }

/* ---------- Utilidades (sin estilos en línea por la CSP) ---------- */
.d1 { --i: 1; } .d2 { --i: 2; } .d3 { --i: 3; } .d4 { --i: 4; } .d5 { --i: 5; }
.pt0 { padding-top: 0; } .pt-s { padding-top: clamp(16px, 3vw, 32px); } .pb0 { padding-bottom: 0; }
.h1-page { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.2rem); }
.h1-nf { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 2.8rem); }
.foot-blurb { margin-top: 14px; max-width: 34ch; }
.list-reset { list-style: none; padding: 0; margin: 0; }
.mt-10 { margin-top: 10px; } .mt-16 { margin-top: 16px; } .mt-18 { margin-top: 18px; } .mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }
.fw-n { font-weight: 400; }
.span-all { grid-column: 1 / -1; }
.note-left { text-align: left; max-width: 460px; }
.center { justify-content: center; }
.team-sub { margin: 10px 0 20px; }
.err.soft { color: var(--amber-ink); }
.mt-0 { margin-top: 0; }
