/* Shortvu — "la mesa de subtítulos", a color.
   La app es un aparato de vídeo para fabricar Shorts: teclas que se hunden,
   LEDs de estado y un monitor 9:16. La paleta sale de la carta de ajuste
   (azul, amarillo, cian, magenta, verde, rojo): la portada es una emisión y
   cada franja lleva uno de sus colores; dentro de la app el color se reserva
   para las acciones y los estados.
   Materiales:
     chasis  → el fondo, un azul muy claro (el azul de "sin señal", lavado);
     panel   → agrupa contenido: blanco con costura fina;
     tecla   → acción: borde de tinta y canto inferior, se hunde al pulsar.
   Color con significado: amarillo = acción principal (es el color del
   subtítulo); rojo REC = algo se está grabando/renderizando; verde = listo. */

@font-face {
  font-family: "Anton";
  src: url("/static/fonts/Anton-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/static/fonts/InstrumentSans.ttf") format("truetype");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

/* Un solo tema, claro y a color: la identidad son los colores de la carta de
   ajuste, y el gris oscuro anterior apagaba la marca. */
:root {
  /* Carta de ajuste */
  --signal: #2340F5;      /* azul "sin señal" */
  --signal-deep: #1A2FC0;
  --key: #FFD60A;         /* amarillo subtítulo */
  --cyan: #2CD3E6;
  --magenta: #FF4FB0;
  --green: #2DCB6B;
  --rec: #F0352B;
  /* Materiales */
  --chassis: #EDF0FF;
  --panel: #FFFFFF;
  --field: #FFFFFF;
  --ink: #17181F;
  --silk: #4A4E63;
  --seam: #CBD0EA;
  --field-line: #6D7290;
  --key-edge: var(--ink);
  --key-ink: var(--ink);
  --key-grey: #FFFFFF;
  --key-grey-edge: var(--ink);
  --led-green: #1FB35A;
  --amber: #F2A900;
  --screen: #0A0B0D;
  --bezel: var(--ink);
  --danger: #C4241A;
  --ok: #157A3A;
  --focus: var(--signal);
  --r-key: 9px;
  --r-panel: 14px;
  --r-screen: 28px;
  --page: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 68ch;
  --lift: 0 4px 0 var(--ink);
  --outline: inset 0 0 0 2px var(--ink);
  --lift-big: 6px 6px 0 var(--ink);
  --smpte: linear-gradient(90deg,
    #C0C0C0 0 14.28%, var(--key) 0 28.57%, var(--cyan) 0 42.85%, var(--green) 0 57.14%,
    var(--magenta) 0 71.42%, var(--rec) 0 85.71%, var(--ink) 0);
  --smpte-dark: linear-gradient(90deg,
    #C0C0C0 0 14.28%, var(--key) 0 28.57%, var(--cyan) 0 42.85%, var(--green) 0 57.14%,
    var(--magenta) 0 71.42%, var(--rec) 0 85.71%, var(--signal) 0);
  color-scheme: light;
}

/* -- Base ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--chassis);
  color: var(--ink);
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  /* El pie siempre abajo, también en páginas cortas (error, acceso, verificar). */
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
}
img, video { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; font-weight: 700; font-stretch: 86%; text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }
h1 {
  font-family: "Anton", Impact, sans-serif; font-weight: 400; font-stretch: normal;
  font-size: clamp(2.1rem, 3.6vw, 2.75rem); line-height: 1.06; letter-spacing: .005em;
}
h2 { font-size: 1.45rem; margin-top: 2.2rem; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
.display {
  font-family: "Anton", Impact, sans-serif;
  font-weight: 400; font-stretch: normal;
  font-size: clamp(2.5rem, 5.6vw, 4.6rem);
  line-height: 1;
  letter-spacing: .005em;
  text-wrap: balance;
}
.display-small { font-family: "Anton", Impact, sans-serif; font-weight: 400; font-stretch: normal; font-size: 2.2rem; }
.lede { font-size: 1.18rem; max-width: 46ch; color: var(--silk); }
.muted { color: var(--silk); }
.small { font-size: .88rem; }
.center { text-align: center; }
/* Una nota va pegada a su campo dentro de un formulario; suelta, respira. */
.hint { font-size: .9rem; color: var(--silk); margin-top: .75rem; }
.stack > .hint { margin-top: -.4rem; }
.pre { white-space: pre-line; }
/* Serigrafía: el rótulo impreso junto a un mando. Minúscula, estrecha. */
.silk { font-size: .82rem; font-weight: 600; font-stretch: 78%; letter-spacing: .02em; color: var(--silk); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip { position: absolute; left: -999px; top: 0; background: var(--panel); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* -- Marco: cabecera, contenido, pie -------------------------------------- */

/* Cabecera azul en todas las páginas: la marca siempre a color. */
.topbar { background: var(--signal); color: #fff; position: relative; --focus: var(--key); }
.topbar::after { content: ""; display: block; height: 5px; background: var(--smpte); }
.topbar-inner {
  max-width: var(--page); margin: 0 auto; padding: .7rem var(--gutter);
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .55rem; font-family: "Anton", Impact, sans-serif; font-weight: 400; text-decoration: none; font-size: 1.45rem; letter-spacing: .01em; }
.brand-mark {
  width: 14px; height: 24px; border-radius: 4px; background: var(--screen);
  box-shadow: inset 0 -7px 0 0 var(--key), 0 0 0 2px #fff;
}
.topbar-quick { order: 2; display: flex; align-items: center; gap: .75rem; }
.topnav { order: 1; margin-left: auto; display: flex; align-items: center; gap: .35rem 1.1rem; flex-wrap: wrap; font-size: .95rem; font-stretch: 92%; }
.topnav a, .topnav .nav-logout { text-decoration: none; padding: .45rem .1rem; }
.topnav a:hover, .topnav .nav-logout:hover { text-decoration: underline; }
.topnav a.is-current { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
/* Contador de créditos como pantallita LCD. */
.credits-pill {
  background: var(--screen); color: var(--key); text-decoration: none;
  border-radius: 6px; padding: .3rem .75rem; font-weight: 600; font-size: .92rem; font-stretch: 85%;
  font-variant-numeric: tabular-nums; white-space: nowrap; box-shadow: 0 0 0 2px var(--bezel);
}
.credits-pill:hover, .credits-pill.is-current { box-shadow: 0 0 0 2px var(--key); }
.menu-toggle {
  font: inherit; font-weight: 600; font-size: .92rem; color: var(--ink); background: var(--key-grey); cursor: pointer;
  border: 2px solid var(--ink); border-radius: var(--r-key); padding: .35rem .8rem; min-height: 40px;
  box-shadow: 0 3px 0 var(--ink);
}
.menu-toggle[aria-expanded="true"] { transform: translateY(2px); box-shadow: none; }

main { flex: 1 0 auto; width: 100%; padding: clamp(1.25rem, 4vw, 3rem) var(--gutter) 4rem; max-width: var(--page); margin: 0 auto; }
.footer { background: var(--ink); color: #C9CCDA; font-size: .88rem; --focus: var(--key); }
.footer::before { content: ""; display: block; height: 5px; background: var(--smpte-dark); border-top: 3px solid var(--ink); }
.footer a, .footer .linklike { color: #fff; }
.footer-inner { max-width: var(--page); margin: 0 auto; padding: 1.5rem var(--gutter) 2rem; display: grid; gap: .6rem; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: .25rem 1.2rem; }
.footer-links a { padding: .2rem 0; }
.footer-withdraw { font-weight: 600; color: var(--key) !important; }
.footer-bottom { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem 1.5rem; flex-wrap: wrap; border-top: 1px dashed #3A3D4C; padding-top: .7rem; margin-top: .3rem; }
.footer-lang { font-weight: 600; padding: .2rem 0; }

.narrow { max-width: 680px; }
.wide { max-width: var(--page); }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-head h1 { margin: 0; }
.page-head .actions { margin: 0; }

/* -- Teclas ---------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font: inherit; font-weight: 700; font-stretch: 90%; text-decoration: none; cursor: pointer;
  min-height: 44px; padding: .62rem 1.15rem; border-radius: var(--r-key);
  background: var(--key-grey); color: var(--ink);
  border: 2px solid var(--ink); box-shadow: var(--lift);
  transition: transform .07s ease-out, box-shadow .07s ease-out;
  margin-bottom: 4px;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
.btn-primary { background: var(--key); color: var(--key-ink); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-small { padding: .3rem .8rem; min-height: 36px; font-size: .92rem; }
.btn-large { padding: .8rem 1.5rem; min-height: 52px; font-size: 1.05rem; }
.btn[disabled] { opacity: .65; cursor: progress; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.linklike.danger { color: var(--danger); }
form.inline { display: inline; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.stack > .btn { justify-self: start; }
.auth .stack > .btn { justify-self: stretch; }

/* -- Formularios: campos hundidos en el panel ------------------------------ */

.stack { display: grid; gap: 1rem; }
.stack > p { margin-bottom: 0; }
label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="url"],
input[type="date"], select, textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--field);
  border: 1px solid var(--field-line); border-radius: var(--r-key); padding: .62rem .75rem; width: 100%;
  box-shadow: inset 0 1px 2px color-mix(in srgb, var(--ink) 10%, transparent);
}
textarea { resize: vertical; }
input:not([type="range"]):not([type="file"]):focus, select:focus, textarea:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
/* Deslizadores como faders de mesa: ranura oscura y cursor de tecla con su raya. */
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; margin: 0; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--screen); box-shadow: 0 0 0 1px var(--bezel); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--screen); box-shadow: 0 0 0 1px var(--bezel); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 18px; height: 28px; margin-top: -11px; border-radius: 4px;
  background: linear-gradient(transparent 45%, var(--ink) 45% 55%, transparent 55%), var(--key-grey);
  border: 2px solid var(--ink); box-shadow: 0 2px 0 var(--ink);
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 28px; border-radius: 4px;
  background: linear-gradient(transparent 45%, var(--ink) 45% 55%, transparent 55%), var(--key-grey);
  border: 2px solid var(--ink); box-shadow: 0 2px 0 var(--ink);
}
/* Selector de archivo: el botón del sistema, vestido de tecla. */
input[type="file"] { font: inherit; font-size: .92rem; font-weight: 400; color: var(--silk); max-width: 100%; }
input[type="file"]::file-selector-button {
  font: inherit; font-weight: 650; font-stretch: 90%; color: var(--ink); cursor: pointer;
  background: var(--key-grey); border: 2px solid var(--ink); border-radius: var(--r-key);
  padding: .55rem 1rem; margin: 0 .9rem 4px 0; box-shadow: var(--lift);
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--ink); width: 1.05rem; height: 1.05rem; }
label.check, label.consent { display: flex; gap: .55rem; align-items: flex-start; font-weight: 400; font-size: .9rem; }
label.check input, label.consent input { margin-top: .22rem; flex-shrink: 0; }
.big-field textarea { font-size: 1.15rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset legend { font-weight: 600; font-size: .95rem; padding: 0; margin-bottom: .4rem; }
fieldset.choice { display: grid; gap: .45rem; }
fieldset.choice .hint { margin: 0; }
fieldset.choice label, fieldset.interval label { display: flex; gap: .45rem; align-items: center; font-weight: 400; }
fieldset.interval { display: flex; gap: 1rem; }
.more-options { border-top: 1px solid var(--seam); border-bottom: 1px solid var(--seam); padding: .2rem 0; }
.more-options > summary { cursor: pointer; font-weight: 600; padding: .7rem 0; }
.more-options[open] > summary { margin-bottom: .6rem; }
.more-options > .stack { padding-bottom: 1rem; }
.form-error { color: var(--danger); font-weight: 600; }
/* Lo que sigue a un formulario o a una lista de paneles no va pegado. */
form.stack + *, .copy-list + * { margin-top: 1.25rem; }
.empty-slot { margin: 0 0 1rem; padding: .9rem 1.1rem; border: 1.5px dashed var(--field-line); border-radius: var(--r-panel); color: var(--silk); }

/* Selector de estilo de subtítulos: cada tecla enseña el estilo de verdad. */
.style-keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(5.4rem, 1fr)); gap: .7rem; }
.style-keys legend { grid-column: 1 / -1; }
/* align-content: start → todas las pantallas miden lo mismo aunque el nombre ocupe dos líneas. */
.style-key { position: relative; display: grid; align-content: start; gap: .45rem; font-weight: 600; font-size: .78rem; font-stretch: 82%; line-height: 1.3; text-align: center; cursor: pointer; }
.style-key input { position: absolute; opacity: 0; pointer-events: none; }
.style-screen {
  display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 8px; background: var(--screen);
  box-shadow: 0 0 0 3px var(--bezel), 0 6px 0 0 var(--key-grey-edge);
  transition: transform .06s ease-out, box-shadow .06s ease-out;
}
.style-key:hover .style-screen { transform: translateY(-2px); box-shadow: 0 0 0 3px var(--signal), 0 8px 0 0 var(--ink); }
.style-key input:checked + .style-screen {
  transform: translateY(4px); box-shadow: 0 0 0 3px var(--key), 0 2px 0 0 var(--key-edge);
}
.style-key input:focus-visible + .style-screen { outline: 3px solid var(--focus); outline-offset: 5px; }
.style-sample { font-family: "Anton", Impact, sans-serif; font-size: 1.05rem; color: #fff; -webkit-text-stroke: 3px #000; paint-order: stroke fill; }
.style-name { color: var(--silk); }

/* Los cinco estilos (mismos colores que render/caption_styles.py). */
.cap-bold_yellow .w-on, .style-sample.cap-bold_yellow { color: #FFDE00; }
.cap-red_pop .w-on, .style-sample.cap-red_pop { color: #FF3B30; }
.cap-karaoke .w-on, .style-sample.cap-karaoke { color: #39FF6A; }
.cap-neon .w-on, .style-sample.cap-neon { color: #00E5FF; }
.cap-clean .w-on, .style-sample.cap-clean { color: #fff; }
.style-sample.cap-clean { font-family: "Instrument Sans", sans-serif; font-weight: 700; text-transform: none; -webkit-text-stroke: 2px #000; }
/* "Cinta" (recompensa de la Temporada): tira amarilla, letras negras, palabra activa en rojo. */
.style-sample.cap-tape, .monitor-caption.cap-tape { color: #000; background: #FFE14D; -webkit-text-stroke: 0; padding: 0 .3em; box-decoration-break: clone; }
.cap-tape .w-on { color: #D7102A; }
.style-key.is-locked .style-screen { opacity: .45; }
.style-key.is-locked { cursor: not-allowed; }
.style-lock { display: block; font-size: .78rem; color: var(--silk); line-height: 1.25; }

/* -- Paneles y avisos ------------------------------------------------------ */

.notice {
  background: var(--panel); border-radius: var(--r-key); padding: .7rem 1rem; margin: 1rem 0;
  box-shadow: inset 0 0 0 1px var(--seam), inset 4px 0 0 var(--key);
}
.flashes { width: 100%; max-width: var(--page); margin: 1rem auto 0; padding: 0 var(--gutter); }
.flash {
  background: var(--panel); border-radius: var(--r-key); padding: .6rem 1rem .6rem 2rem; margin: 0 0 .5rem; position: relative;
  box-shadow: inset 0 0 0 1px var(--seam);
}
.flash::before { content: ""; position: absolute; left: .85rem; top: 1.05em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--led-green); box-shadow: 0 0 6px var(--led-green); }
.flash-error::before { background: var(--rec); box-shadow: 0 0 6px var(--rec); }
.flash-info::before { background: var(--amber); box-shadow: 0 0 6px var(--amber); }
.verify-banner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.editing-done p { margin: 0 0 .5rem; }
.editing-done .actions { margin: 0; gap: .5rem 1.2rem; }

/* -- Monitor 9:16 ---------------------------------------------------------- */

.phone {
  width: min(300px, 100%); aspect-ratio: 9 / 16; margin: 0 auto;
  border-radius: var(--r-screen); background: var(--bezel); padding: 11px;
  box-shadow: 0 0 0 1px #000, 0 10px 0 -4px var(--key-grey-edge);
}
.phone-screen {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: calc(var(--r-screen) - 9px); background: var(--screen);
  display: grid; place-items: center;
}
/* Líneas de barrido muy tenues: un CRT, sin pasarse. */
.phone-screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 3px);
}
.phone-screen video { width: 100%; height: 100%; object-fit: cover; }
.phone-banner {
  position: absolute; top: 9%; left: 8%; right: 8%; margin: 0;
  background: rgba(0, 0, 0, .78); color: #fff; text-align: center;
  font-family: "Anton", Impact, sans-serif; text-transform: uppercase;
  font-size: .95rem; line-height: 1.2; padding: .4rem .5rem;
}
.phone-caption {
  margin: 0; padding: 0 .5rem; text-align: center;
  font-family: "Anton", Impact, sans-serif; text-transform: uppercase;
  font-size: clamp(2rem, 9vw, 2.7rem); line-height: 1;
  color: var(--key); -webkit-text-stroke: 6px #000; paint-order: stroke fill;
}
.phone-caption.is-working { font-size: 1.35rem; color: #fff; -webkit-text-stroke: 0; font-family: "Instrument Sans", sans-serif; text-transform: none; font-weight: 600; }
.phone-caption.is-failed { color: #FF7A70; -webkit-text-stroke: 0; }
.phone-working { display: grid; gap: 1rem; justify-items: center; width: 80%; }
.led { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--led-green); box-shadow: 0 0 6px var(--led-green); }
.led-rec { background: #555; box-shadow: none; }

/* Barra de progreso: la carta de ajuste se va encendiendo. */
progress { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border: 0; border-radius: 3px; background: #2A2B2E; overflow: hidden; }
progress::-webkit-progress-bar { background: #2A2B2E; }
progress::-webkit-progress-value { background: var(--smpte-dark); }
progress::-moz-progress-bar { background: var(--smpte-dark); }

/* -- Portada: una emisión en franjas de la carta de ajuste ----------------- */

.page-landing main { max-width: none; padding: 0; }
.band { padding-block: clamp(3.2rem, 7vw, 5.5rem); }
.band-inner { max-width: var(--page); margin: 0 auto; padding-inline: var(--gutter); }
.band-signal { background: var(--signal); color: #fff; --focus: var(--key); padding-top: clamp(2.4rem, 5vw, 4rem); }
.band-key { background: var(--key); }
.band-cyan { background: var(--cyan); }
.band-magenta { background: var(--magenta); --focus: var(--ink); }
.band-paper { background: #fff; }
.band-chassis { background: var(--chassis); }
/* Las barras de color, a lo ancho, separan el titular del resto de la emisión. */
.bars { height: 16px; background: var(--smpte); }
.band-head { display: grid; gap: .5rem; margin-bottom: 2.2rem; max-width: 62ch; }
.band-head p { margin: 0; color: var(--silk); font-size: 1.08rem; }
.band-title {
  font-family: "Anton", Impact, sans-serif; font-weight: 400; font-stretch: normal;
  font-size: clamp(2.1rem, 4.4vw, 3.2rem); line-height: 1.04; letter-spacing: .005em; margin: 0 0 1.6rem;
}
.band-head .band-title { margin: 0; }

/* Titular: un subtítulo quemado a tamaño cartel (amarillo, contorno y sombra
   de tinta). Con JavaScript se enciende palabra a palabra, una sola vez. */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 2.5rem clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-title {
  font-family: "Anton", Impact, sans-serif; font-weight: 400; font-stretch: normal;
  font-size: clamp(3.1rem, 7.2vw, 6.3rem); line-height: 1; letter-spacing: .01em;
  color: #fff; margin: 0 0 1.5rem; max-width: 11ch;
  -webkit-text-stroke: .1em var(--ink); paint-order: stroke fill;
  text-shadow: .055em .065em 0 var(--ink);
}
.hero-title .w { display: inline-block; }
.hero-title.is-lit { color: var(--key); }
.hero-title.is-revealing .w { animation: word-lit .42s cubic-bezier(.2, 1.4, .45, 1) both; animation-delay: calc(var(--i, 0) * 170ms + 250ms); }
@keyframes word-lit { from { color: #fff; } 35% { color: var(--key); transform: scale(1.16); } to { color: var(--key); transform: none; } }
.band-signal .lede { color: #fff; max-width: 44ch; font-size: 1.2rem; margin-bottom: 1.6rem; }
.hero-actions { display: flex; gap: .9rem; align-items: center; flex-wrap: wrap; }
.hero-note { color: #fff; opacity: .88; font-size: .95rem; margin: .7rem 0 0; }

/* Lo que entra (la idea) y lo que sale (el Short). */
.hero-stage { position: relative; margin: 0; display: grid; justify-items: center; padding: 6.2rem 0 1.8rem; }
.phone-hero { width: min(285px, 74vw); transform: rotate(3deg); box-shadow: 0 0 0 2px var(--ink), 12px 12px 0 var(--ink); }
.idea-card {
  position: absolute; top: 0; left: 0; z-index: 2; width: min(255px, 64%);
  background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 12px;
  padding: .7rem .95rem .85rem; box-shadow: 5px 5px 0 var(--ink); transform: rotate(-4deg);
}
.idea-label {
  display: inline-block; margin-bottom: .4rem; padding: 0 .45rem; border: 1.5px solid var(--ink); border-radius: 5px;
  background: var(--key); font-size: .8rem; font-weight: 700; font-stretch: 85%;
}
.idea-card p { margin: 0; font-weight: 650; line-height: 1.3; font-size: 1rem; }
.out-label {
  position: absolute; right: 0; bottom: 0; z-index: 2; transform: rotate(-3deg);
  background: var(--green); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px;
  padding: .3rem .85rem; font-weight: 700; font-size: .92rem; font-stretch: 90%; box-shadow: 4px 4px 0 var(--ink);
}

/* Ejemplos: cuatro monitores, cada uno con la sombra de un color de la carta. */
.reel { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.2rem); }
.reel-item { display: grid; gap: 1rem; justify-items: center; align-content: start; --c: var(--key); }
.reel-item:nth-child(2) { --c: var(--cyan); }
.reel-item:nth-child(3) { --c: var(--magenta); }
.reel-item:nth-child(4) { --c: var(--green); }
.phone-reel { width: 100%; max-width: 230px; padding: 8px; border-radius: 24px; box-shadow: 0 0 0 2px var(--ink), 8px 8px 0 var(--c); }
.phone-reel .phone-screen { border-radius: 17px; }
.reel-item:nth-child(odd) .phone-reel { transform: rotate(-1.5deg); }
.reel-item:nth-child(even) .phone-reel { transform: rotate(1.5deg); }
.reel-title { margin: 0; text-align: center; font-weight: 650; font-stretch: 90%; line-height: 1.3; max-width: 24ch; font-size: .95rem; }

/* La mesa: un solo aparato con mandos, vúmetro y monitor, sobre la franja amarilla. */
.deck {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .8fr) minmax(220px, 290px);
  grid-template-areas: "head head head" "controls meter monitor";
  gap: 1.5rem 2rem; align-items: start;
  background: var(--panel); border: 2px solid var(--ink); border-radius: 18px; padding: 1.5rem 1.6rem 1.8rem;
  box-shadow: var(--lift-big);
}
.deck-head { grid-area: head; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1rem; border-bottom: 1px solid var(--seam); padding-bottom: 1rem; }
.deck-head h2 { margin: 0; font-family: "Anton", Impact, sans-serif; font-weight: 400; font-stretch: normal; font-size: 1.9rem; }
.deck-head p { margin: 0; color: var(--silk); }
.deck-controls { grid-area: controls; display: grid; gap: 1.2rem; }
.deck-field { gap: .4rem; }
.deck-field textarea {
  font-family: "Anton", Impact, sans-serif; font-weight: 400; font-size: 1.45rem; line-height: 1.2;
  letter-spacing: .01em; min-height: 6.2rem; border: 2px solid var(--ink);
}
.deck-speed { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .3rem 1rem; }
.deck-speed output { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 3.4em; text-align: right; }
.deck-keys { display: flex; gap: .8rem; flex-wrap: wrap; }
.deck-note { margin: 0; font-size: .85rem; color: var(--silk); }
.key-play[aria-pressed="true"] { background: var(--danger); color: #fff; }

.deck-meter { grid-area: meter; display: grid; gap: .5rem; align-content: start; }
.vu {
  width: 100%; max-width: 340px; height: auto; display: block; border-radius: 10px;
  background: #F5F1DE; box-shadow: inset 0 0 0 1px var(--seam), inset 0 2px 6px rgba(0, 0, 0, .12), 0 0 0 4px var(--bezel);
  --angle: -60deg;
}
.vu .arc { fill: none; stroke: #222326; stroke-width: 1.5; }
.vu .arc-hot { fill: none; stroke: var(--rec); stroke-width: 5; }
.vu .tick, .vu .tick-major { stroke: #222326; stroke-width: 1.2; }
.vu .tick-major { stroke-width: 2; }
.vu .tick-label { font-family: "Instrument Sans", sans-serif; font-size: 9px; font-weight: 700; fill: #222326; text-anchor: middle; }
.vu-needle line { stroke: var(--rec); stroke-width: 2.4; stroke-linecap: round; }
.vu-needle {
  transform-box: view-box; transform-origin: 100px 104px; transform: rotate(var(--angle));
  transition: transform .55s cubic-bezier(.34, 1.56, .64, 1);
}
.vu-hub { fill: #222326; }
.vu-read { margin: .2rem 0 0; font-family: "Anton", Impact, sans-serif; font-size: 2.4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.vu-max { font-size: 1.1rem; color: var(--silk); margin-left: .15rem; }
.vu-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; font-size: .88rem; }
.vu-checks li { display: flex; gap: .55rem; align-items: baseline; color: var(--silk); }
.vu-checks li::before { content: ""; flex-shrink: 0; width: .55rem; height: .55rem; border-radius: 50%; background: #A3A7BC; transform: translateY(-.05rem); }
.vu-checks li.is-on { color: var(--ink); }
.vu-checks li.is-on::before { background: var(--led-green); box-shadow: 0 0 6px var(--led-green); }

.deck-monitor { grid-area: monitor; margin: 0; display: grid; gap: .8rem; justify-items: center; }
.deck-monitor .phone { width: 100%; }
.monitor-bg { position: absolute; inset: 0; filter: brightness(.72); }
.monitor-live { position: absolute; inset: 0; display: grid; place-items: center; }
.monitor-live[hidden] { display: none; }
.monitor-ai {
  position: absolute; top: 9%; left: 7%; font-family: "Anton", Impact, sans-serif; font-size: .8rem;
  color: #fff; background: rgba(0, 0, 0, .55); padding: .05rem .35rem; letter-spacing: .04em;
}
.monitor-caption {
  margin: 0; padding: 0 .6rem; text-align: center; line-height: 1.05;
  font-family: "Anton", Impact, sans-serif; font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  color: #fff; -webkit-text-stroke: 6px #000; paint-order: stroke fill;
}
.monitor-caption .is-long { font-size: .72em; }
.monitor-caption.is-still { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
.monitor-caption.cap-clean { font-family: "Instrument Sans", sans-serif; font-weight: 700; font-size: clamp(1.2rem, 2.2vw, 1.6rem); -webkit-text-stroke: 4px #000; }
.monitor-caption.cap-karaoke { font-size: clamp(1.35rem, 2.6vw, 2rem); }
.monitor-rec {
  position: absolute; top: 3.5%; right: 6%; margin: 0; display: flex; align-items: center; gap: .35rem;
  font-family: "Anton", Impact, sans-serif; font-size: .78rem; color: rgba(255, 255, 255, .55); letter-spacing: .06em;
  font-variant-numeric: tabular-nums; z-index: 2;
}
.is-rec .monitor-rec { color: #fff; }
.is-rec .led-rec { background: var(--rec); box-shadow: 0 0 8px var(--rec); animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.hero-phone-caption { color: var(--silk); font-size: .85rem; text-align: center; max-width: 30ch; }

/* Los pasos sí son una secuencia: contador de cinta, cada uno de un color. */
.step-list { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.8rem; }
.step-list li { counter-increment: step; --c: var(--key); }
.step-list li:nth-child(2) { --c: var(--cyan); }
.step-list li:nth-child(3) { --c: var(--magenta); }
.step-list li:nth-child(4) { --c: var(--green); }
.step-list li::before {
  content: "0" counter(step); display: inline-block; margin-bottom: .9rem;
  font-family: "Anton", Impact, sans-serif; font-size: 1.8rem; line-height: 1; color: var(--ink);
  background: var(--c); padding: .4rem .65rem; border: 2px solid var(--ink); border-radius: 9px;
  box-shadow: 4px 4px 0 var(--ink); font-variant-numeric: tabular-nums;
}
.step-list h3 { font-size: 1.15rem; }
.step-list p { color: var(--silk); }

.promise { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.why-list { padding: 0; margin: 0; list-style: none; display: grid; gap: 1rem; max-width: var(--measure); }
.why-list li { padding-left: 1.7rem; position: relative; font-size: 1.08rem; font-weight: 500; }
.why-list li::before { content: ""; position: absolute; left: 0; top: .42em; width: .75rem; height: .75rem; border-radius: 3px; background: var(--ink); }
.fair {
  background: var(--panel); border: 2px solid var(--ink); border-radius: var(--r-panel); padding: 1.4rem 1.6rem 1.5rem;
  box-shadow: var(--lift-big);
}
.fair h2 { margin-top: 0; font-family: "Anton", Impact, sans-serif; font-weight: 400; font-stretch: normal; font-size: 1.9rem; }
.fair-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.fair-list li { padding-left: 1.5rem; position: relative; }
.fair-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: .6rem; height: .6rem; border-radius: 50%; background: var(--led-green); box-shadow: 0 0 0 1.5px var(--ink); }

/* Herramientas gratis: dos teclas grandes de color. */
.tool-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.tool-link {
  display: grid; gap: .35rem; text-decoration: none; color: var(--ink); background: var(--panel);
  border: 2px solid var(--ink); border-radius: var(--r-panel); padding: 1.3rem 1.5rem 1.4rem;
  box-shadow: var(--lift-big); transition: transform .07s ease-out, box-shadow .07s ease-out;
}
.tool-link:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.tool-link:active { transform: translate(5px, 5px); box-shadow: 1px 1px 0 var(--ink); }
.tool-magenta { background: var(--magenta); }
.tool-green { background: var(--green); }
.tool-link-title { font-family: "Anton", Impact, sans-serif; font-weight: 400; font-size: 1.6rem; line-height: 1.1; }

.page-landing .pricing { margin-top: clamp(3.5rem, 7vw, 5rem); }

/* -- Precios: un panel, los planes separados por costuras ------------------ */

/* Subgrid: nombre, precio, letra pequeña, lista y botón caen en la misma fila en
   todos los planes, aunque uno tenga más texto que otro. */
.plans {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--panel); border: 2px solid var(--ink); border-radius: var(--r-panel); overflow: hidden;
  box-shadow: var(--lift-big);
}
.plan { padding: 1.4rem 1.3rem 1.5rem; border-left: 1px solid var(--seam); display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: .4rem; align-content: start; }
.plan:first-child { border-left: 0; }
.plan h3 { font-size: 1.15rem; margin: 0; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.plan-flag { font-size: .72rem; font-weight: 700; font-stretch: 85%; background: var(--magenta); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 5px; padding: .05rem .45rem; }
.plan-price { margin: .3rem 0 0; }
.amount { font-family: "Anton", Impact, sans-serif; font-size: 2.4rem; margin-right: .2rem; }
.plan-sub { font-size: .85rem; color: var(--silk); margin: 0; }
.plan-features { list-style: none; padding: 0; margin: .6rem 0 1rem; display: grid; align-content: start; gap: .35rem; font-size: .95rem; }
.plan > .btn, .plan-form, .plan-now { align-self: end; }
.plan-features li { padding-left: 1rem; position: relative; }
.plan-features li::before { content: ""; position: absolute; left: 0; top: .62em; width: .35rem; height: .35rem; border-radius: 50%; background: var(--ink); }
.plan-features .plan-key { font-weight: 650; padding-left: 0; }
.plan-features .plan-inherit { color: var(--silk); font-size: .88rem; margin-top: .3rem; padding-left: 0; }
.plan-features .plan-key::before, .plan-features .plan-inherit::before { display: none; }
.plan-form { display: grid; gap: .7rem; }
.plan-now { font-weight: 650; display: flex; align-items: center; gap: .45rem; }
.plan-now::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--led-green); box-shadow: 0 0 6px var(--led-green); }
.plan-highlight { background: #FFF3B3; }
.plan-current { background: color-mix(in srgb, var(--green) 14%, var(--panel)); }
.terms-line { font-size: .8rem; color: var(--silk); margin: .5rem 0 0; }
.terms-wide { max-width: 110ch; margin-top: 1.1rem; }

.faq details { border-top: 2px solid var(--ink); padding: 1rem 0; max-width: 860px; }
.faq details:last-of-type { border-bottom: 2px solid var(--ink); padding-bottom: 1.1rem; }
.faq summary { font-weight: 700; font-size: 1.1rem; cursor: pointer; }
.faq details p { margin: .7rem 0 0; color: var(--silk); max-width: var(--measure); }

/* Cierre: otra vez el subtítulo quemado, ahora blanco sobre magenta. */
.final { display: grid; justify-items: center; text-align: center; }
.final-title {
  font-family: "Anton", Impact, sans-serif; font-weight: 400; font-stretch: normal;
  font-size: clamp(2.8rem, 7vw, 5.4rem); line-height: 1; margin: 0 0 1.3rem;
  color: #fff; -webkit-text-stroke: .1em var(--ink); paint-order: stroke fill; text-shadow: .05em .06em 0 var(--ink);
}
.final p { font-size: 1.15rem; font-weight: 600; margin: 0 0 1.5rem; max-width: 40ch; }

/* -- Acceso ---------------------------------------------------------------- */

/* Las páginas de acceso continúan la franja azul de la portada. */
body.page-auth { background: var(--signal); }
.page-auth main { color: #fff; --focus: var(--key); }
.page-auth .auth { color: var(--ink); --focus: var(--signal); }
.auth {
  max-width: 440px; margin: 1rem auto; background: var(--panel); border-radius: var(--r-panel); padding: 2rem;
  border: 2px solid var(--ink); box-shadow: var(--lift-big);
}

/* Acceso con Clerk: lo que obtienes a la izquierda, el panel de Clerk a la derecha. */
.auth-split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(2rem, 6vw, 5rem);
  align-items: center; max-width: 980px; margin: 1rem auto;
}
.auth-pitch .display-small {
  font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.02; margin-bottom: 1.4rem; color: var(--key);
  -webkit-text-stroke: .1em var(--ink); paint-order: stroke fill; text-shadow: .05em .06em 0 var(--ink);
}
.auth-pitch .fair-list li { font-size: 1.05rem; }
.auth-pitch .fair-list li::before { background: var(--key); }
.auth-panel { display: grid; gap: .8rem; justify-items: center; }
.auth-panel .auth { width: 100%; margin: 0; }
.auth-title { margin: 0 0 .4rem; font-size: 2rem; }
.auth-links { margin: 1rem 0 .3rem; }
.clerk-mount { width: 100%; min-height: 360px; display: grid; place-items: center; }
/* Sin sombra propia del componente: va dentro del panel de la mesa. */
.clerk-mount .cl-cardBox { border: 2px solid var(--ink) !important; box-shadow: var(--lift-big) !important; }
.clerk-mount .cl-card { box-shadow: none !important; }
/* Lo que queda fuera del panel (cargando, aviso de condiciones, error) va sobre el azul. */
.page-auth .auth-panel > .hint, .page-auth .clerk-mount > .muted { color: #fff; }
.page-auth .auth-panel > .form-error { background: var(--panel); color: var(--danger); border: 2px solid var(--ink); border-radius: var(--r-key); padding: .6rem .9rem; }
.cf-turnstile { min-height: 65px; }

/* Banner de cookies: una tira de panel abajo, las dos teclas iguales. */
aside.consent {
  position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 20;
  width: min(760px, calc(100% - 2rem)); display: flex; gap: .8rem 1.2rem; align-items: center; flex-wrap: wrap;
  background: var(--panel); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--r-panel); padding: .9rem 1.1rem;
  box-shadow: var(--lift-big);
}
aside.consent p { margin: 0; flex: 1 1 320px; font-size: .9rem; }
.consent-keys { display: flex; gap: .6rem; flex-wrap: wrap; }
.footer-cookies { font-size: inherit; color: inherit; padding: .2rem 0; }

/* -- Biblioteca: monitores en miniatura ------------------------------------ */

.library { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1.6rem 1.4rem; }
.tile { display: grid; gap: .5rem; text-decoration: none; }
.tile-frame {
  position: relative; aspect-ratio: 9 / 16; background: var(--screen); border-radius: 14px; overflow: hidden;
  display: grid; place-items: center; box-shadow: 0 0 0 5px var(--bezel), 0 9px 0 0 var(--key-grey-edge);
  margin: 5px 5px 9px;
}
.tile-frame img { width: 100%; height: 100%; object-fit: cover; }
.tile:hover .tile-frame { box-shadow: 0 0 0 5px var(--key), 0 9px 0 0 var(--key-edge); }
/* Sin miniatura: el gancho como subtítulo y, abajo, el LED de estado. */
.tile-hook {
  padding: 0 .7rem; text-align: center; color: #fff; text-transform: uppercase;
  font-family: "Anton", Impact, sans-serif; font-size: 1.05rem; line-height: 1.15;
  -webkit-text-stroke: 4px #000; paint-order: stroke fill;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden;
}
.tile-frame .tile-status { position: absolute; left: .6rem; right: .6rem; bottom: .7rem; display: block; color: #fff; font-size: .8rem; font-weight: 600; line-height: 1.3; text-align: center; }
.tile-frame .tile-status::before { display: inline-block; margin-right: .4rem; vertical-align: -.02em; }
.tile-status.status-failed { color: #FF8A80; }
.tile-title { font-weight: 650; line-height: 1.3; font-stretch: 92%; }
.tile-meta { font-size: .85rem; }
.score-badge {
  position: absolute; top: .45rem; right: .45rem; font-family: "Anton", Impact, sans-serif; font-size: 1rem;
  padding: .05rem .45rem; border-radius: 5px; background: rgba(0, 0, 0, .78); color: #fff; font-variant-numeric: tabular-nums;
}
.empty {
  background: var(--panel); border-radius: var(--r-panel); padding: 2.5rem; text-align: center;
  box-shadow: var(--outline);
}
.empty .actions { justify-content: center; }

/* Lecturas LCD: verde, amarillo, ámbar o rojo según la nota. */
.grade-a { color: #39FF6A; }
.grade-b { color: #FFDE00; }
.grade-c { color: #FDB022; }
.grade-d { color: #FF6B5E; }

/* Panel de progreso hacia la monetización */
.road {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem;
  background: var(--panel); border-radius: var(--r-panel); padding: 1.3rem 1.5rem; margin-bottom: 2rem;
  box-shadow: var(--outline);
}
.road h2 { margin-top: 0; font-size: 1.1rem; }
.road h3 { font-size: 1rem; margin: 0 0 .4rem; }
.road-count { font-family: "Anton", Impact, sans-serif; font-size: 2.3rem; line-height: 1; margin: 0 0 .7rem; }
.road-chips { display: flex; gap: .5rem; flex-wrap: wrap; margin: .8rem 0 0; }
.chip { border-radius: 5px; padding: .15rem .6rem; font-size: .85rem; font-variant-numeric: tabular-nums; background: var(--screen); color: var(--key); }
.road-ypp { border-left: 1px solid var(--seam); padding-left: 1.5rem; }
.ypp-tier { font-weight: 600; margin: .6rem 0 .1rem; font-size: .92rem; }
.ypp-edit { margin-top: .8rem; }
.ypp-edit > summary { cursor: pointer; font-weight: 600; font-size: .9rem; padding: .35rem 0; }
.ypp-form { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; align-items: end; margin: .8rem 0 .5rem; }
.ypp-form button { grid-column: 1 / -1; justify-self: start; }
.ypp-form .ypp-format { grid-column: 1 / -1; margin: 0; }
.ypp-form label { font-size: .8rem; }
.ypp-form input { padding: .4rem .5rem; }
.ypp-note { font-size: .82rem; color: var(--silk); border-top: 1px dashed var(--seam); padding-top: .5rem; }

/* -- Página del vídeo ------------------------------------------------------ */

.video-page { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.video-stage { position: sticky; top: 1rem; display: grid; gap: 1.2rem; justify-items: center; }
.stage-note { margin: 0; max-width: 30ch; }
.stage-play { width: min(100%, 260px); }
.video-stage .monitor-caption { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.video-title { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
/* LED de estado: verde listo, amarillo borrador, rojo parpadeando si graba. */
.status-line { font-weight: 650; display: inline-flex; gap: .55rem; align-items: center; font-stretch: 90%; }
.status-line::before { content: ""; width: .65rem; height: .65rem; border-radius: 50%; background: #9C9F99; }
.status-done::before { background: var(--led-green); box-shadow: 0 0 7px var(--led-green); }
.status-draft::before { background: var(--key); box-shadow: 0 0 7px var(--key); }
.status-failed::before { background: var(--rec); }
.status-script_queued::before, .status-scripting::before, .status-render_queued::before, .status-rendering::before {
  background: var(--rec); box-shadow: 0 0 8px var(--rec); animation: blink 1s steps(2, start) infinite;
}
.next-milestone { font-weight: 600; }
.celebrate {
  background: var(--screen); color: #fff; border-radius: var(--r-panel); padding: 1rem 1.2rem; margin-bottom: 1rem;
  box-shadow: 0 0 0 3px var(--bezel);
}
.celebrate p { margin: 0; }
.celebrate-title { font-family: "Anton", Impact, sans-serif; font-size: 1.6rem; color: var(--key); }

.download-panel { display: grid; gap: .9rem; justify-items: start; margin: 1rem 0 2rem; }
.checklist-box { background: var(--panel); border-radius: var(--r-panel); padding: .9rem 1.1rem; width: 100%; box-shadow: var(--outline); }
.checklist-box h2 { font-size: 1rem; margin: 0 0 .5rem; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.checklist label { display: flex; gap: .55rem; align-items: flex-start; font-weight: 400; font-size: .9rem; }
.checklist input { margin-top: .25rem; flex-shrink: 0; }
.download-more { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin: 0; font-size: .95rem; }
.download-more a { padding: .2rem 0; }
.download-panel .hint { margin: 0; }

.copy-list { display: grid; gap: .8rem; }
.copy-item { background: var(--panel); border-radius: var(--r-panel); padding: .8rem 1rem; box-shadow: var(--outline); }
.copy-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .4rem; }
.copy-label { font-weight: 600; font-size: .9rem; }
.copy-text { margin: 0; font-size: .95rem; overflow-wrap: anywhere; }
.btn-copy {
  font: inherit; font-size: .88rem; font-weight: 650; font-stretch: 90%; color: var(--ink); cursor: pointer; flex-shrink: 0;
  background: var(--key-grey); border: 2px solid var(--ink); border-radius: var(--r-key);
  padding: .3rem .8rem; min-height: 36px; box-shadow: 0 3px 0 var(--ink);
}
.btn-copy:active { transform: translateY(2px); box-shadow: none; }
.credits ul { padding-left: 1.2rem; font-size: .9rem; }
.danger-zone { margin-top: 2.5rem; display: block; }

/* Viral Score: lectura LCD con barra de nivel. */
.vscore { background: var(--panel); border-radius: var(--r-panel); padding: 1rem 1.2rem; margin-bottom: 1.5rem; box-shadow: var(--outline); }
.vscore-head { display: flex; gap: 1rem; align-items: center; }
.vscore-head h2 { margin: 0 0 .2rem; font-size: 1.1rem; }
.vscore-number {
  position: relative; flex-shrink: 0; margin: 0; width: 4.6rem; height: 3.6rem; border-radius: 8px;
  display: grid; place-items: center; background: var(--screen); box-shadow: 0 0 0 3px var(--bezel);
  font-family: "Anton", Impact, sans-serif; font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; overflow: hidden;
}
.vscore-number::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: var(--level, 0%); background: currentColor; }
.vscore-checks { list-style: none; padding: 0; margin: .9rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem 1rem; font-size: .9rem; }
.vscore-checks li { padding-left: 1.2rem; position: relative; }
.vscore-checks li::before { content: ""; position: absolute; left: 0; top: .5em; width: .55rem; height: .55rem; border-radius: 50%; }
.vscore-checks li.ok::before { background: var(--led-green); box-shadow: 0 0 6px var(--led-green); }
.vscore-checks li.ko::before { background: var(--rec); box-shadow: 0 0 6px var(--rec); }

.originality { padding: .55rem .9rem; background: var(--panel); border-radius: var(--r-key); margin: 0 0 1.2rem; display: grid; gap: .2rem; box-shadow: inset 0 0 0 1px var(--seam), inset 4px 0 0 var(--seam); }
.orig-high { box-shadow: inset 0 0 0 1px var(--seam), inset 4px 0 0 var(--led-green); }
.orig-medium { box-shadow: inset 0 0 0 1px var(--seam), inset 4px 0 0 var(--amber); }
.orig-low { box-shadow: inset 0 0 0 1px var(--seam), inset 4px 0 0 var(--rec); }

/* Ganchos: teclas de selección; la elegida queda hundida. */
.hooks { margin-bottom: 1.5rem; }
.hooks h2 { margin-top: 0; font-size: 1.1rem; }
.hook-options { display: grid; gap: .6rem; }
.hook-option {
  font: inherit; text-align: left; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem;
  background: var(--key-grey); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--r-key);
  padding: .7rem .9rem; box-shadow: var(--lift); margin-bottom: 4px;
  transition: transform .06s ease-out, box-shadow .06s ease-out;
}
.hook-option.is-current { transform: translateY(4px); box-shadow: inset 6px 0 0 var(--key); }
.hook-score { font-variant-numeric: tabular-nums; color: var(--silk); font-size: .85rem; white-space: nowrap; }

/* El guion como línea de tiempo: gancho → escenas → enlace → cierre */
.script-heading { margin-top: 1.5rem; font-size: 1.5rem; }
.beats { list-style: none; padding: 0 0 0 1.4rem; margin: .5rem 0 0; border-left: 2px solid var(--seam); display: grid; gap: 1.2rem; }
.beat { position: relative; display: grid; gap: .5rem; }
.beat::before { content: ""; position: absolute; left: calc(-1.4rem - 7px); top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--chassis); border: 2px solid var(--ink); }
.beat-hook::before, .beat-loop::before { background: var(--key); border-color: var(--key-edge); }
.beat .query { font-weight: 400; font-size: .85rem; color: var(--silk); }
.beat .query input { font-size: .9rem; padding: .4rem .6rem; }
.estimate { font-variant-numeric: tabular-nums; margin: 0; color: var(--silk); }
.script-bar {
  position: sticky; bottom: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap;
  background: var(--panel); border-radius: var(--r-panel); padding: .7rem .9rem .6rem;
  box-shadow: var(--outline), 0 -8px 16px -8px color-mix(in srgb, var(--ink) 25%, transparent);
}
.script-bar .actions { gap: .6rem; }
.script-bar .estimate::before { content: ""; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--key); margin-right: .45rem; box-shadow: 0 0 6px var(--key); }

/* Nuevo vídeo: formulario + monitor de subtítulos fijo a la derecha. */
.compose {
  display: grid; grid-template-columns: minmax(0, 680px) minmax(230px, 280px);
  justify-content: space-between; gap: clamp(2rem, 6vw, 5rem); align-items: start;
}
.compose-monitor { position: sticky; top: 1.5rem; display: grid; gap: 1rem; justify-items: center; padding-top: .4rem; }
.compose-monitor .deck-monitor { grid-area: auto; width: 100%; }
.compose-monitor .deck-monitor .phone { width: 100%; }
.compose-monitor .key-play { width: 100%; }

/* -- Canales, facturación, cuenta ----------------------------------------- */

.channel-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; }
.channel-list li { display: flex; justify-content: space-between; gap: 1rem; align-items: center; background: var(--panel); border-radius: var(--r-key); padding: .8rem 1rem; box-shadow: var(--outline); }
.channel-list li div { display: grid; }
.channel-list li .channel-actions { display: flex; gap: 1rem; align-items: center; flex-shrink: 0; }
.balance {
  background: var(--panel); border-radius: var(--r-panel); padding: 1.3rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap;
  box-shadow: var(--outline);
}
.balance p:last-child { margin-bottom: 0; }
.balance-number { font-family: "Anton", Impact, sans-serif; font-size: 2rem; margin: 0 0 .2rem; }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.pack { background: var(--panel); border-radius: var(--r-panel); padding: 1.2rem; display: grid; gap: .5rem; justify-items: start; box-shadow: var(--outline); }
.pack p { margin: 0; }
.pack-credits { font-family: "Anton", Impact, sans-serif; font-size: 1.6rem; }
.danger-box { border-radius: var(--r-panel); padding: 1.2rem; box-shadow: inset 0 0 0 1px var(--danger); }
.ref-link { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; background: var(--field); border-radius: var(--r-key); padding: .5rem .8rem; box-shadow: inset 0 0 0 1px var(--field-line); }

.back-link { margin: 0 0 .8rem; font-size: .95rem; }
.order-summary { background: var(--panel); border-radius: var(--r-panel); padding: 1.2rem 1.4rem; margin-bottom: 1.4rem; box-shadow: var(--outline), inset 0 6px 0 var(--key); }
.order-product { font-weight: 700; font-size: 1.15rem; margin: 0; }
.order-price { margin: .2rem 0 .6rem; }
.order-price .amount { font-size: 2.4rem; }
.order-facts { margin: 0; padding-left: 1.2rem; display: grid; gap: .3rem; }
.confirm-form .btn-large { justify-self: stretch; }

/* -- Herramientas ---------------------------------------------------------- */

.ideas { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .9rem; }
.idea { background: var(--panel); border-radius: var(--r-panel); padding: 1rem 1.2rem; box-shadow: var(--outline); }
.idea-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.idea h3 { margin: 0 0 .4rem; }
.idea p { margin: 0 0 .4rem; }
.idea-hook { font-size: 1.05rem; }
.tool-form button[disabled] { opacity: .7; cursor: progress; }
.earnings { background: var(--panel); border-radius: var(--r-panel); padding: 1.3rem; box-shadow: var(--outline); }
.earn-views { font-variant-numeric: tabular-nums; font-weight: 600; }
.earn-result { background: var(--screen); color: var(--key); border-radius: 10px; padding: .8rem 1rem; box-shadow: 0 0 0 3px var(--bezel); }
.earn-result .muted { color: #B9BBB4; margin: 0; }
.earn-amount { font-family: "Anton", Impact, sans-serif; font-size: 2.6rem; margin: 0; font-variant-numeric: tabular-nums; }
.earn-why { margin: .3rem 0 0; color: #E9EAF0; font-size: .92rem; line-height: 1.4; }

/* -- Admin y legal --------------------------------------------------------- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.stats > div { background: var(--panel); border-radius: var(--r-key); padding: .9rem 1rem; box-shadow: var(--outline); }
.stat { font-family: "Anton", Impact, sans-serif; font-size: 1.7rem; margin: 0; }
.stats .muted { margin: 0; font-size: .85rem; }
table { width: 100%; border-collapse: collapse; background: var(--panel); font-size: .9rem; }
th, td { text-align: left; padding: .5rem .7rem; border-bottom: 1px solid var(--seam); vertical-align: top; }
th { font-weight: 600; }
.grant input { width: 5rem; padding: .25rem .4rem; }
.admin { overflow-x: auto; }

.legal { max-width: var(--measure); }
.legal h2 { font-size: 1.15rem; }
.legal blockquote { margin: 0; padding: .6rem 1rem; background: var(--panel); border-radius: var(--r-key); box-shadow: inset 0 0 0 1px var(--seam), inset 4px 0 0 var(--seam); }
.table-wrap { overflow-x: auto; margin: 1rem 0; }
.legal table td, .legal table th { min-width: 9rem; }
.verify-result { list-style: none; padding: 0; display: grid; gap: .5rem; }
.verify-result li { padding: .6rem .9rem .6rem 2rem; background: var(--panel); border-radius: var(--r-key); position: relative; box-shadow: inset 0 0 0 1px var(--seam); }
.verify-result li::before { content: ""; position: absolute; left: .85rem; top: 1.1em; width: .55rem; height: .55rem; border-radius: 50%; background: #9C9F99; }
.verify-result li.ok::before { background: var(--led-green); box-shadow: 0 0 6px var(--led-green); }

/* -- Responsive ------------------------------------------------------------ */

@media (max-width: 1040px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan:nth-child(3) { border-left: 0; }
  .plan:nth-child(n+3) { border-top: 1px solid var(--seam); }
}
@media (max-width: 1180px) {
  .deck { grid-template-columns: minmax(0, 1fr) minmax(200px, 250px); grid-template-areas: "head head" "controls monitor" "meter monitor"; }
}
@media (max-width: 1000px) {
  .compose { grid-template-columns: minmax(0, 1fr); }
  .compose-monitor { display: none; }
}
@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; gap: 1.5rem; }
  .auth-pitch .fair-list { display: none; }
  .hero { grid-template-columns: 1fr; gap: 1.2rem; }
  .hero-title { max-width: 12ch; }
  .hero-stage { max-width: 420px; width: 100%; justify-self: center; }
  .reel { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.4rem; }
  .step-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-page { grid-template-columns: 1fr; }
  .video-stage { position: static; }
  .video-stage .phone { width: min(260px, 70vw); }
  .video-stage.is-mock { display: none; }
  .road { grid-template-columns: 1fr; }
  .road-ypp { border-left: 0; padding-left: 0; border-top: 1px solid var(--seam); padding-top: 1rem; }
  .promise { grid-template-columns: 1fr; gap: 2.4rem; }
}
@media (max-width: 760px) {
  .has-menu .topnav {
    display: none; order: 3; width: 100%; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid rgba(255, 255, 255, .3);
  }
  .has-menu .topnav.is-open { display: flex; }
  .has-menu .topnav a, .has-menu .topnav form { border-bottom: 1px solid rgba(255, 255, 255, .3); }
  .has-menu .topnav a, .has-menu .nav-logout { display: block; padding: .8rem 0; width: 100%; text-align: left; }
  .topbar-quick { margin-left: auto; }
  .deck { grid-template-columns: 1fr; grid-template-areas: "head" "controls" "monitor" "meter"; padding: 1.2rem 1.1rem 1.4rem; }
  .deck-monitor .phone { width: min(230px, 66vw); }
  /* Cinco teclas en móvil: tres y dos, la segunda fila centrada. */
  .style-keys { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem .7rem; }
  .style-key { flex: 0 0 calc((100% - 1.4rem) / 3); }
}
@media (min-width: 761px) {
  .menu-toggle { display: none; }
}
/* Con sesión hay ocho enlaces y en tablet no caben en una línea (los créditos
   caían solos a otra): el menú se pliega hasta 960 px. */
@media (min-width: 761px) and (max-width: 960px) {
  .topbar-app .menu-toggle { display: inline-block; }
  .topbar-app .topbar-quick { margin-left: auto; }
  .has-menu .topbar-app .topnav {
    display: none; order: 3; width: 100%; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid rgba(255, 255, 255, .3);
  }
  .has-menu .topbar-app .topnav.is-open { display: flex; }
  .has-menu .topbar-app .topnav a, .has-menu .topbar-app .topnav form { border-bottom: 1px solid rgba(255, 255, 255, .3); }
  .has-menu .topbar-app .topnav a, .has-menu .topbar-app .nav-logout { display: block; padding: .8rem 0; width: 100%; text-align: left; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  h1 { font-size: 2rem; }
  .grid-2, .step-list, .plans, .tool-links, .vscore-checks, .ypp-form { grid-template-columns: 1fr; }
  .plan { border-left: 0; border-top: 1px solid var(--seam); }
  .plan:first-child { border-top: 0; }
  .auth { padding: 1.3rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .phone-hero { width: min(235px, 64vw); }
  .idea-card { width: 72%; padding: .55rem .75rem .65rem; }
  .idea-card p { font-size: .92rem; }
  .out-label { bottom: 1.6rem; font-size: .85rem; }
  .reel { column-gap: .9rem; }
  .reel-title { font-size: .85rem; }
  .fair, .tool-link { padding: 1.1rem 1.2rem 1.2rem; }
  .library { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem .9rem; }
  .tile-title { font-size: .92rem; }
  .deck-keys .btn { flex: 1 1 100%; }
  /* Barra del guion compacta: la duración arriba y las dos teclas en una fila. */
  .script-bar { padding: .5rem .6rem .45rem; gap: .35rem; }
  .script-bar .estimate { font-size: .88rem; }
  .script-bar .actions { width: 100%; flex-wrap: nowrap; }
  .script-bar .actions .btn { flex: 1 1 0; padding-inline: .5rem; }
}
/* =========================================================================
   Bloque 19: Temporada, "Tu voz, tus clips", coach y reto del mes.
   Los mismos materiales de la mesa: la Temporada es una cinta de 20 pistas
   (cara A = semanas 1-2, cara B = 3-4), cada semana con un color de la carta
   de ajuste; la grabadora es un teleprompter en una pantalla LCD con el vúmetro.
   ========================================================================= */

/* Lectura LCD: verde sobre pantalla, cifras tabulares (contadores de cinta). */
.lcd {
  display: inline-flex; align-items: baseline; gap: .15rem; margin: 0;
  font-family: "Anton", Impact, sans-serif; font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums;
  background: var(--screen); color: #39FF6A; padding: .35rem .6rem .3rem; border-radius: 6px;
  box-shadow: 0 0 0 3px var(--bezel), inset 0 2px 6px rgba(0, 0, 0, .6);
}
.lcd-max { font-size: .55em; color: #8FD9A4; }
.lcd-label { font-family: "Instrument Sans", sans-serif; font-size: .62rem; font-weight: 700; color: #8FD9A4; margin-right: .45rem; align-self: center; letter-spacing: .04em; }
.lcd-arrow { color: var(--key); margin: 0 .25rem; }
.chip-ok { background: var(--green); color: var(--ink); }
.week-key { --week: var(--key); }
.week-cyan { --week: var(--cyan); }
.week-magenta { --week: var(--magenta); }
.week-green { --week: var(--green); }

/* -- Grabadora con teleprompter (P6) -------------------------------------- */
.recorder { max-width: var(--page); }
.recorder-head { max-width: 46rem; }
.recorder-desk { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 1.6rem; align-items: start; }
.prompter {
  position: relative; height: min(56vh, 30rem); overflow-y: auto; scroll-behavior: smooth;
  background: var(--screen); color: #fff; border-radius: var(--r-screen); padding: 2rem 1.6rem 40vh;
  box-shadow: 0 0 0 6px var(--bezel), 0 10px 0 6px var(--ink);
}
.prompter:focus-visible { outline: 3px solid var(--key); outline-offset: 8px; }
.prompter-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.prompter-line {
  font-family: "Anton", Impact, sans-serif; font-size: clamp(1.45rem, 3.2vw, 2.25rem); line-height: 1.18;
  color: rgba(255, 255, 255, .62); transition: color .2s ease-out;
}
.prompter-line.is-read { color: rgba(255, 255, 255, .4); }
.prompter-line.is-current { color: var(--key); }
.recorder-panel {
  display: grid; gap: 1rem; background: var(--panel); border-radius: var(--r-panel); padding: 1.2rem 1.3rem 1.4rem;
  box-shadow: var(--outline);
}
.recorder-meter { display: grid; gap: .5rem; justify-items: start; }
.recorder-clock { font-size: 1.6rem; }
.recorder-state { margin: 0; font-weight: 650; min-height: 1.6em; }
.recorder-state[data-state="denied"], .recorder-state[data-state="error"], .recorder-state[data-state="unsupported"],
.recorder-state[data-state="rights"], .recorder-state[data-state="too-long"] { color: var(--danger); }
.transport { display: flex; gap: .7rem; flex-wrap: wrap; }
.key-rec .led-rec { width: .7rem; height: .7rem; }
.recorder.is-rec .led-rec { background: var(--rec); box-shadow: 0 0 8px var(--rec); animation: blink 1s steps(2, start) infinite; }
.prompter-speed { display: grid; gap: .2rem; }
.take { display: grid; gap: .8rem; }
.take audio, .media-block audio { width: 100%; }
.recorder-file { margin-top: .2rem; }

/* -- "Tu voz, tus clips" en el borrador (P5, P7) -------------------------- */
.media { background: var(--panel); border-radius: var(--r-panel); padding: 1.1rem 1.3rem 1.3rem; margin: 1.5rem 0; box-shadow: var(--outline); }
.media > h2 { margin-top: 0; font-size: 1.2rem; }
.media-block { display: grid; gap: .7rem; padding: .9rem 0; border-top: 1px solid var(--seam); }
.media > h2 + .media-block { border-top: 0; padding-top: 0; }
.media-block h3 { margin: 0; }
.media-block .hint { margin: 0; }
.dropzone {
  display: grid; gap: .3rem; place-items: center; text-align: center; cursor: pointer;
  padding: 1.6rem 1rem; border-radius: var(--r-panel); border: 2px dashed var(--ink); background: var(--chassis);
}
.dropzone:hover, .dropzone.is-over { background: color-mix(in srgb, var(--key) 30%, var(--chassis)); }
.dropzone:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.dropzone-title { font-weight: 700; font-stretch: 90%; }
.upload-queue, .asset-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.asset-list-form { display: grid; gap: .7rem; justify-items: start; }
.asset-list-form .asset-list { width: 100%; }
.asset {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: .5rem .8rem; align-items: center;
  padding: .5rem .6rem; border-radius: var(--r-key); box-shadow: inset 0 0 0 1px var(--seam);
}
.upload-queue .asset { grid-template-columns: minmax(0, 1fr); }
.asset-thumb { width: 64px; aspect-ratio: 9 / 16; border-radius: 6px; background: var(--screen); overflow: hidden; }
.asset-thumb img { width: 100%; height: 100%; object-fit: cover; }
.asset-body { display: grid; gap: .1rem; min-width: 0; }
.asset-name { font-weight: 600; overflow-wrap: anywhere; }
.asset-scene { font-size: .82rem; }
.asset-scene select { padding: .3rem .4rem; }
.asset-state { display: inline-flex; gap: .45rem; align-items: center; font-size: .88rem; margin: 0; }
.asset-state .led { width: .55rem; height: .55rem; border-radius: 50%; background: #9C9F99; flex-shrink: 0; }
.state-ready .led { background: var(--led-green); box-shadow: 0 0 6px var(--led-green); }
.state-wait .led { background: var(--amber); box-shadow: 0 0 6px var(--amber); animation: blink 1.2s steps(2, start) infinite; }
.state-rejected { color: var(--danger); }
.state-rejected .led { background: var(--rec); }
.media-missing { margin: .8rem 0 0; padding: .7rem 1rem .7rem 2rem; border-radius: var(--r-key); box-shadow: inset 0 0 0 1px var(--seam), inset 4px 0 0 var(--rec); }
label.is-missing { color: var(--danger); }

/* -- Temporada: cinta de 20 pistas (P2, P3) ------------------------------- */
.season-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.2rem; flex-wrap: wrap; }
.season-head .lede { margin-bottom: 0; }
.season-lcds { display: flex; gap: .9rem; flex-wrap: wrap; }
.season-meta { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin: 1.2rem 0 .6rem; }
.season-progress progress { width: 100%; }
.season-next { margin: 1.2rem 0; }
.tape {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem;
  background: var(--ink); border-radius: 22px; padding: 1.3rem; margin: 1rem 0 .8rem;
  box-shadow: var(--lift-big);
}
.tape-side { background: #F5F1DE; border-radius: 12px; padding: .9rem 1rem 1rem; display: grid; gap: .9rem; align-content: start; }
.tape-label { display: flex; align-items: center; gap: .6rem; margin: 0; font-weight: 700; font-stretch: 86%; }
.tape-letter {
  display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  font-family: "Anton", Impact, sans-serif; font-size: 1.15rem; background: var(--ink); color: #F5F1DE;
}
.tape-week { display: grid; gap: .4rem; border-top: 6px solid var(--week); padding-top: .55rem; }
.tape-week-title { margin: 0; font-weight: 700; font-size: .95rem; display: flex; gap: .45rem; flex-wrap: wrap; align-items: center; }
.tape-week-n { background: var(--week); border: 2px solid var(--ink); border-radius: 6px; padding: 0 .4rem; font-size: .8rem; }
.tracks { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.track-link {
  display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; gap: .6rem; align-items: center;
  min-height: 44px; padding: .45rem .5rem; border-radius: 7px; text-decoration: none; color: var(--ink);
}
.track-link:hover { background: color-mix(in srgb, var(--week) 30%, #F5F1DE); }
.track-n { font-family: "Anton", Impact, sans-serif; font-size: 1.15rem; font-variant-numeric: tabular-nums; color: var(--silk); }
.track-title { line-height: 1.3; font-size: .95rem; }
.track-led { width: .65rem; height: .65rem; border-radius: 50%; background: #B9BCCB; }
.track-done .track-led { background: var(--led-green); box-shadow: 0 0 6px var(--led-green); }
.track-done .track-n { color: var(--ink); }
.track-current .track-link { background: var(--week); box-shadow: inset 0 0 0 2px var(--ink); font-weight: 650; }
.track-current .track-n { color: var(--ink); }
.track-current .track-led { background: var(--rec); box-shadow: 0 0 8px var(--rec); }
.tape-compact { grid-template-columns: 1fr; padding: .8rem; box-shadow: none; }
.weekday-keys { display: flex; gap: .45rem; flex-wrap: wrap; }
.weekday-keys legend { width: 100%; }
.weekday-key { position: relative; display: inline-block; cursor: pointer; }
.weekday-key input { position: absolute; opacity: 0; }
.weekday-key span {
  display: inline-grid; place-items: center; min-width: 3rem; min-height: 44px; padding: 0 .6rem;
  border: 2px solid var(--ink); border-radius: var(--r-key); background: var(--key-grey); box-shadow: var(--lift); font-weight: 650;
}
.weekday-key input:checked + span { background: var(--key); transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.weekday-key input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.season-reminders { background: var(--panel); border-radius: var(--r-panel); padding: 1.1rem 1.3rem 1.3rem; margin-top: 1.5rem; box-shadow: var(--outline); }
.season-reminders h2 { margin-top: 0; font-size: 1.15rem; }

.season-card {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.4rem;
  background: var(--panel); border-radius: var(--r-panel); padding: 1.2rem 1.4rem; margin-bottom: 1.5rem;
  box-shadow: var(--outline), inset 0 8px 0 var(--week, var(--key));
}
.season-card h2 { margin-top: .3rem; font-size: 1.15rem; }
.season-card progress { width: 100%; }
.season-card-count { display: flex; gap: .7rem; align-items: center; margin: 0 0 .6rem; font-weight: 650; }
.season-card-coach { border-left: 1px solid var(--seam); padding-left: 1.3rem; }
.season-card-coach p:last-child { margin: 0; }
.season-price-note { font-weight: 700; margin: .3rem 0 .8rem; }

.season-offer {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr); gap: 1.6rem; align-items: center;
  background: var(--panel); border-radius: var(--r-panel); padding: 1.5rem 1.6rem; box-shadow: var(--outline);
}
.season-offer-title { font-family: "Anton", Impact, sans-serif; font-weight: 400; font-stretch: normal; font-size: 2.2rem; margin-top: 0; }
.season-offer-buy { display: grid; justify-items: start; gap: .3rem; }

/* -- Sesión (P4) y resumen (P10) ------------------------------------------ */
.session-kicker { display: flex; gap: .6rem; align-items: center; font-weight: 650; margin-bottom: .3rem; }
.session-kicker .track-n { background: var(--week); border: 2px solid var(--ink); border-radius: 6px; padding: .1rem .45rem; color: var(--ink); }
.lesson, .lesson-task { background: var(--panel); border-radius: var(--r-panel); padding: 1.1rem 1.3rem 1.2rem; margin: 1rem 0; box-shadow: var(--outline); }
.lesson { box-shadow: var(--outline), inset 6px 0 0 var(--week); }
.lesson-h { margin: 0 0 .5rem; font-size: 1.05rem; }
.lesson-task h3.lesson-h { margin-top: 1rem; }
.lesson-example { margin: 0; padding: .6rem .8rem; border-radius: var(--r-key); background: var(--chassis); }
.lesson-example .silk { display: block; }
.session-result { margin: .8rem 0 0; font-weight: 650; }
.session-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.2rem 0; }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.2rem 0; }
.summary-cell { background: var(--panel); border-radius: var(--r-panel); padding: 1rem 1.1rem; box-shadow: var(--outline); }
.summary-cell h2 { margin: 0 0 .6rem; font-size: 1rem; }
.summary-lcd { font-size: 1.5rem; }
.summary-paragraph { font-size: 1.08rem; max-width: var(--measure); }
.learned { padding-left: 1.3rem; display: grid; gap: .4rem; }
.badge-season { display: inline-flex; gap: .7rem; align-items: center; font-weight: 700; margin: 0 0 1rem; }
.badge-mark {
  display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%;
  font-family: "Anton", Impact, sans-serif; font-size: 1.4rem; background: var(--key); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
}
.season-offer-creator { background: var(--panel); border-radius: var(--r-panel); padding: 1.1rem 1.3rem 1.3rem; margin: 1.5rem 0; box-shadow: var(--outline), inset 0 6px 0 var(--magenta); }
.season-offer-creator h2 { margin-top: .2rem; }

/* -- Publicado, resultados y coach (P8, P9) ------------------------------- */
.results { margin: 2rem 0; }
.results > h2 { margin-top: 0; }
.coach-card { background: var(--screen); color: #fff; border-radius: var(--r-panel); padding: 1.1rem 1.3rem 1.3rem; margin-top: 1.2rem; }
.coach-card h3 { margin: 0 0 .5rem; color: var(--key); font-family: "Anton", Impact, sans-serif; font-weight: 400; font-stretch: normal; font-size: 1.4rem; }
.coach-card .silk { color: #C9CCDA; margin: .9rem 0 .3rem; }
.coach-card .muted, .coach-card .hint { color: #C9CCDA; }
.coach-card .vu-checks li { color: #fff; }
.coach-verdict { font-size: 1.05rem; margin: 0; }
.coach-changes { margin: 0; padding-left: 1.3rem; display: grid; gap: .35rem; }
.coach-hook { font-family: "Anton", Impact, sans-serif; font-size: 1.35rem; color: var(--key); margin: 0; }
.coach-card .notice { color: var(--ink); }
.coach-apply { background: var(--panel); border-radius: var(--r-panel); padding: .8rem 1rem; box-shadow: var(--outline), inset 6px 0 0 var(--magenta); display: grid; gap: .4rem; justify-items: start; }
.coach-apply p { margin: 0; }
/* En Nuevo vídeo va justo antes del formulario: que no se pegue a la primera etiqueta. */
.compose-main > .coach-apply { margin-bottom: 1.4rem; }
.goals-title { margin: 1.4rem 0 .5rem; font-size: 1rem; }
.goals { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.goal { display: grid; gap: .25rem; }
.goal progress { width: 100%; }
.goal-name { display: flex; gap: .45rem; align-items: center; font-weight: 600; }
.goal.is-done .led { background: var(--led-green); box-shadow: 0 0 6px var(--led-green); }

/* -- Reto del mes (P11) ---------------------------------------------------- */
.challenge-head { max-width: 46rem; }
.challenge-dates { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }
.challenge-enter { max-width: 34rem; background: var(--panel); border-radius: var(--r-panel); padding: 1.1rem 1.3rem 1.3rem; box-shadow: var(--outline); }
.gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.6rem 1.2rem; }
.entry { margin: 0; display: grid; gap: .5rem; }
.entry figcaption { display: grid; gap: .15rem; }
.entry-title { font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.gallery > li, .featured > * { min-width: 0; }
.challenge-previous { margin: 1.5rem 0; max-width: 360px; }
.entry-report { color: var(--silk); }
.challenge-winner { margin: 1.5rem 0; max-width: 260px; }
.challenge-mine { margin-top: 1.4rem; display: flex; gap: .8rem; flex-wrap: wrap; align-items: baseline; }
.challenge-mine p { margin: 0; }
.featured { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 260px); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (max-width: 700px) { .featured { grid-template-columns: 1fr; } }

/* -- Portada: franja de la Temporada (P1) --------------------------------- */
.band-green { background: var(--green); }
.band-green .lede, .band-green .muted { color: var(--ink); }
.band-season .tape { margin: 0; }
.band-season .track-link:hover { background: transparent; }
.season-banner { display: flex; gap: .7rem; align-items: baseline; background: var(--panel); border-radius: var(--r-panel); padding: .7rem 1rem; box-shadow: var(--outline), inset 6px 0 0 var(--key); }
.season-banner .track-n { color: var(--ink); }
.season-billing { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(220px, 1fr); gap: 1.4rem; align-items: center; background: var(--panel); border-radius: var(--r-panel); padding: 1.2rem 1.4rem; margin: 2rem 0; box-shadow: var(--outline), inset 0 6px 0 var(--key); }
.season-billing h2 { margin-top: .2rem; }
.season-billing-buy { display: grid; justify-items: start; gap: .3rem; }
.season-billing-price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; }
.season-billing-price .amount { font-size: 2.2rem; }
/* Cuándo se podrá empezar otra Temporada (en vez de un botón que se rechazaría). */
.season-wait { margin: .4rem 0 0; display: flex; gap: .55rem; align-items: baseline; font-weight: 600; }
.season-wait::before { content: ""; flex-shrink: 0; width: .6rem; height: .6rem; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 1.5px var(--ink); transform: translateY(-.05rem); }
.season-band-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.season-band-price { display: grid; gap: .3rem; justify-items: start; margin-top: 1.2rem; }
/* Por debajo de 1180 px la cinta no cabe al lado del texto (las pistas se partían
   en tres líneas): va debajo, a todo lo ancho. */
@media (max-width: 1180px) {
  .season-band-grid { grid-template-columns: 1fr; }
  .season-band-grid > div:first-child { max-width: 46rem; }
}

@media (max-width: 900px) {
  .recorder-desk, .season-offer, .season-card, .season-band-grid, .season-billing { grid-template-columns: 1fr; }
  .season-card-coach { border-left: 0; border-top: 1px solid var(--seam); padding: 1rem 0 0; }
  .prompter { height: 42vh; padding-bottom: 30vh; }
}
@media (max-width: 760px) {
  .tape { grid-template-columns: 1fr; padding: .9rem; }
  .summary-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .asset { grid-template-columns: 56px minmax(0, 1fr); }
  .asset-thumb { width: 56px; }
  .asset-scene, .asset > .linklike { grid-column: 2; justify-self: start; }
  .transport .btn, .session-actions .btn { flex: 1 1 100%; }
  .season-offer { padding: 1.2rem; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem .8rem; }
  .lcd { font-size: 1.5rem; }
}

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