/* BomberAPP · hoja de respuestas */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #FFFFFF;
  --ink: #FF5A36;          /* tinta de impresión: filetes, casillas, burbujas, texto grande */
  --ink-deep: #C23B1E;     /* la misma tinta para texto pequeño (5,3:1) */
  --ink-tint: #FFF1EC;     /* fondo de casilla */
  --ink-hair: #FFC9BA;     /* filete fino entre filas */
  --graphite: #1F2328;     /* lápiz */
  --graphite-2: #5B6372;
  --ok: #15803D;           /* corrección */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 3vw, 32px);
  --pad-x: clamp(20px, 4vw, 44px);
  --sheet: min(1280px, 100% - 2 * var(--gutter));
  --track-w: 0px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

@media (min-width: 1100px) {
  :root { --track-w: 64px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  scrollbar-color: var(--ink) var(--ink-tint);
  -webkit-text-size-adjust: 100%;
}

body:has(> .track) { padding-left: var(--track-w); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 420;
  font-stretch: 100%;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--ink);
}

::selection { background: #FFD3C6; color: var(--graphite); }

img { max-width: 100%; height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--graphite); outline-offset: 3px; }

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.num, td, .value { font-variant-numeric: tabular-nums; }

.sr-only {
  position: absolute; 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: -9999px; top: 8px; z-index: 100;
  background: var(--graphite); color: var(--paper);
  padding: 10px 14px; font-weight: 650; text-decoration: none;
}
.skip:focus { left: 16px; }

/* Etiqueta de casilla impresa */
.label {
  display: block;
  font-size: .75rem;
  font-weight: 650;
  font-stretch: 72%;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--ink-deep);
}

/* ---------- Marcas de sincronismo (navegación lateral) ---------- */

.track { display: none; }

/* Por debajo de 1100px las marcas quedan como tira fija y decorativa en el margen */
@media (max-width: 1099px) {
  body:has(> .track)::before {
    content: ""; position: fixed; z-index: 30; left: 3px; top: 0; bottom: 0; width: 8px;
    pointer-events: none;
    background: repeating-linear-gradient(to bottom, transparent 0 15px, var(--graphite) 15px 19px);
  }
}

@media (min-width: 1100px) {
  .track {
    position: fixed; z-index: 30; left: 0; top: 0; bottom: 0;
    width: var(--track-w);
    display: flex; flex-direction: column; justify-content: center;
    gap: clamp(28px, 7vh, 72px);
    padding-left: 18px;
    background:
      repeating-linear-gradient(to bottom, transparent 0 15px, var(--graphite) 15px 19px)
      18px 0 / 12px 100% no-repeat;
  }
  .track a {
    position: relative; display: block;
    width: 28px; height: 10px;
    background: var(--graphite);
    transition: width .3s var(--ease), background-color .3s var(--ease);
  }
  .track a::before { content: ""; position: absolute; inset: -12px -10px; }
  .track a span {
    position: absolute; left: 44px; top: 50%; transform: translateY(-50%);
    white-space: nowrap; background: var(--graphite); color: var(--paper);
    font-size: .8125rem; font-weight: 650; line-height: 1; padding: 6px 9px;
    opacity: 0; pointer-events: none; transition: opacity .15s;
  }
  .track a:hover span, .track a:focus-visible span { opacity: 1; }
  .track a.is-current { width: 40px; background: var(--ink); }
}

/* ---------- Cabecera ---------- */

.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.top-in {
  width: var(--sheet); margin-inline: auto;
  min-height: 64px;
  display: flex; align-items: center; gap: 12px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-size: 1.375rem; font-weight: 850; letter-spacing: -.02em;
}
.brand img { width: 34px; height: 34px; }
.top-nav { display: none; }
.top-play {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--graphite);
  padding: 10px 16px; min-height: 44px;
  font-weight: 750; font-size: .9375rem; text-decoration: none;
  transition: background-color .2s, color .2s;
}
.top-play:hover { background: var(--graphite); color: var(--paper); }
.top-play svg, .down svg, .hand-in svg {
  fill: none; stroke: currentColor; stroke-width: 2.25;
  stroke-linecap: square; stroke-linejoin: miter;
}
.top-play svg { width: 18px; height: 18px; }

@media (min-width: 860px) {
  .top-nav {
    display: flex; list-style: none; margin: 0 0 0 auto; padding: 0; gap: 4px;
  }
  .top-nav a {
    display: block; padding: 8px 12px;
    font-weight: 600; font-size: .9375rem; text-decoration: none;
  }
  .top-nav a:hover { text-decoration: underline; text-decoration-color: var(--ink); }
  .top-nav + .top-play { margin-left: 12px; }
}

/* ---------- Hoja ---------- */

.sheet {
  width: var(--sheet);
  margin: clamp(16px, 3vw, 32px) auto 0;
  border: 2px solid var(--ink);
}

/* Fila de casillas de datos */
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--ink);
  border-bottom: 2px solid var(--ink);
}
.field { background: var(--paper); padding: 10px 14px 12px; }
.field .value {
  display: block; margin-top: 4px;
  font-size: .9375rem; font-weight: 620; line-height: 1.3;
}
@media (min-width: 900px) {
  .fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .field { padding: 12px 18px 14px; }
  .field .value { font-size: 1.0625rem; }
}

/* Primera vista */
.hero {
  display: grid;
  border-bottom: 2px solid var(--ink);
}
.hero-copy { padding: clamp(24px, 3vw, 40px) var(--pad-x) clamp(24px, 2.6vw, 34px); }
.hero h1 {
  margin: 0 0 .35em;
  font-size: clamp(2.5rem, 1.05rem + 4.4vw, 5.25rem);
  font-weight: 860;
  font-stretch: 110%;
  line-height: .94;
  letter-spacing: -.035em;
  max-width: 13ch;
}
.lede {
  margin: 0;
  max-width: 62ch;
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.5;
}
.down {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px;
  color: var(--ink-deep); font-weight: 680;
}
.down svg { width: 20px; height: 20px; }

/* Casilla «Entregar»: la acción principal */
.hand-in {
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  background: var(--ink); color: var(--graphite);
  padding: 18px var(--pad-x) 22px;
  text-decoration: none;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.hand-in .label { color: var(--graphite); }
.hand-in-main {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  font-size: clamp(1.625rem, 1rem + 1.7vw, 2.5rem);
  font-weight: 820; line-height: 1.02; letter-spacing: -.02em;
}
.hand-in-main svg { flex: none; width: clamp(32px, 3vw, 44px); height: clamp(32px, 3vw, 44px); }
.hand-in-note { font-size: .9375rem; font-weight: 560; line-height: 1.35; }
.hand-in:hover { background: var(--graphite); color: var(--paper); }
.hand-in:hover .label { color: var(--ink); }

@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(300px, 33%); }
  .hero .hand-in { border-left: 2px solid var(--ink); padding-top: 22px; }
  .hero .down { display: none; }
  .sheet { margin-top: 20px; }
}

/* Móvil: casillas y «Entregar» más compactos para que la primera pregunta asome antes */
@media (max-width: 899px) {
  .field { padding: 8px 12px 10px; }
  .field .value { font-size: .875rem; margin-top: 2px; }
  .hero .hand-in { gap: 10px; padding-top: 14px; padding-bottom: 16px; }
  .hero .hand-in-main { font-size: 1.5rem; }
  .down { margin-top: 16px; }
}

/* ---------- Bloques ---------- */

.block { border-bottom: 2px solid var(--ink); }

.band {
  display: grid; gap: 6px 32px;
  background: var(--ink-tint);
  border-bottom: 1px solid var(--ink);
  padding: 16px var(--pad-x) 14px;
}
.band h2 {
  margin: 0;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
  font-weight: 800; font-stretch: 76%;
  line-height: 1; letter-spacing: .005em;
  text-transform: uppercase;
  color: var(--ink-deep);
}
.band p { margin: 0; max-width: 72ch; font-size: 1rem; }
@media (min-width: 900px) {
  .band { grid-template-columns: minmax(0, auto) minmax(0, 1fr); align-items: baseline; }
}

/* ---------- Preguntas ---------- */

.answers { list-style: none; margin: 0; padding: 0; }

.q {
  display: grid;
  grid-template-columns: clamp(44px, 6vw, 88px) minmax(0, 1fr);
  border-bottom: 1px solid var(--ink);
}
.q-num {
  border-right: 1px solid var(--ink);
  display: flex; justify-content: center;
  padding-top: 16px;
  font-size: clamp(1.625rem, 1.1rem + 1.6vw, 2.75rem);
  font-weight: 800; font-stretch: 75%; line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.q fieldset {
  border: 0; margin: 0; min-width: 0;
  padding: 18px clamp(14px, 3vw, 32px) 20px;
}
.q legend { float: left; width: 100%; padding: 0; margin-bottom: 14px; }
.q-topic { display: block; margin-bottom: 6px; }
.q-topic { font-size: .75rem; font-weight: 650; font-stretch: 72%; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-deep); }
.q-text {
  display: block; max-width: 62ch;
  font-size: clamp(1.0625rem, 1rem + .45vw, 1.375rem);
  font-weight: 620; line-height: 1.3;
}

.opts {
  clear: both;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 28px;
}
@media (min-width: 700px) {
  .opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.opt {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  min-height: 52px; padding: 6px 8px 6px 0;
  cursor: pointer;
}
.opt input, .plan-row input {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0;
}
.opt-text { line-height: 1.3; }

/* Burbuja: se rellena como a lápiz */
.bubble {
  position: relative; isolation: isolate; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--ink);
  display: grid; place-items: center;
  font-size: 1rem; font-weight: 700; font-stretch: 80%;
  color: var(--ink-deep);
  background: var(--paper);
  transition: border-color .2s, color .2s .1s;
}
.bubble::before {
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 50%;
  background:
    repeating-linear-gradient(118deg, rgba(255,255,255,.07) 0 1px, transparent 1px 3px),
    var(--graphite);
  clip-path: circle(0% at 30% 35%);
  transition: clip-path .38s var(--ease);
}
.opt:hover .bubble, .plan-row:hover .bubble { border-color: var(--graphite); }
input:checked + .bubble { border-color: var(--graphite); color: var(--paper); }
input:checked + .bubble::before { clip-path: circle(72% at 50% 50%); }
input:focus-visible + .bubble { outline: 3px solid var(--graphite); outline-offset: 3px; }

/* Corrección */
.q.is-done .opt { cursor: default; }
.q.is-done .opt:not(.is-correct):not(.is-wrong) { color: var(--graphite-2); }
.q.is-done .opt:hover .bubble { border-color: var(--ink); }
.q.is-done .opt.is-wrong:hover .bubble { border-color: var(--graphite); }
.opt.is-correct .bubble { outline: 3px solid var(--ok); outline-offset: 4px; }
.opt.is-correct .opt-text { font-weight: 680; }
.opt.is-correct.is-chosen .bubble { border-color: var(--graphite); }
.opt.is-wrong::after {
  content: ""; position: absolute; left: -6px; top: calc(50% - 1.5px);
  width: 52px; height: 3px; background: var(--ink-deep);
  transform: rotate(-45deg);
}

.verdict { margin: 0; font-weight: 620; }
.verdict:empty { display: none; }
.verdict { margin-top: 12px; }
.verdict .v-ok { color: var(--ok); }
.verdict .v-ko { color: var(--ink-deep); }
.verdict .v-hint { display: block; margin-top: 4px; font-weight: 450; color: var(--graphite-2); max-width: 70ch; }

/* Casillas de puntuación */
.score {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; background: var(--ink);
  border-top: 1px solid var(--ink);
}
.score .field { padding: 12px 18px 14px; }
.score .field .value {
  margin-top: 6px;
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 3rem);
  font-weight: 800; font-stretch: 88%; line-height: 1;
}
.score .field-grade { background: var(--ink-tint); }
.formula, .score-actions { grid-column: 1 / -1; background: var(--paper); margin: 0; }
.formula { padding: 14px 18px 0; font-size: .9375rem; color: var(--graphite-2); }
.formula { max-width: none; }
.score-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
  padding: 14px 18px 22px;
}
.erase {
  font: inherit; font-weight: 680; font-size: 1rem;
  background: var(--paper); color: var(--graphite);
  border: 2px solid var(--graphite);
  padding: 10px 16px; min-height: 44px; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.erase:hover:not(:disabled) { background: var(--graphite); color: var(--paper); }
.erase:disabled { border-color: #C4C8CE; color: #8A919C; cursor: not-allowed; }
.more { color: var(--ink-deep); font-weight: 680; }
@media (min-width: 760px) {
  .score { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .formula, .score-actions { padding-left: 22px; padding-right: 22px; }
}

/* ---------- Cómo funciona ---------- */

.modes { display: grid; }
.mode-list { list-style: none; margin: 0; padding: 0; }
.mode {
  display: grid; gap: 6px 32px;
  padding: 20px var(--pad-x) 22px;
  border-bottom: 1px solid var(--ink);
}
.mode:last-child { border-bottom: 0; }
.mode h3 {
  margin: 0;
  font-size: clamp(1.25rem, 1rem + .8vw, 1.625rem);
  font-weight: 800; font-stretch: 92%; line-height: 1.1; letter-spacing: -.01em;
}
.mode p { margin: 0; max-width: 60ch; }
.plan {
  display: flex; align-items: center; gap: 10px;
  margin-top: 4px !important;
  font-size: .9375rem; font-weight: 650;
}
.screen-cell { border-top: 1px solid var(--ink); }
.screen {
  margin: 0; padding: 28px 24px 32px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.screen img {
  display: block; width: 100%; max-width: 280px;
  border: 2px solid var(--graphite);
}
.screen figcaption { font-size: .75rem; font-weight: 650; font-stretch: 72%; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-deep); }
@media (min-width: 760px) {
  .mode { grid-template-columns: minmax(170px, 28%) minmax(0, 1fr); }
  .mode h3 { grid-row: span 2; }
}
@media (min-width: 1000px) {
  .modes { grid-template-columns: minmax(0, 1fr) minmax(280px, 30%); }
  .screen-cell { border-top: 0; border-left: 1px solid var(--ink); }
  .screen { position: sticky; top: 84px; }
}

/* ---------- Temario ---------- */

.syllabus { display: grid; }
.syl-block { padding: 22px var(--pad-x) 26px; }
.syl-block + .syl-block { border-top: 1px solid var(--ink); }
.syl-block h3 {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  margin: 0 0 6px; padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  font-size: 1.25rem; font-weight: 800; font-stretch: 92%; line-height: 1.1;
}
.syl-block h3 span { font-size: .75rem; font-weight: 650; font-stretch: 72%; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-deep); }
.topics { list-style: none; margin: 0; padding: 0; }
.topics li {
  display: grid; grid-template-columns: 3.1em minmax(0, 1fr); gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--ink-hair);
  line-height: 1.3; break-inside: avoid;
}
.topics b {
  font-weight: 760; font-stretch: 75%; color: var(--ink-deep);
  font-variant-numeric: tabular-nums;
}
@media (min-width: 620px) {
  .topics-2 { columns: 2; column-gap: 36px; }
}
@media (min-width: 1000px) {
  .syllabus { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .syl-block + .syl-block { border-top: 0; border-left: 1px solid var(--ink); }
}

/* ---------- Gratis o PRO ---------- */

.compare-wrap { padding: 22px var(--pad-x) 24px; border-bottom: 1px solid var(--ink); }
.compare { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .9375rem; }

/* En móvil cada fila de la tabla se apila: función arriba, Gratis y PRO lado a lado */
@media (max-width: 699px) {
  .compare thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
  }
  .compare, .compare tbody { display: block; }
  .compare tr {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    border-bottom: 1px solid var(--ink-hair);
    padding: 12px 0;
  }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare tbody th, .compare tbody td { border: 0; }
  .compare tbody th { grid-column: 1 / -1; padding: 0 0 8px; }
  .compare tbody td { padding: 6px 8px 8px 34px; }
  .compare td::before {
    content: attr(data-label); display: block; margin-bottom: 2px;
    font-size: .75rem; font-weight: 650; font-stretch: 72%;
    letter-spacing: .08em; text-transform: uppercase; color: var(--ink-deep);
  }
  .compare tbody td .mark { left: 8px; top: 25px; }
  .compare tbody td.price-cell { padding-left: 8px; }
}
.compare th, .compare td {
  text-align: left; vertical-align: middle;
  padding: 11px 8px; border-bottom: 1px solid var(--ink-hair);
}
.compare thead th {
  font-size: .75rem; font-weight: 650; font-stretch: 72%;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-deep);
  border-bottom: 2px solid var(--ink);
}
.compare thead th:first-child { width: 34%; }
.compare tbody th { font-weight: 650; }
.compare td:last-child, .compare thead th:last-child { background: var(--ink-tint); }
.compare td { position: relative; }
.compare td .mark { position: absolute; }
.compare .price-cell { font-size: 1.25rem; font-weight: 800; font-stretch: 90%; }
.compare tbody tr:last-child > * { border-bottom: 0; }
@media (min-width: 700px) {
  .compare { font-size: 1rem; }
  .compare th, .compare td { padding: 12px 16px; }
  .compare td { padding-left: 46px; }
  .compare td .mark { left: 16px; top: 14px; }
  .compare td.price-cell { padding-left: 16px; }
}

.legend {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin: 14px 0 0; font-size: .875rem; color: var(--graphite-2);
}
.legend > span { display: inline-flex; align-items: center; gap: 8px; }

/* Marcas: incluido / con límite / no incluido */
.mark {
  display: inline-block; flex: none;
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--graphite);
}
.mark-full { background: var(--graphite); }
.mark-half { background: linear-gradient(90deg, var(--graphite) 50%, transparent 50%); }
.mark-none {
  border-color: var(--graphite-2);
  background: linear-gradient(-45deg, transparent calc(50% - 1px), var(--graphite-2) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px));
}

.plans { display: grid; }
.plan-pick { border: 0; margin: 0; min-width: 0; padding: 22px var(--pad-x) 26px; }
.plan-pick legend {
  float: left; width: 100%; padding: 0; margin-bottom: 8px;
  font-size: 1.125rem; font-weight: 720;
}
.plan-row {
  clear: both; position: relative;
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 2px 16px; align-items: center;
  padding: 14px 12px 14px 0;
  border-bottom: 1px solid var(--ink-hair);
  cursor: pointer;
  transition: background-color .2s;
}
.plan-row:last-of-type { border-bottom: 0; }
.plan-row .bubble { grid-row: span 2; }
.plan-name { font-size: 1.25rem; font-weight: 800; font-stretch: 90%; line-height: 1.1; }
.plan-price { justify-self: end; font-size: .9375rem; color: var(--graphite-2); white-space: nowrap; }
.plan-price b { font-size: 1.5rem; font-weight: 820; font-stretch: 88%; color: var(--graphite); }
.plan-note { grid-column: 2 / -1; font-size: .9375rem; color: var(--graphite-2); }
.plan-row:has(input:checked) { background: var(--ink-tint); padding-left: 12px; margin-left: -12px; }
.plan-row:has(input:checked) .plan-note { color: var(--graphite); }

.plan-out { border-top: 1px solid var(--ink); display: flex; flex-direction: column; }
.plan-summary { margin: 0; padding: 22px var(--pad-x); font-size: 1.125rem; font-weight: 620; flex: 1; }
.hand-in-sm .hand-in-main { font-size: clamp(1.5rem, 1rem + 1.2vw, 2.125rem); }

@media (min-width: 1000px) {
  .plans { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .plan-out { border-top: 0; border-left: 1px solid var(--ink); }
}

/* ---------- Quiénes somos ---------- */

.sign { display: grid; gap: 28px; padding: clamp(32px, 6vw, 80px) var(--pad-x); }
.sign-text {
  margin: 0; max-width: 30ch;
  font-size: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  font-weight: 650; line-height: 1.2; letter-spacing: -.02em;
}
@media (min-width: 1000px) {
  .sign { grid-template-columns: minmax(0, 1fr) minmax(280px, 34%); align-items: end; gap: 48px; }
}
.sign-field {
  max-width: 440px;
  border: 1px solid var(--ink);
  padding: 10px 16px 18px;
}
.sign-by {
  display: block; margin-top: 10px;
  font-size: 1.375rem; font-weight: 520; font-stretch: 118%; line-height: 1.2;
}

/* ---------- Preguntas frecuentes ---------- */

.faq details { border-bottom: 1px solid var(--ink); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--pad-x);
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); font-weight: 650; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none;
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--ink);
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.faq summary:hover::after { border-color: var(--graphite); }
.faq details[open] summary::after { background: var(--graphite); border-color: var(--graphite); }
.faq details p { margin: 0; padding: 0 var(--pad-x) 22px; max-width: 72ch; }

/* ---------- Cierre ---------- */

.final { display: grid; }
.final h2 {
  margin: 0; padding: clamp(28px, 5vw, 64px) var(--pad-x);
  font-size: clamp(2rem, 1.1rem + 3.2vw, 4.25rem);
  font-weight: 860; font-stretch: 108%; line-height: .98; letter-spacing: -.03em;
  max-width: 16ch;
}
@media (min-width: 900px) {
  .final { grid-template-columns: minmax(0, 1fr) minmax(300px, 33%); }
  .final .hand-in { border-left: 2px solid var(--ink); }
}

/* ---------- Pie ---------- */

.foot-in {
  width: var(--sheet); margin-inline: auto;
  padding: 20px 0 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 32px;
  font-size: .9375rem; color: var(--graphite-2);
}
.foot-in p { margin: 0; }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--graphite); font-weight: 650; }
.foot-in ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-in a { color: var(--graphite); }

/* ---------- Páginas legales ---------- */

.doc { padding: clamp(28px, 5vw, 64px) var(--pad-x) clamp(36px, 6vw, 80px); }
.doc > * { max-width: 72ch; }
.doc h1 {
  margin: 0 0 .3em;
  font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4.5rem);
  font-weight: 860; font-stretch: 108%; line-height: .96; letter-spacing: -.03em;
  max-width: 18ch;
}
.doc .updated { color: var(--graphite-2); margin: 0 0 2em; }
.doc h2 {
  margin: 2em 0 .5em; padding-top: .7em;
  border-top: 1px solid var(--ink);
  font-size: 1.375rem; font-weight: 800; font-stretch: 80%;
  text-transform: uppercase; letter-spacing: .01em; color: var(--ink-deep); line-height: 1.1;
}
.doc ul { padding-left: 1.2em; }
.doc li { margin: .3em 0; }
.doc li::marker { color: var(--ink-deep); }
.doc dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; background: var(--ink); border: 1px solid var(--ink); }
.doc dl > div { background: var(--paper); padding: 10px 16px 12px; }
.doc dt { font-size: .75rem; font-weight: 650; font-stretch: 72%; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-deep); }
.doc dd { margin: 4px 0 0; font-weight: 600; }
@media (min-width: 700px) { .doc dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.todo {
  background: var(--ink-tint);
  border: 1px dashed var(--ink-deep);
  padding: 0 .3em;
  color: var(--ink-deep); font-weight: 650;
}
.back { display: inline-flex; margin-top: 2.5em; color: var(--ink-deep); font-weight: 680; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
