/* Kuro · "黒 La pincelada"
   Tinta sumi sobre negro. El rojo es el anillo del logo; el papel es el texto. */

@font-face { font-family: "Shippori Mincho B1"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("assets/fonts/shippori-mincho-b1-600-latin.woff2") format("woff2"); }
@font-face { font-family: "Shippori Mincho B1"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("assets/fonts/shippori-mincho-b1-800-latin.woff2") format("woff2"); }
@font-face { font-family: "Zen Kaku Gothic New"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/zen-kaku-gothic-new-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Zen Kaku Gothic New"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("assets/fonts/zen-kaku-gothic-new-500-latin.woff2") format("woff2"); }
@font-face { font-family: "Zen Kaku Gothic New"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("assets/fonts/zen-kaku-gothic-new-700-latin.woff2") format("woff2"); }

:root {
  --tinta: #0d0c0b;
  --tinta-2: #15130f;
  --tinta-3: #211e1a;
  --linea: #34302a;
  --papel: #f4f0e8;
  --papel-2: #c4bcae;       /* texto secundario: 10:1 sobre tinta */
  --papel-3: #8f877b;       /* notas: 5,3:1 sobre tinta */
  --rojo: #f01e23;          /* rojo del logo (anillo, marcas) */
  --rojo-boton: #cf141a;    /* botón: papel encima a 5,1:1 */
  --rojo-boton-2: #b10f14;
  --rojo-texto: #ff5a52;    /* rojo para texto chico sobre tinta: 6:1 */
  --serif: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Zen Kaku Gothic New", system-ui, sans-serif;
  --ancho: 76rem;
  --margen: clamp(1.15rem, 4.5vw, 3rem);
  --sale: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--tinta); color: var(--papel);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* lavado de tinta: una capa fija, quieta */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(255,240,220,.045), transparent 60%),
    radial-gradient(90% 70% at 0% 100%, rgba(255,240,220,.03), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='1000' viewBox='0 0 1400 1000' preserveAspectRatio='none'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0032' numOctaves='4' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 .95  0 0 0 0 .88  0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='1400' height='1000' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat,
    var(--tinta);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
::selection { background: var(--rojo); color: var(--papel); }
:focus-visible { outline: 2px solid var(--papel); outline-offset: 3px; border-radius: 2px; }
input, select, textarea { caret-color: var(--rojo); }
html { scrollbar-color: var(--linea) var(--tinta); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--tinta); }
::-webkit-scrollbar-thumb { background: var(--linea); border-radius: 10px; border: 2px solid var(--tinta); }

h1, h2, h3 { font-family: var(--serif); font-weight: 800; line-height: 1.08; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 4rem); }
p { margin: 0; }

.saltar { position: absolute; left: -999px; top: .5rem; z-index: 50; background: var(--papel); color: var(--tinta); padding: .6rem 1rem; }
.saltar:focus { left: .5rem; }

/* ---------- botones ---------- */
.btn {
  --bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .7rem 1.35rem; border: 1px solid transparent; border-radius: 999px;
  font: 700 1rem/1.2 var(--sans); letter-spacing: .01em; text-decoration: none; text-align: center;
  background: var(--bg); color: var(--papel); cursor: pointer;
  transition: background-color .18s, border-color .18s, transform .18s var(--sale);
}
.btn:active { transform: scale(.97); }
.btn--rojo { --bg: var(--rojo-boton); }
.btn--rojo:hover { --bg: var(--rojo-boton-2); }
.btn--linea { border-color: rgba(244,240,232,.38); }
.btn--linea:hover { border-color: var(--papel); background: rgba(244,240,232,.06); }
.btn--chico { min-height: 2.5rem; padding: .45rem 1rem; font-size: .9rem; }
.btn--ancho { width: 100%; }

/* ---------- barra ---------- */
.barra {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1rem;
  padding: .55rem var(--margen); padding-top: max(.55rem, env(safe-area-inset-top));
  background: rgba(13,12,11,.82); backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(52,48,42,.6);
}
.barra__marca { display: flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; }
.barra__marca img { width: 40px; height: auto; }
.barra__marca span { font: 800 1.3rem/1 var(--serif); letter-spacing: .02em; }
.barra__nav { display: none; gap: 1.6rem; font-weight: 500; font-size: .95rem; }
.barra__nav a { text-decoration: none; color: var(--papel-2); }
.barra__nav a:hover { color: var(--papel); }
@media (min-width: 860px) { .barra__nav { display: flex; } .barra__marca { margin-right: 0; } .barra__nav { margin: 0 auto; } }

/* ---------- inicio ---------- */
.inicio {
  max-width: var(--ancho); margin: 0 auto; padding: clamp(1rem, 4vw, 3rem) var(--margen) clamp(3.5rem, 8vw, 6rem);
  display: grid; gap: clamp(1.25rem, 4vw, 3rem); align-items: center;
}
.inicio__sello { width: min(82vw, 25rem); margin: 0 auto; }
.sello { width: 100%; height: auto; overflow: visible; }
.inicio__lugar { color: var(--rojo-texto); font-weight: 700; font-size: .95rem; letter-spacing: .02em; margin-bottom: .85rem; }
.inicio h1 { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.6rem); max-width: 14ch; }
.h1__l { display: block; }
.inicio__bajada { margin-top: 1.25rem; color: var(--papel-2); font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); max-width: 34rem; }
.vivo { display: flex; align-items: baseline; gap: .65rem; margin-top: 1.5rem; font-weight: 500; max-width: 34rem; }
.vivo__punto { flex: none; width: .7rem; height: .7rem; border-radius: 50%; background: var(--rojo); transform: translateY(.05rem); }
.vivo.es-libre .vivo__punto { background: transparent; box-shadow: inset 0 0 0 2px var(--papel-3); }
.vivo strong { font-weight: 700; }
.inicio__acciones { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
@media (max-width: 520px) { .inicio__acciones .btn { flex: 1 1 100%; } }
@media (min-width: 900px) {
  .inicio { grid-template-columns: 1.08fr 1fr; min-height: calc(100svh - 4rem); padding-top: 2rem; }
  .inicio__sello { order: 2; width: min(100%, 36rem); }
  .inicio__texto { order: 1; }
}

/* animación del sello: el kanji se pinta trazo a trazo, el anillo se cierra, aparece la palabra */
.sello__trazos path { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.sello__barrido { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.sello__cortina { transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0); }
.pinta .sello__trazos path { animation: trazo var(--d, .2s) cubic-bezier(.45, .05, .35, 1) var(--t, 0s) forwards; }
.pinta .sello__barrido { animation: trazo .75s cubic-bezier(.5, 0, .2, 1) var(--t-anillo, 1.6s) forwards; }
.pinta .sello__cortina { animation: cortina .55s var(--sale) var(--t-palabra, 2.1s) forwards; }
.listo .sello__trazos path, .listo .sello__barrido { stroke-dashoffset: 0; animation: none; }
.listo .sello__cortina { transform: none; animation: none; }
@keyframes trazo { to { stroke-dashoffset: 0; } }
@keyframes cortina { to { transform: scaleX(1); } }

/* ---------- secciones comunes ---------- */
.disciplinas, .hoy, .profes, .galpon, .donde, .prueba { max-width: var(--ancho); margin: 0 auto; padding: clamp(3.5rem, 9vw, 7rem) var(--margen); }
.disciplinas__cabeza p, .hoy__cabeza p, .profes__cabeza p, .prueba__cabeza p { margin-top: .9rem; color: var(--papel-2); max-width: 38rem; }

/* ---------- disciplinas ---------- */
.disciplinas__grid { display: grid; gap: 2rem; margin-top: 2.25rem; }
.lista { display: grid; gap: 1.1rem; }
.lista__grupo { border: 0; margin: 0; padding: 0; }
.lista__titulo { font-size: .85rem; font-weight: 700; color: var(--papel-3); letter-spacing: .03em; margin-bottom: .45rem; }
.lista__items { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  position: relative; isolation: isolate;
  min-height: 2.6rem; padding: .45rem 1rem; border-radius: 999px;
  border: 1px solid var(--linea); background: transparent; color: var(--papel);
  font: 500 .97rem/1.2 var(--sans); cursor: pointer;
  transition: border-color .15s, color .15s, background-color .15s;
}
.chip:hover { border-color: var(--papel-3); }
.chip[aria-checked="true"], .chip[aria-pressed="true"], .chip[aria-selected="true"] { border-color: transparent; font-weight: 700; }
.chip[aria-checked="true"]::before, .chip[aria-pressed="true"]::before, .chip[aria-selected="true"]::before {
  content: ""; position: absolute; inset: -3px -8px; z-index: -1;
  background: var(--rojo-boton);
  -webkit-mask: url("assets/img/trazo.svg") center / 100% 100% no-repeat; mask: url("assets/img/trazo.svg") center / 100% 100% no-repeat;
  animation: pincelada .32s var(--sale);
}
@keyframes pincelada { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .chip::before { animation: none !important; } }

.ficha { display: grid; gap: 1.75rem; }
.enso { scroll-margin-top: 4.5rem; position: relative; width: min(100%, 32rem); margin: 0 auto; aspect-ratio: 604 / 576; container-type: inline-size; }
.enso__anillo { position: absolute; inset: 0; width: 100%; height: 100%; }
.enso__giro { transform-origin: 295.5px 287.9px; transition: transform .7s var(--sale); }
.enso__barrido { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.enso.repinta .enso__barrido { animation: repinta .6s cubic-bezier(.5, 0, .2, 1); }
@keyframes repinta { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .enso.repinta .enso__barrido { animation: none; } .enso__giro { transition: none; } }
.enso__centro {
  position: absolute; left: 48.9%; top: 50%; transform: translate(-50%, -50%);
  width: 64%; text-align: center; display: grid; justify-items: center; gap: .2cqi;
}
.enso__grupo { font-size: clamp(.72rem, 3cqi, .85rem); font-weight: 700; color: var(--rojo-texto); letter-spacing: .04em; }
.enso__nombre { font-size: clamp(1.45rem, 9.2cqi, 2.9rem); line-height: 1.02; margin: .4cqi 0; }
.enso__nombre.es-largo { font-size: clamp(1.25rem, 7cqi, 2.3rem); }
.enso__sub { font-size: clamp(.75rem, 3.1cqi, .9rem); color: var(--papel-2); line-height: 1.35; }
.enso__sub:empty { display: none; }
.enso__profe { font-size: clamp(.85rem, 3.6cqi, 1rem); color: var(--papel-2); }
.enso__prox { margin-top: 1cqi; font-size: clamp(.8rem, 3.4cqi, .95rem); font-weight: 700; }
.enso__prox.en-curso { color: var(--rojo-texto); }

.ficha__datos { display: grid; gap: 1.5rem; align-content: start; }
.semana { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.semana__dia { padding: .7rem .2rem .8rem; text-align: center; border-left: 1px solid var(--linea); min-height: 6.2rem; }
.semana__dia:first-child { border-left: 0; }
.semana__nom { font-size: .78rem; font-weight: 700; color: var(--papel-3); letter-spacing: .04em; }
.semana__dia.es-hoy .semana__nom { color: var(--rojo-texto); }
.semana__hora { display: block; margin-top: .3rem; font-variant-numeric: tabular-nums; font-weight: 700; font-size: .93rem; }
.semana__nada { display: block; margin-top: .3rem; color: var(--linea); font-weight: 700; }

.planes { display: grid; gap: .8rem; }
.planes__titulo { font-size: .85rem; font-weight: 700; color: var(--papel-3); letter-spacing: .03em; }
.planes__opciones { display: flex; flex-wrap: wrap; gap: .4rem; }
.planes__precio { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.planes__monto { font: 800 clamp(2.2rem, 1.6rem + 2vw, 2.9rem)/1 var(--serif); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.planes__detalle { color: var(--papel-2); font-size: .95rem; }
.planes__vacio { color: var(--papel-2); }

@media (min-width: 900px) {
  .disciplinas__grid { grid-template-columns: minmax(15rem, 19rem) 1fr; gap: 3rem; align-items: start; }
  .lista { position: sticky; top: 6rem; }
  .ficha__datos { grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; }
  .ficha__datos .btn--ancho { grid-column: 1 / -1; }
}
@media (min-width: 1180px) {
  .disciplinas__grid { grid-template-columns: 17rem minmax(0, 1fr) 17.5rem; gap: 2.5rem; align-items: center; }
  .ficha { display: contents; }
  .ficha__datos { grid-template-columns: 1fr; }
  .lista { align-self: start; }
}

/* ---------- hoy ---------- */
.dias { display: flex; gap: .35rem; margin-top: 2rem; overflow-x: auto; padding: .25rem .1rem .5rem; scrollbar-width: none; }
.dias::-webkit-scrollbar { display: none; }
.dias .chip { flex: none; min-width: 3.4rem; }
.filtros { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
.filtros .chip { min-height: 2.3rem; font-size: .9rem; padding: .35rem .85rem; }
.linea { list-style: none; margin: 2rem 0 0; padding: 0; position: relative; }
.linea::before {
  content: ""; position: absolute; left: 4.6rem; top: .4rem; bottom: .4rem; width: 3px; border-radius: 3px;
  background: linear-gradient(var(--papel-3), var(--linea) 85%, transparent);
  opacity: .55;
}
.clase {
  position: relative; display: grid; grid-template-columns: 4rem 1fr auto; gap: 0 1.6rem; align-items: baseline;
  padding: .95rem 0; border-bottom: 1px solid rgba(52,48,42,.55);
}
.clase::before { content: ""; position: absolute; left: calc(4.6rem - 4px); top: 1.45rem; width: 11px; height: 11px; border-radius: 50%; background: var(--tinta); box-shadow: inset 0 0 0 2px var(--papel-3); }
.clase__hora { font: 800 1.35rem/1 var(--serif); font-variant-numeric: tabular-nums; }
.clase__nombre { font-weight: 700; font-size: 1.08rem; line-height: 1.3; }
.clase__profe { display: block; color: var(--papel-2); font-size: .92rem; font-weight: 400; }
.clase__estado { font-size: .82rem; font-weight: 700; color: var(--papel-3); white-space: nowrap; }
.clase.paso { opacity: .5; }
.clase.repite { padding-top: .35rem; }
.clase.repite::before { top: .85rem; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.clase.ahora::before { background: var(--rojo); box-shadow: 0 0 0 4px rgba(240,30,35,.18); }
.clase.ahora .clase__estado { color: var(--rojo-texto); }
.clase.prox::before { background: var(--papel); box-shadow: none; }
.clase.prox .clase__estado { color: var(--papel); }
.clase__ir { all: unset; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(244,240,232,.25); text-underline-offset: .25em; }
.clase__ir:hover { text-decoration-color: var(--papel); }
.clase__ir:focus-visible { outline: 2px solid var(--papel); outline-offset: 3px; }
.linea__vacio { padding: 2rem 0; color: var(--papel-2); }
.hoy__nota { margin-top: 1.5rem; font-size: .88rem; color: var(--papel-3); }
@media (max-width: 520px) {
  .linea::before { left: 3.85rem; }
  .clase { grid-template-columns: 3.3rem 1fr; gap: 0 1.3rem; }
  .clase::before { left: calc(3.85rem - 4px); }
  .clase__estado { grid-column: 2; margin-top: .25rem; }
  .clase__hora { font-size: 1.15rem; }
}

/* ---------- profes ---------- */
.tira {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(72vw, 17rem); gap: 1rem;
  margin: 2.25rem calc(var(--margen) * -1) 0; padding: .25rem var(--margen) 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--margen);
  overscroll-behavior-x: contain; cursor: grab;
}
.tira.arrastra { cursor: grabbing; scroll-snap-type: none; }
.tira.arrastra * { pointer-events: none; }
.profe { scroll-snap-align: start; display: grid; gap: .25rem; align-content: start; }
.profe__foto {
  aspect-ratio: 4 / 5; overflow: hidden; background: var(--tinta-2);
  -webkit-mask: url("assets/tex/borde.png") center / 100% 100% no-repeat; mask: url("assets/tex/borde.png") center / 100% 100% no-repeat;
}
.profe__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--sale); }
.profe:hover .profe__foto img { transform: scale(1.03); }
.profe__nombre { font: 800 1.45rem/1.15 var(--serif); margin-top: .6rem; }
.profe__disc { color: var(--rojo-texto); font-weight: 700; font-size: .92rem; }
.profe__dato { color: var(--papel-2); font-size: .93rem; line-height: 1.45; }
.profe__ir { justify-self: start; margin-top: .55rem; }
.profes__salud { margin-top: 1.5rem; max-width: 44rem; color: var(--papel-2); }
.profes__salud strong { color: var(--papel); }

/* ---------- galpón ---------- */
.galpon { display: grid; gap: 2rem; }
.galpon__foto { margin: 0; }
.galpon__foto img { width: 100%; height: auto; -webkit-mask: url("assets/tex/borde.png") center / 100% 100% no-repeat; mask: url("assets/tex/borde.png") center / 100% 100% no-repeat; }
.galpon__foto figcaption { margin-top: .5rem; font-size: .9rem; color: var(--papel-3); }
.galpon__texto p { color: var(--papel-2); margin-top: 1rem; max-width: 34rem; }
.cita { margin: 1.75rem 0 0; padding: 0; }
.cita p { font: 600 clamp(1.3rem, 1.1rem + .9vw, 1.7rem)/1.3 var(--serif); color: var(--papel); margin: 0; max-width: 24ch; }
.cita footer { margin-top: .4rem; font-size: .9rem; color: var(--papel-3); }
@media (min-width: 900px) {
  .galpon { grid-template-columns: 5fr 6fr; grid-template-rows: auto auto; gap: 2.5rem 4rem; align-items: start; }
  .galpon__foto--alta { grid-row: 1 / 3; }
  .galpon__texto { padding-top: 2rem; }
}

/* ---------- dónde ---------- */
.donde { display: grid; gap: 2rem; }
.donde__texto > p { color: var(--papel-2); margin-top: .9rem; }
.donde__horas { margin: 1.75rem 0 0; display: grid; gap: 0; max-width: 24rem; }
.donde__horas div { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--linea); }
.donde__horas dt { color: var(--papel-2); }
.donde__horas dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.donde__acciones { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }
.donde__mapa { min-height: 20rem; border-radius: 4px; overflow: hidden; background: var(--tinta-2); border: 1px solid var(--linea); }
.donde__mapa iframe { width: 100%; height: 100%; min-height: 20rem; border: 0; display: block; filter: grayscale(1) invert(.92) contrast(.9) brightness(.95); }
@media (min-width: 900px) { .donde { grid-template-columns: 1fr 1.25fr; align-items: stretch; gap: 4rem; } }

/* ---------- prueba ---------- */
.prueba { padding-bottom: clamp(4rem, 10vw, 8rem); }
.armador { margin-top: 2.25rem; display: grid; gap: 1.5rem; max-width: 44rem; }
.campo { border: 0; margin: 0; padding: 0; display: grid; gap: .55rem; min-width: 0; }
.campo > span, .campo legend { font-size: .9rem; font-weight: 700; color: var(--papel-2); padding: 0; margin-bottom: .1rem; }
.campo em { font-style: normal; font-weight: 400; color: var(--papel-3); }
.campo select, .campo input[type="text"] {
  width: 100%; min-height: 3.1rem; padding: .7rem 1rem; border-radius: 10px;
  background: var(--tinta-2); color: var(--papel); border: 1px solid var(--linea);
  font: 500 1.02rem/1.3 var(--sans);
}
.campo select { appearance: none; -webkit-appearance: none; padding-right: 2.8rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6' fill='none' stroke='%23c4bcae' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 1rem; }
.campo select:hover, .campo input[type="text"]:hover { border-color: var(--papel-3); }
.campo input::placeholder { color: var(--papel-3); }
.horas, .opciones { display: flex; flex-wrap: wrap; gap: .4rem; }
.opciones label { position: relative; }
.opciones input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opciones span { display: inline-flex; align-items: center; min-height: 2.6rem; padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--linea); font-weight: 500; }
.opciones input:checked + span { border-color: var(--papel); font-weight: 700; }
.opciones input:focus-visible + span { outline: 2px solid var(--papel); outline-offset: 3px; }
.mensaje { padding: 1.1rem 1.25rem; border-radius: 12px; background: var(--tinta-2); border: 1px solid var(--linea); }
.mensaje__titulo { font-size: .85rem; font-weight: 700; color: var(--papel-3); }
.mensaje__texto { margin-top: .4rem; font-size: 1.02rem; }
.armador__estado { min-height: 1.5rem; color: var(--papel-2); font-size: .95rem; }
.prueba__foto { display: none; margin: 0; }
.prueba__foto img { width: 100%; height: auto; -webkit-mask: url("assets/tex/borde.png") center / 100% 100% no-repeat; mask: url("assets/tex/borde.png") center / 100% 100% no-repeat; }
.prueba__foto figcaption { margin-top: .9rem; font: 600 1.35rem/1.3 var(--serif); }
@media (min-width: 960px) {
  .prueba { display: grid; grid-template-columns: minmax(0, 44rem) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 0 4rem; }
  .prueba__cabeza { grid-column: 1 / -1; }
  .prueba__foto { display: block; grid-column: 2; grid-row: 2; align-self: start; margin-top: 2.25rem; position: sticky; top: 6rem; }
}

/* ---------- pie ---------- */
.pie { border-top: 1px solid var(--linea); padding: 3rem var(--margen) calc(3rem + env(safe-area-inset-bottom)); display: grid; justify-items: center; text-align: center; gap: .9rem; color: var(--papel-2); font-size: .95rem; }
.pie__creditos { font-size: .82rem; color: var(--papel-3); }
