/* Vamos · estilos. Mismo lenguaje que webnou.com: blanco y negro, Outfit fina, píldoras, filetes y mucho aire.
   Los colores son los de Webnou (src/index.css); todo lo demás se deriva de --background y --foreground. */

@font-face {
  font-family: 'Outfit';
  src: url('/fonts/outfit-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --background: 0 0% 98%;
  --foreground: 0 0% 8%;
  --card: 0 0% 100%;
  --muted: 0 0% 94%;
  --muted-foreground: 0 0% 45%;
  --border: 0 0% 88%;
  --gutter: 1.5rem;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-ui: cubic-bezier(.25, 1, .5, 1);
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'DejaVu Sans Mono', monospace;
  --dock-space: 5.5rem;
}
@media (min-width: 768px) { :root { --gutter: 3rem; } }
@media (min-width: 1024px) { :root { --gutter: 6rem; } }

.dark {
  --background: 0 0% 11%;
  --foreground: 0 0% 90%;
  --card: 0 0% 13%;
  --muted: 0 0% 22%;
  --muted-foreground: 0 0% 68%;
  --border: 0 0% 25%;
}

/* Sección maciza, con los colores cambiados: su fondo es el color de la tinta (el del bosque del paisaje) */
.invert {
  --background: 0 0% 8%;
  --foreground: 0 0% 98%;
  --card: 0 0% 11%;
  --muted: 0 0% 16%;
  --muted-foreground: 0 0% 64%;
  --border: 0 0% 24%;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}
.dark .invert {
  --background: 0 0% 90%;
  --foreground: 0 0% 11%;
  --card: 0 0% 94%;
  --muted: 0 0% 82%;
  --muted-foreground: 0 0% 36%;
  --border: 0 0% 74%;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}
html.motion-none { scroll-behavior: auto; }

body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Outfit', system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.focus-on { overflow: hidden; }

h1, h2, h3, p, ul, ol, dl, dd, fieldset, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
svg { display: block; }
[hidden] { display: none !important; }

::selection { background: hsl(var(--foreground)); color: hsl(var(--background)); }
:focus-visible { outline: 2px solid hsl(var(--foreground)); outline-offset: 2px; }

.shell {
  width: 100%;
  max-width: calc(80rem + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.defs { position: absolute; }

.skip {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  font-size: .875rem;
  transition: top .2s var(--ease-ui);
}
.skip:focus { top: 1rem; }

/* ---------------------------------------------------------------- Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1rem 1.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.25rem;
  white-space: nowrap;
  transition: background-color .2s, border-color .2s, opacity .2s;
}
.btn svg { width: 1rem; height: 1rem; flex: none; fill: currentColor; }
.btn .i-arrow { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease-ui); }
.btn:hover .i-arrow { transform: translateX(.25rem); }
.btn-primary { background: hsl(var(--foreground)); color: hsl(var(--background)); }
.btn-primary:hover { background: hsl(var(--foreground) / .88); }
.btn-ghost { border-color: hsl(var(--border)); background: hsl(var(--background) / .6); }
.btn-ghost:hover { border-color: hsl(var(--foreground) / .35); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  transition: border-color .2s, background-color .2s;
}
.icon-btn:hover { border-color: hsl(var(--foreground) / .35); }
.icon-btn svg { width: 1.125rem; height: 1.125rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.pill-btn {
  padding: .5rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsl(var(--background) / .8);
  font-size: .8125rem;
  transition: border-color .2s;
}
.pill-btn:hover { border-color: hsl(var(--foreground) / .35); }

.i-pause { display: none; }
.is-playing #play .i-play, .is-playing #hero-play .i-play { display: none; }
.is-playing #play .i-pause, .is-playing #hero-play .i-pause { display: block; }

/* ---------------------------------------------------------------- Cabecera */
.nav { position: absolute; inset: 0 0 auto; z-index: 20; }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; }
.brand-star { width: 1.25rem; height: 1.25rem; fill: currentColor; }
.brand-name { font-size: 1.5rem; font-weight: 300; letter-spacing: -.025em; line-height: 1; }
.brand-by { align-self: flex-end; padding-bottom: .1rem; font-size: .75rem; color: hsl(var(--muted-foreground)); }
a.brand:hover .brand-name { opacity: .7; }
.nav-links { display: none; gap: 2.25rem; font-size: .875rem; color: hsl(var(--muted-foreground)); }
.nav-links a { padding-block: .5rem; transition: color .2s; }
.nav-links a:hover { color: hsl(var(--foreground)); }
.nav-tools { display: flex; align-items: center; gap: .75rem; }
.lang { display: flex; gap: .125rem; }
.lang button {
  padding: .5rem .45rem;
  font-size: .75rem;
  letter-spacing: .08em;
  color: hsl(var(--muted-foreground));
  transition: color .2s;
}
.lang button:hover, .lang button[aria-pressed='true'] { color: hsl(var(--foreground)); }
.lang button[aria-pressed='true'] { font-weight: 600; }
.i-sun { display: none; }
.dark .i-sun { display: block; }
.dark .i-moon { display: none; }
@media (min-width: 900px) { .nav-links { display: flex; } }
@media (max-width: 420px) { .brand-by { display: none; } }

/* ---------------------------------------------------------------- Inicio */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: hsl(var(--background));
}
.scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.scene canvas { display: block; width: 100%; height: 100%; }
.walker, .say { visibility: hidden; }
.scene.ready .walker, .scene.ready .say { visibility: visible; }
.walker { position: absolute; left: 0; top: 0; aspect-ratio: 1; width: 46px; will-change: transform; transform-origin: 50% 50%; }
.walker svg { width: 100%; height: 100%; overflow: visible; fill: hsl(var(--foreground)); stroke: hsl(var(--background)); stroke-width: 3; paint-order: stroke; stroke-linejoin: round; }
.say {
  position: absolute;
  left: 0;
  top: 0;
  padding: .45rem .75rem;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsl(var(--background));
  font: 500 .6875rem/1 var(--mono);
  white-space: nowrap;
  opacity: 0;
  transition: opacity .45s var(--ease-ui);
}
.say.on { opacity: 1; }

.hero-copy { position: relative; z-index: 2; padding-top: calc(4.5rem + clamp(1.25rem, 5.5vh, 4rem)); }
.hero-text { width: fit-content; max-width: min(100%, 46rem); }
/* Hueco del paisaje: 24 filas de letras como mínimo (scene.js coloca las capas contando filas) */
.hero-land { flex: 1 0 auto; min-height: 24.5rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: clamp(1.25rem, 3vh, 2rem);
  padding: .5rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsl(var(--card) / .6);
  font-size: .875rem;
  color: hsl(var(--muted-foreground));
}
.live-dot { position: relative; width: .5rem; height: .5rem; flex: none; border-radius: 50%; background: hsl(var(--muted-foreground) / .6); transition: background-color .3s; }
.is-playing .live-dot { background: hsl(var(--foreground)); }
.is-playing .live-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: hsl(var(--foreground));
  animation: ping 1.8s var(--ease-out) infinite;
}
@keyframes ping { to { transform: scale(3.2); opacity: 0; } }

.hero h1 {
  max-width: 11.5em;
  font-size: clamp(2.625rem, 5.2vw + 1rem, 4.5rem);
  font-weight: 300;
  line-height: 1.03;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.lead {
  max-width: 34rem;
  margin-top: clamp(1.25rem, 3vh, 2rem);
  font-size: clamp(1.0625rem, .5vw + 1rem, 1.25rem);
  font-weight: 300;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
  text-wrap: pretty;
}
.lead strong { font-weight: 400; color: hsl(var(--foreground)); }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: clamp(1.5rem, 4vh, 2.5rem); }
@media (max-width: 639px) {
  /* Los dos botones en una fila si caben: el paisaje empieza antes */
  .cta-row .btn { flex: 1 1 auto; padding-inline: 1.25rem; }
  .hero-land { min-height: 19.5rem; }
}

/* Entrada de la cabecera, como en Webnou: desde el primer pintado y sin esconder nada del todo */
@keyframes page-enter { from { opacity: .4; translate: 0 12px; } }
.enter { animation: page-enter .6s var(--ease-out) backwards; }
.enter.d1 { animation-delay: .05s; }
.enter.d2 { animation-delay: .1s; }
.enter.d3 { animation-delay: .16s; }
.enter.d4 { animation-delay: .22s; }

/* Modo paisaje: la sección de inicio a pantalla completa, sin texto */
.hero.is-focus { position: fixed; inset: 0; z-index: 40; min-height: 0; height: 100vh; height: 100dvh; }
.hero.is-focus .hero-copy { display: none; }
.focus-on .nav { display: none; }
.focus-ui {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  padding: 1.25rem var(--gutter) calc(var(--dock-space) + .5rem);
}
.focus-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.focus-tools { display: flex; gap: .5rem; }
.focus-mid {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  gap: .75rem;
  max-width: 100%;
  margin-top: clamp(1.5rem, 9vh, 6rem);
  text-align: center;
}
/* Velo del color del fondo: las nubes pasan por detrás sin estorbar la lectura */
.focus-mid::before {
  content: '';
  position: absolute;
  inset: -3rem -7rem;
  z-index: -1;
  background: radial-gradient(closest-side, hsl(var(--background)) 55%, hsl(var(--background) / 0));
  pointer-events: none;
}
.focus-time { font-size: clamp(4.5rem, 15vw, 9.5rem); font-weight: 200; line-height: .95; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.focus-task { max-width: 34rem; font-size: clamp(1.0625rem, 1.4vw, 1.375rem); text-wrap: balance; }
.focus-push { max-width: 28em; min-height: 1.3em; font-size: clamp(1.25rem, 2.6vw, 2.25rem); font-weight: 300; letter-spacing: -.02em; line-height: 1.2; color: hsl(var(--muted-foreground)); text-wrap: balance; transition: opacity .6s var(--ease-ui); }
.focus-push.out { opacity: 0; }
.focus-mid .btn { margin-top: .75rem; }
.focus-hint { margin-top: .75rem; font: 500 .6875rem/1.4 var(--mono); color: hsl(var(--muted-foreground)); }
@media (hover: none), (max-width: 760px) { .focus-hint, #focus-full { display: none; } }

/* ---------------------------------------------------------------- Secciones */
.sheet { position: relative; }
.grid-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(128, 128, 128, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128, 128, 128, .07) 1px, transparent 1px);
  background-size: 60px 60px;
}
.dark .grid-pattern {
  background-image:
    linear-gradient(rgba(128, 128, 128, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128, 128, 128, .05) 1px, transparent 1px);
}
.section { position: relative; padding-block: clamp(4.5rem, 10vw, 8rem); }

.head { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.eyebrow { display: block; margin-bottom: 1rem; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
h2 { font-size: clamp(2rem, 3.6vw + .75rem, 3.5rem); font-weight: 300; line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
.head-text { max-width: 40rem; margin-top: 1.15rem; font-size: clamp(1rem, .35vw + .95rem, 1.125rem); line-height: 1.65; color: hsl(var(--muted-foreground)); text-wrap: pretty; }

/* Entradas al hacer scroll. Solo se esconde algo si la app ha arrancado (.reveal-on lo pone app.js) */
.reveal-on [data-reveal] { opacity: 0; translate: 0 28px; transition: opacity .7s var(--ease-out), translate .7s var(--ease-out); }
.reveal-on [data-reveal].in { opacity: 1; translate: none; }

/* ---------------------------------------------------------------- Manifiesto */
.mani { padding-block: clamp(4.5rem, 11vw, 9rem) clamp(2.5rem, 6vw, 5rem); }
.mani h2 { max-width: 14em; }
.mani-list li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: .5rem;
  padding-block: clamp(1.75rem, 4vw, 3.25rem);
  border-top: 1px solid hsl(var(--border));
}
.mani-n { padding-top: .55em; font: 500 .75rem/1 var(--mono); color: hsl(var(--muted-foreground)); }
.mani-list p {
  max-width: 19em;
  font-size: clamp(1.75rem, 4.4vw, 3.75rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.028em;
  text-wrap: balance;
}
.mani-list .w { opacity: .2; transition: opacity .5s var(--ease-out); }
.mani-list .w.on { opacity: 1; }
@media (min-width: 768px) { .mani-list li { grid-template-columns: 5rem minmax(0, 1fr); } }

/* El borde de abajo del manifiesto se deshace en bloques, como el paisaje */
.dissolve { display: block; width: 100%; height: clamp(4.5rem, 9vw, 7.5rem); margin-top: -1px; }

/* ---------------------------------------------------------------- Un bloque */
.block-grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 1024px) { .block-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); gap: clamp(3rem, 7vw, 7rem); } }

.steps li { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 1.25rem; padding-block: 1.5rem; border-top: 1px solid hsl(var(--border)); }
.steps li:last-child { border-bottom: 1px solid hsl(var(--border)); }
.step-n {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: 50%;
  background: hsl(var(--background));
  font-size: .875rem;
  font-variant-numeric: tabular-nums;
}
.steps h3 { font-size: clamp(1.25rem, 1vw + 1rem, 1.5rem); font-weight: 300; letter-spacing: -.02em; line-height: 1.25; }
.steps p { max-width: 30rem; margin-top: .4rem; font-size: .9375rem; line-height: 1.6; color: hsl(var(--muted-foreground)); }

.timer {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid hsl(var(--border));
  border-radius: 1.5rem;
  background: hsl(var(--card));
  box-shadow: 0 32px 80px -48px rgb(0 0 0 / .35);
}
.ring { position: relative; width: min(100%, 15rem); margin: 0 auto 1.75rem; aspect-ratio: 1; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; }
.ring-track { stroke: hsl(var(--border)); stroke-width: 2; }
.ring-bar { stroke: hsl(var(--foreground)); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 691.15; stroke-dashoffset: 691.15; transition: stroke-dashoffset .6s linear; }
.ring-in { position: absolute; inset: 0; display: grid; place-content: center; gap: .25rem; text-align: center; }
.ring-time { font-size: 3.5rem; font-weight: 200; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ring-status { max-width: 11rem; font-size: .8125rem; line-height: 1.35; color: hsl(var(--muted-foreground)); text-wrap: balance; }

.field label, .seg legend { display: block; margin-bottom: .6rem; padding: 0; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.field input {
  width: 100%;
  padding: .9rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: .75rem;
  background: hsl(var(--background));
  font-size: 1rem;
  transition: border-color .2s;
}
.field input::placeholder { color: hsl(var(--muted-foreground) / .8); }
.field input:focus { outline: none; border-color: hsl(var(--foreground)); }
.field input:read-only { border-style: dashed; }
.seg { margin-top: 1.25rem; border: 0; min-width: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.seg legend { grid-column: 1 / -1; float: left; width: 100%; }
.seg label { position: relative; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span {
  display: block;
  padding: .65rem .5rem;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  font-size: .875rem;
  text-align: center;
  transition: background-color .2s, color .2s, border-color .2s;
}
.seg i { font-style: normal; color: hsl(var(--muted-foreground)); }
.seg input:checked + span { border-color: hsl(var(--foreground)); background: hsl(var(--foreground)); color: hsl(var(--background)); }
.seg input:checked + span i { color: inherit; opacity: .7; }
.seg input:focus-visible + span { outline: 2px solid hsl(var(--foreground)); outline-offset: 2px; }
.seg input:disabled + span { opacity: .45; }
.seg input:disabled { cursor: default; }

.timer-actions { display: grid; gap: .6rem; margin-top: 1.5rem; }
.timer-actions .btn { display: none; width: 100%; }
[data-state='idle'] #t-start,
[data-state='running'] #t-pause, [data-state='running'] #t-cancel,
[data-state='paused'] #t-resume, [data-state='paused'] #t-cancel,
[data-state='break'] #t-cancel,
[data-state='done'] #t-again, [data-state='done'] #t-rest { display: inline-flex; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: clamp(3rem, 7vw, 5.5rem); padding-top: 1.75rem; border-top: 1px solid hsl(var(--border)); }
/* La cifra va encima de su etiqueta (order) aunque en el HTML vaya después; así las cifras quedan alineadas
   aunque una etiqueta ocupe dos líneas */
.stats div { display: flex; flex-direction: column; gap: .35rem; }
.stats dd { order: -1; }
.stats dd { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 300; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats dt { font-size: .8125rem; color: hsl(var(--muted-foreground)); }
.stats-note { margin-top: 1.25rem; font-size: .75rem; color: hsl(var(--muted-foreground)); }

/* ---------------------------------------------------------------- Excusas */
.exc { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .exc { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(3rem, 6vw, 6rem); } }
.exc-list li { border-top: 1px solid hsl(var(--border)); }
.exc-list li:last-child { border-bottom: 1px solid hsl(var(--border)); }
.exc-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.1rem 0;
  text-align: left;
  font-size: clamp(1.125rem, 1vw + .9rem, 1.5rem);
  font-weight: 300;
  letter-spacing: -.015em;
  color: hsl(var(--muted-foreground));
  transition: color .25s, padding-left .35s var(--ease-ui);
}
.exc-list button::after { content: ''; width: .5rem; height: .5rem; flex: none; border-radius: 50%; background: currentColor; opacity: 0; transition: opacity .25s; }
.exc-list button:hover { color: hsl(var(--foreground)); }
.exc-list button[aria-pressed='true'] { padding-left: .75rem; color: hsl(var(--foreground)); }
.exc-list button[aria-pressed='true']::after { opacity: 1; }
.exc-card {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid hsl(var(--border));
  border-radius: 1.5rem;
  background: hsl(var(--card));
  box-shadow: 0 32px 80px -48px rgb(0 0 0 / .35);
}
@media (min-width: 900px) { .exc-card { position: sticky; top: 2rem; } }
.exc-a { font-size: clamp(1.375rem, 1.5vw + 1rem, 2rem); font-weight: 300; line-height: 1.25; letter-spacing: -.02em; text-wrap: pretty; }
.exc-step { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid hsl(var(--border)); }
.exc-step .eyebrow { margin-bottom: .4rem; }
.exc-card .btn { margin-top: 1.75rem; }
.exc-card.swap .exc-a, .exc-card.swap .exc-step p { animation: swap .45s var(--ease-out); }
@keyframes swap { from { opacity: 0; translate: 0 10px; } }

/* ---------------------------------------------------------------- Cierre */
.section-final { padding-top: 0; }
.panel { display: grid; gap: 2rem; padding: clamp(2rem, 5vw, 4rem); border-radius: 1.5rem; }
.panel h2 { font-size: clamp(2rem, 3.6vw + .75rem, 3.5rem); }
.panel h2 + p { margin-top: 1rem; font-size: clamp(1.0625rem, .6vw + 1rem, 1.375rem); font-weight: 300; color: hsl(var(--muted-foreground)); }
.panel-side { display: flex; flex-direction: column; gap: 1rem; }
.panel-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.panel .btn-ghost { background: transparent; }
.panel-note { font-size: .75rem; color: hsl(var(--muted-foreground)); }
@media (min-width: 1024px) {
  .panel { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .panel-side { align-items: flex-end; }
  .panel-actions { justify-content: flex-end; }
  .panel-note { text-align: right; }
}
@media (max-width: 639px) { .panel-actions .btn { flex: 1 1 100%; } }

.webnou { display: grid; gap: 1.5rem; margin-top: clamp(3.5rem, 8vw, 6.5rem); padding-top: 2.5rem; border-top: 1px solid hsl(var(--border)); }
.webnou h2 { max-width: 16em; font-size: clamp(1.625rem, 2vw + 1rem, 2.5rem); }
.webnou p { max-width: 34rem; line-height: 1.65; color: hsl(var(--muted-foreground)); }
.link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.25rem; padding-bottom: .2rem; border-bottom: 1px solid currentColor; font-size: .9375rem; font-weight: 500; }
.link svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease-ui); }
.link:hover svg { transform: translate(.15rem, -.15rem); }
@media (min-width: 900px) { .webnou { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: end; } }

.foot { position: relative; border-top: 1px solid hsl(var(--border)); padding-block: 1.25rem calc(1.25rem + var(--dock-space)); font-size: .75rem; color: hsl(var(--muted-foreground)); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; }
.foot a { transition: color .2s; }
.foot a:hover { color: hsl(var(--foreground)); }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.foot-top { display: inline-flex; align-items: center; gap: .5rem; }
.foot-top svg { width: 1.75rem; height: 1.75rem; padding: .4rem; border: 1px solid hsl(var(--border)); border-radius: 50%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- Reproductor */
.dock { display: none; }
.js .dock {
  display: flex;
  position: fixed;
  /* Centrado con márgenes y no con left: 50 %: así su ancho no queda limitado a media pantalla */
  left: 0;
  right: 0;
  width: fit-content;
  margin-inline: auto;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  align-items: center;
  gap: .5rem;
  max-width: calc(100vw - 1.5rem);
  padding: .5rem;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsl(var(--background) / .84);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 16px 48px -16px rgb(0 0 0 / .4);
}
.dock-play {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  flex: none;
  border-radius: 50%;
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  transition: transform .2s var(--ease-ui), background-color .2s;
}
.dock-play:hover { background: hsl(var(--foreground) / .88); }
.dock-play:active { transform: scale(.94); }
.dock-play svg { width: 1.125rem; height: 1.125rem; fill: currentColor; }
.dock-now { display: flex; align-items: center; gap: .75rem; min-width: 0; padding: .35rem .9rem .35rem .6rem; border-radius: 999px; text-align: left; transition: background-color .2s; }
.dock-now:hover { background: hsl(var(--muted) / .8); }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 1.125rem; flex: none; }
.eq i { display: block; width: 3px; height: 100%; border-radius: 1px; background: currentColor; transform: scaleY(.14); transform-origin: 50% 100%; }
.dock-meta { display: grid; min-width: 0; }
.dock-title { font-size: .875rem; font-weight: 500; line-height: 1.2; }
.dock-sub { overflow: hidden; font-size: .6875rem; line-height: 1.3; color: hsl(var(--muted-foreground)); white-space: nowrap; text-overflow: ellipsis; }
.stations { display: none; gap: .125rem; padding: .2rem; border-radius: 999px; background: hsl(var(--muted) / .7); }
.stations button { padding: .45rem .85rem; border-radius: 999px; font-size: .8125rem; color: hsl(var(--muted-foreground)); transition: color .2s, background-color .2s; }
.stations button:hover { color: hsl(var(--foreground)); }
.stations button[aria-pressed='true'] { background: hsl(var(--background)); color: hsl(var(--foreground)); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.vol { display: none; align-items: center; gap: .4rem; padding-inline: .35rem; color: hsl(var(--muted-foreground)); }
.vol svg { width: 1.125rem; height: 1.125rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.vol input { width: 5rem; height: 1.5rem; margin: 0; background: none; -webkit-appearance: none; appearance: none; cursor: pointer; }
.vol input::-webkit-slider-runnable-track { height: 2px; border-radius: 1px; background: hsl(var(--foreground) / .3); }
.vol input::-moz-range-track { height: 2px; border-radius: 1px; background: hsl(var(--foreground) / .3); }
.vol input::-webkit-slider-thumb { -webkit-appearance: none; width: .75rem; height: .75rem; margin-top: -5px; border: 0; border-radius: 50%; background: hsl(var(--foreground)); }
.vol input::-moz-range-thumb { width: .75rem; height: .75rem; border: 0; border-radius: 50%; background: hsl(var(--foreground)); }
.dock-timer { padding: .5rem .85rem; border: 1px solid hsl(var(--border)); border-radius: 999px; font-size: .8125rem; font-variant-numeric: tabular-nums; flex: none; }
.dock-timer:hover { border-color: hsl(var(--foreground) / .35); }
@media (min-width: 700px) { .stations { display: flex; } .dock-sub { max-width: 9.5rem; } }
@media (min-width: 1100px) { .dock-sub { max-width: none; } }
@media (min-width: 960px) { .vol { display: flex; } }
@media (max-width: 699px) {
  .js .dock { width: calc(100vw - 1.5rem); }
  .dock-now { flex: 1; }
}

/* ---------------------------------------------------------------- Avisos y celebración */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--dock-space) + 1rem + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  max-width: calc(100vw - 2rem);
  padding: .7rem 1.15rem;
  border-radius: 999px;
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  font-size: .875rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity .35s var(--ease-ui), transform .35s var(--ease-ui);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.burst { position: fixed; inset: 0; z-index: 70; overflow: hidden; pointer-events: none; }
.burst svg {
  position: absolute;
  left: 50%;
  top: 42%;
  width: var(--s, 24px);
  height: var(--s, 24px);
  fill: hsl(var(--foreground));
  stroke: hsl(var(--background));
  stroke-width: 1.5;
  paint-order: stroke;
  animation: fly var(--d, 1.4s) cubic-bezier(.12, .7, .25, 1) forwards;
}
@keyframes fly {
  from { transform: translate(-50%, -50%) scale(.2) rotate(0); opacity: 1; }
  70% { opacity: 1; }
  to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1) rotate(var(--r)); opacity: 0; }
}

/* ---------------------------------------------------------------- Movimiento reducido */
.motion-none *, .motion-none *::before, .motion-none *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
.motion-none.reveal-on [data-reveal] { opacity: 1; translate: none; }
.motion-none .mani-list .w { opacity: 1; }

/* ---------------------------------------------------------------- Página 404 */
.lost { display: grid; place-content: center; justify-items: start; gap: 1.5rem; min-height: 100vh; min-height: 100svh; padding: 2rem var(--gutter); }
.lost pre { margin: 0; font: 700 clamp(.5rem, 1.6vw, .8125rem)/1.15 var(--mono); color: hsl(var(--muted-foreground)); }
.lost h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 300; line-height: 1.03; letter-spacing: -.03em; }
.lost p { max-width: 30rem; color: hsl(var(--muted-foreground)); }
