/*
 * Páginas estáticas del sitio (ejercicios, rutinas, reto). Mismo lenguaje que la landing (src/app/landing.css):
 * la rutina llega al amanecer. Cada página abre con un cielo de noche a amanecer y su imagen protagonista
 * (la ilustración, la tarjeta o el calendario) saliendo como el sol; el resto es crema y papel. Móvil primero.
 */
@font-face {
  font-family: "Bebas Neue";
  src: url("/site/fonts/bebas-neue-400.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/site/fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/site/fonts/inter-700.woff2") format("woff2");
  font-weight: 600 700;
  font-display: swap;
}

:root {
  --noche: #1b1024;
  --ciruela: #3a1430;
  --vino: #9b1c2c;
  --brasa: #e8452c;
  --sol: #ffb547;
  --crema: #f6f1e9;
  --papel: #fffdf9;
  --tinta: #1a1418;
  --gris: #6a5f63;
  --linea: #e6dccf;
  --arena: #efe5d7;
  --lienzo: #f3ebdd;
  --display: "Bebas Neue", Impact, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --boton: linear-gradient(100deg, var(--sol), #ff8a3d 55%, var(--brasa));
  --sombra: 0 26px 48px -24px rgba(27, 16, 36, 0.55);
  --top: 56px;
  --pad: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font: 16px/1.55 "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: var(--vino); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 400; }

:focus-visible { outline: 3px solid var(--brasa); outline-offset: 3px; border-radius: 6px; }
.s-top :focus-visible, .s-hero :focus-visible, .s-cta :focus-visible, .s-foot :focus-visible { outline-color: var(--sol); }

.s-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.s-skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--sol);
  color: var(--noche);
  font-weight: 700;
}
.s-skip:focus { top: 8px; }

/* ---------- Cabecera y pie ---------- */

.s-top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--top);
  padding: 0 var(--pad);
  background: var(--noche);
}
.s-brand {
  color: var(--papel);
  font: 28px/1 var(--display);
  letter-spacing: 0.5px;
  text-decoration: none;
}
.s-top-cta {
  padding: 9px 16px 7px;
  border-radius: 999px;
  background: var(--boton);
  color: var(--noche);
  font: 19px/1 var(--display);
  letter-spacing: 0.4px;
  text-decoration: none;
  white-space: nowrap;
}

.s-foot {
  margin-top: 72px;
  padding: 56px var(--pad) 48px;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(232, 69, 44, 0.32), rgba(155, 28, 44, 0.12) 45%, transparent 75%),
    var(--noche);
  color: rgba(255, 253, 249, 0.78);
  text-align: center;
}
.s-foot-in { max-width: 640px; margin: 0 auto; }
.s-foot-brand { margin: 0; color: var(--papel); font: 52px/0.9 var(--display); }
.s-foot-tag { margin: 10px auto 28px; max-width: 26em; font-size: 15px; }
.s-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; }
.s-foot nav a { color: var(--papel); font-weight: 600; }
.s-foot-legal { margin: 28px 0 0; font-size: 13px; color: rgba(255, 253, 249, 0.62); }

/* ---------- Hero: el amanecer ---------- */

.s-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 18px var(--pad) 0;
  color: var(--papel);
  background: linear-gradient(180deg, var(--noche) 0%, var(--ciruela) 30%, var(--vino) 56%, var(--brasa) 76%, var(--sol) 89%, #fbd9a4 95%, var(--crema) 100%);
}
/* El sol saliendo detrás de la imagen protagonista. */
.s-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -220px;
  width: 560px;
  height: 560px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle closest-side, #ffe2a8 0%, rgba(255, 181, 71, 0.85) 30%, rgba(232, 69, 44, 0.4) 62%, rgba(232, 69, 44, 0) 100%);
  pointer-events: none;
}
.s-hero-in { width: 100%; max-width: 1080px; margin: 0 auto; }

.s-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; margin-bottom: 14px; font-size: 13px; color: rgba(255, 253, 249, 0.72); }
.s-crumbs a { color: rgba(255, 253, 249, 0.9); }
.s-sep { margin: 0 7px; opacity: 0.5; }

.s-h1 {
  font: clamp(52px, 15vw, 96px)/0.88 var(--display);
  letter-spacing: 0.3px;
  text-wrap: balance;
}
.s-hero-lead { margin: 16px 0 0; max-width: 32em; font-size: 17px; line-height: 1.5; color: rgba(255, 253, 249, 0.9); }

.s-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.s-pills li {
  padding: 6px 13px;
  border: 1px solid rgba(255, 253, 249, 0.28);
  border-radius: 999px;
  background: rgba(27, 16, 36, 0.32);
  font-size: 14px;
  font-weight: 600;
}

/* Índices: un amanecer corto, sin imagen. */
.s-hero-list { padding-bottom: 92px; background: linear-gradient(180deg, var(--noche) 0%, var(--ciruela) 34%, var(--vino) 62%, var(--brasa) 80%, var(--sol) 91%, #fbd9a4 96%, var(--crema) 100%); }
.s-hero-list::before { bottom: -400px; opacity: 0.8; }
.s-hero-list .s-hero-copy { padding-top: 22px; }

/* Ficha de ejercicio: las dos ilustraciones, como fotos sobre la mesa. */
.s-hero-ex .s-hero-copy { padding-bottom: 26px; }
.s-figs {
  display: flex;
  gap: 14px;
  margin: 0 calc(var(--pad) * -1);
  padding: 10px var(--pad) 36px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.s-figs::-webkit-scrollbar { display: none; }
.s-fig { flex: 0 0 82%; margin: 0; scroll-snap-align: center; }
.s-fig img {
  display: block;
  width: 100%;
  border: 6px solid var(--papel);
  border-radius: 22px;
  background: var(--lienzo);
  box-shadow: var(--sombra);
}
.s-fig:first-child img { transform: rotate(-1.6deg); }
.s-fig:last-child img { transform: rotate(1.8deg); }

/* Rutina: la tarjeta, protagonista. */
.s-hero-rt .s-hero-copy { padding-bottom: 28px; }
.s-card-wrap { display: flex; justify-content: center; padding: 6px 0 40px; }
.s-card {
  display: block;
  width: min(84%, 360px);
  border-radius: 16px;
  transform: rotate(-1.8deg);
  box-shadow: 0 0 0 5px var(--papel), 0 34px 60px -26px rgba(27, 16, 36, 0.75);
}
.s-hero-noart { padding-bottom: 92px; }

/* ---------- Cuerpo ---------- */

.s-wrap { max-width: calc(1080px + 2 * var(--pad)); margin: 0 auto; padding: 8px var(--pad) 0; }
.s-lead { max-width: 40em; margin: 8px 0 0; font-size: 17px; line-height: 1.6; color: #3b3034; }

.s-sec { margin-top: 52px; scroll-margin-top: calc(var(--top) + 64px); }
.s-sec h2, .s-more h2, .s-goal h2 {
  margin-bottom: 18px;
  font: clamp(38px, 10vw, 54px)/0.95 var(--display);
  letter-spacing: 0.3px;
}

/* Claves de técnica: una secuencia, con números grandes. */
.s-steps { margin: 0; padding: 0; list-style: none; counter-reset: paso; }
.s-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--linea);
  font-size: 17px;
  line-height: 1.5;
  counter-increment: paso;
}
.s-steps li:last-child { border-bottom: 1px solid var(--linea); }
.s-steps li::before {
  content: counter(paso);
  font: 54px/0.8 var(--display);
  color: var(--vino);
  transform: translateY(6px);
}

/* Errores comunes: marcados, sin alarma. */
.s-mistakes { margin: 0; padding: 0; list-style: none; }
.s-mistakes li { position: relative; padding: 8px 0 8px 42px; font-size: 16px; line-height: 1.5; }
.s-mistakes li::before {
  content: "✕";
  position: absolute;
  left: 0;
  top: 8px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fbe0d8;
  color: #b8321c;
  font-size: 13px;
  font-weight: 700;
}
.s-note {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: #ffefd2;
  font-size: 15px;
  line-height: 1.5;
}

/* Ficha: lista limpia de dos columnas en una sola hoja de papel. */
.s-facts-sec { padding: 22px 20px 10px; border-radius: 24px; background: var(--papel); box-shadow: 0 1px 0 var(--linea); }
.s-facts-sec h2 { margin-bottom: 8px; }
.s-facts { margin: 0; }
.s-facts div { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linea); }
.s-facts div:last-child { border-bottom: 0; }
.s-facts dt { font-size: 14px; color: var(--gris); }
.s-facts dd { margin: 0; font-size: 15px; font-weight: 600; }

/* Ejercicios como fotos: la ilustración manda. */
.s-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; margin: 0; padding: 0; list-style: none; }
.s-tile { display: flex; flex-direction: column; color: var(--tinta); text-decoration: none; }
.s-tile-img { display: block; overflow: hidden; border-radius: 20px; background: var(--lienzo); box-shadow: 0 14px 26px -20px rgba(27, 16, 36, 0.5); }
.s-tile-img img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.s-tile-name { margin-top: 10px; font-size: 15px; font-weight: 700; line-height: 1.3; }
.s-tile-sub { margin-top: 2px; font-size: 13px; color: var(--gris); }
.s-tile:hover .s-tile-name { color: var(--vino); }
.s-tag {
  align-self: flex-start;
  margin-top: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #f6dfdc;
  color: var(--vino);
  font-size: 12.5px;
  font-weight: 700;
}
.s-tag + .s-tile-name { margin-top: 6px; }

@media (prefers-reduced-motion: no-preference) {
  .s-tile-img img { transition: transform 0.45s var(--ease); }
  .s-tile:hover .s-tile-img img { transform: scale(1.05) rotate(-1deg); }
}

/* Rutinas como filas: los minutos, en un pequeño amanecer. */
.s-routes { margin: 0; padding: 0; list-style: none; }
.s-routes a {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--linea);
  color: var(--tinta);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}
.s-routes a:hover > span:last-child { color: var(--vino); }
.s-min {
  display: grid;
  place-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--ciruela), var(--vino) 55%, var(--brasa));
  color: var(--papel);
  font: 26px/0.85 var(--display);
  text-align: center;
}
.s-min small { font: 600 10px/1.2 "Inter", sans-serif; opacity: 0.85; }

/* Chips. */
.s-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.s-chips a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  border: 1.5px solid #e0d3c1;
  border-radius: 999px;
  background: var(--papel);
  color: var(--tinta);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.s-chips a:hover { border-color: var(--vino); color: var(--vino); }
.s-chips small { color: var(--gris); font-weight: 600; }

/* Barra de chips pegada bajo la cabecera: se desliza en el móvil. */
.s-chips-bar {
  position: sticky;
  top: var(--top);
  z-index: 5;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 10px var(--pad);
  background: rgba(246, 241, 233, 0.94);
  border-bottom: 1px solid var(--linea);
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent);
  mask-image: linear-gradient(90deg, #000 86%, transparent);
}
.s-chips-bar::-webkit-scrollbar { display: none; }
@supports (backdrop-filter: blur(8px)) {
  .s-chips-bar { background: rgba(246, 241, 233, 0.82); backdrop-filter: blur(10px); }
}
.s-group:first-child { margin-top: 32px; }

/* ---------- Rutina: niveles como pestañas (sin JS: el enlace #nivel muestra ese nivel) ---------- */

.s-levels { margin-top: 36px; }
.s-level { scroll-margin-top: calc(var(--top) + 12px); }
.s-level:not(:first-child) { display: none; }
.s-level:target { display: block; }
.s-levels:has(.s-level:target) .s-level:not(:target) { display: none; }

.s-tabs {
  display: flex;
  gap: 4px;
  max-width: 440px;
  margin-bottom: 18px;
  padding: 5px;
  border-radius: 999px;
  background: var(--arena);
}
.s-tabs a {
  flex: 1;
  padding: 10px 6px;
  border-radius: 999px;
  color: var(--tinta);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.s-tabs a[aria-current] { background: var(--noche); color: var(--papel); box-shadow: 0 6px 14px -8px rgba(27, 16, 36, 0.7); }

.s-phase { max-width: 760px; margin: 0; padding: 14px 16px; border-radius: 16px; font-size: 15px; line-height: 1.5; }
.s-warm { background: linear-gradient(100deg, #ffe4bd, #fff1dc); }
.s-cool { background: linear-gradient(100deg, #efe1e6, #f6eef0); }
.s-phase strong { color: var(--vino); }

.s-routine { max-width: 760px; margin: 8px 0; padding: 0; list-style: none; counter-reset: ej; }
.s-routine li {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  grid-template-areas: "img txt" "img dose";
  column-gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--linea);
  counter-increment: ej;
}
.s-routine li:last-child { border-bottom: 0; }
.s-routine li::before {
  content: counter(ej);
  position: absolute;
  top: 10px;
  left: -6px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--noche);
  color: var(--papel);
  font: 16px/1 var(--display);
  padding-top: 2px;
}
.s-step-img { grid-area: img; }
.s-step-img img { display: block; width: 76px; height: 76px; border-radius: 16px; background: var(--lienzo); }
.s-step-txt { grid-area: txt; }
.s-step-txt a { color: var(--tinta); font-size: 16px; text-decoration-color: rgba(155, 28, 44, 0.35); }
.s-step-txt a:hover { color: var(--vino); }
.s-step-txt small { display: block; margin-top: 3px; font-size: 14px; line-height: 1.45; color: var(--gris); }
.s-dose { grid-area: dose; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 8px 0 0; }
.s-dose b { font: 28px/1 var(--display); font-weight: 400; color: var(--vino); }
.s-dose small { font-size: 13px; color: var(--gris); }

.s-more { margin-top: 52px; display: grid; gap: 28px; }
.s-more h2 { font-size: 32px; margin-bottom: 12px; }

/* ---------- Índice de rutinas ---------- */

.s-goals { display: grid; gap: 20px; margin-top: 32px; }
.s-goal {
  padding: 22px 18px 8px;
  border-radius: 26px;
  background: var(--papel);
  box-shadow: 0 1px 0 var(--linea);
  scroll-margin-top: calc(var(--top) + 64px);
}
.s-goal-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.s-goal-head h2 { margin: 0; }
.s-goal-img { flex: 0 0 auto; width: 72px; height: 72px; overflow: hidden; border-radius: 50%; background: var(--lienzo); box-shadow: 0 0 0 3px var(--papel), 0 0 0 5px rgba(232, 69, 44, 0.35); }
.s-goal-img img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); }
.s-env { padding: 14px 0; border-top: 1px solid var(--linea); }
.s-env h3 { margin-bottom: 10px; font-size: 15px; font-weight: 700; }
.s-durs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.s-durs a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0 7px;
  border-radius: 14px;
  background: var(--crema);
  color: var(--gris);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}
.s-durs b { font: 28px/1 var(--display); font-weight: 400; color: var(--tinta); margin-bottom: 2px; }
.s-durs li:nth-child(2) a { background: #f8eadb; }
.s-durs li:nth-child(3) a { background: #fbe6d0; }
.s-durs li:nth-child(4) a { background: #fde1c3; }
.s-durs li:nth-child(5) a { background: #ffdcb4; }
.s-durs a:hover { background: var(--boton); color: var(--noche); }
.s-durs a:hover b { color: var(--noche); }

/* ---------- Llamado final ---------- */

.s-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 60px 0 0;
  padding: 46px 22px 40px;
  border-radius: 28px;
  background: linear-gradient(165deg, var(--noche), var(--ciruela) 35%, var(--vino) 68%, var(--brasa));
  color: var(--papel);
  text-align: center;
}
.s-cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -260px;
  width: 460px;
  height: 460px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle closest-side, rgba(255, 226, 168, 0.75), rgba(255, 181, 71, 0.4) 45%, rgba(232, 69, 44, 0) 100%);
}
.s-cta-title { margin: 0 auto 26px; max-width: 12em; text-wrap: balance; font: clamp(38px, 10vw, 58px)/0.92 var(--display); }
.s-cta-fine { margin: 14px 0 0; font-size: 14px; color: rgba(255, 253, 249, 0.9); }

.s-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 380px;
  min-height: 58px;
  margin: 0 auto;
  padding: 2px 24px 0;
  border-radius: 999px;
  background: var(--boton);
  color: var(--noche);
  font: 26px/1 var(--display);
  letter-spacing: 0.5px;
  text-decoration: none;
  box-shadow: 0 12px 30px -10px rgba(232, 69, 44, 0.75);
}
@media (prefers-reduced-motion: no-preference) {
  .s-btn, .s-top-cta { transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
  .s-btn:hover, .s-top-cta:hover { transform: translateY(-2px); }
  .s-btn:active { transform: translateY(1px) scale(0.99); }
}

/* ---------- Reto de enero ---------- */

.s-hero-reto {
  display: grid;
  align-items: center;
  min-height: calc(100vh - var(--top));
  min-height: calc(100svh - var(--top));
  padding-top: 26px;
  padding-bottom: 36px;
  text-align: center;
  background: linear-gradient(180deg, var(--noche) 0%, var(--ciruela) 26%, var(--vino) 50%, var(--brasa) 72%, var(--sol) 88%, #fbd9a4 96%, var(--crema) 100%);
}
.s-hero-reto::before { bottom: -300px; width: 680px; height: 680px; }
.s-hero-reto .s-hero-copy { display: flex; flex-direction: column; align-items: center; }
.s-badge {
  margin: 0 0 14px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 253, 249, 0.3);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.1);
  font-size: 14px;
  font-weight: 600;
}
.s-big { font-size: clamp(64px, 19vw, 132px); line-height: 0.86; }
.s-big span { display: block; }
.s-big span:last-child {
  background: linear-gradient(90deg, var(--sol), #ff8a3d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.s-hero-reto .s-hero-lead { max-width: 21em; margin-top: 16px; }
.s-btn-big { min-height: 62px; font-size: 28px; box-shadow: 0 0 0 1px rgba(27, 16, 36, 0.12), 0 16px 32px -12px rgba(27, 16, 36, 0.6); }
.s-count { min-height: 1.5em; margin: 12px 0 0; font-size: 15px; font-weight: 700; color: var(--noche); }

/* El calendario: una hoja de papel con los 30 días encendiéndose como el amanecer. */
.s-cal-box {
  width: min(100%, 330px);
  margin: 22px auto 24px;
  padding: 14px 14px 16px;
  border-radius: 22px;
  background: var(--papel);
  color: var(--tinta);
  box-shadow: 0 30px 60px -28px rgba(27, 16, 36, 0.8);
  transform: rotate(-1.5deg);
}
.s-cal-box figcaption { margin-bottom: 8px; font: 26px/1 var(--display); color: var(--vino); }
.s-cal-week, .s-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.s-cal-week span { font-size: 11px; font-weight: 700; color: var(--gris); }
.s-cal { margin: 6px 0 0; padding: 0; list-style: none; }
.s-cal li {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding-top: 2px;
  border-radius: 10px;
  background: var(--c);
  color: var(--t);
  font: 19px/1 var(--display);
}
.s-cal li.s-cal-off { background: transparent; }

@media (prefers-reduced-motion: no-preference) {
  .s-cal li:not(.s-cal-off) { animation: s-light 0.5s calc(0.6s + var(--i) * 55ms) var(--ease) both; }
  .s-hero::before { animation: s-rise 2s var(--ease) both; }
}
@keyframes s-light {
  0% { background: var(--arena); color: var(--gris); transform: scale(0.82); }
  60% { transform: scale(1.1); }
  100% { background: var(--c); color: var(--t); transform: none; }
}
@keyframes s-rise {
  from { transform: translate(-50%, 80px); opacity: 0.3; }
  to { transform: translateX(-50%); opacity: 1; }
}

/* Cómo funciona: tres pasos unidos por una línea de amanecer. */
.s-how { position: relative; margin: 0; padding: 0; list-style: none; counter-reset: como; }
.s-how::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 23px;
  width: 2px;
  background: linear-gradient(180deg, var(--vino), var(--brasa), var(--sol));
}
.s-how li {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 0 0 22px;
  font-size: 17px;
  line-height: 1.5;
  counter-increment: como;
}
.s-how li::before {
  content: counter(como);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding-top: 3px;
  border: 2px solid var(--vino);
  border-radius: 50%;
  background: var(--crema);
  color: var(--vino);
  font: 26px/1 var(--display);
}
.s-how li p { margin: 0; padding-top: 4px; }
.s-how li strong { font-size: 18px; }

.s-faq { max-width: 44rem; border-bottom: 1px solid var(--linea); }
.s-faq summary { position: relative; padding: 18px 40px 18px 0; font-size: 17px; font-weight: 700; cursor: pointer; list-style: none; }
.s-faq summary::-webkit-details-marker { display: none; }
.s-faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  color: var(--vino);
  transform: translateY(-50%);
}
.s-faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.s-faq p { margin: 0 0 18px; max-width: 36em; color: var(--gris); }
@media (prefers-reduced-motion: no-preference) {
  .s-faq summary::after { transition: transform 0.25s var(--ease); }
}

/* ---------- Pantallas más anchas ---------- */

@media (min-width: 640px) {
  .s-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .s-more { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .s-goals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  :root { --pad: 40px; --top: 64px; }
  .s-brand { font-size: 32px; }

  .s-h1 { font-size: clamp(72px, 7vw, 104px); }
  .s-hero-list { padding-bottom: 120px; }
  .s-hero-list .s-hero-copy { padding-top: 48px; }

  .s-hero-ex .s-hero-in, .s-hero-rt .s-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
  .s-hero-ex .s-hero-copy, .s-hero-rt .s-hero-copy { padding: 32px 0 120px; }
  .s-hero::before { left: 72%; bottom: -320px; width: 820px; height: 820px; }
  .s-hero-list::before { left: 80%; }

  .s-figs { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 40px 0 56px; overflow: visible; }
  .s-fig:last-child { transform: translateY(36px); }

  .s-card-wrap { padding: 40px 0 56px; }
  .s-card { width: 380px; }

  .s-ex-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: start; }
  .s-facts-sec { position: sticky; top: calc(var(--top) + 24px); padding: 26px 26px 12px; }

  .s-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 22px; }
  .s-chips-bar { flex-wrap: wrap; justify-content: center; -webkit-mask-image: none; mask-image: none; }

  .s-goals { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .s-goal { padding: 28px 28px 12px; }
  /* Si queda un objetivo solo en la última fila, ocupa todo el ancho con sus lugares en dos columnas. */
  .s-goal:last-child:nth-child(odd) { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .s-goal:last-child:nth-child(odd) .s-goal-head { grid-column: 1 / -1; }

  .s-routine li { grid-template-columns: 96px minmax(0, 1fr) 170px; grid-template-areas: "img txt dose"; column-gap: 20px; align-items: center; }
  .s-step-img img { width: 96px; height: 96px; }
  .s-routine, .s-phase { max-width: none; }
  .s-dose { flex-direction: column; align-items: flex-end; margin: 0; text-align: right; }

  .s-cta { padding: 64px 40px 56px; }

  .s-hero-reto {
    text-align: left;
    background: linear-gradient(180deg, var(--noche) 0%, var(--ciruela) 30%, var(--vino) 60%, var(--brasa) 82%, var(--sol) 93%, #fbd9a4 97%, var(--crema) 100%);
  }
  .s-hero-reto .s-hero-copy {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    grid-template-areas: "badge cal" "h1 cal" "lead cal" "btn cal" "count cal";
    grid-template-rows: auto auto auto auto 1fr;
    column-gap: 64px;
    align-items: start;
    justify-items: start;
  }
  .s-hero-reto .s-badge { grid-area: badge; }
  .s-hero-reto .s-h1 { grid-area: h1; font-size: clamp(96px, 9.5vw, 140px); }
  .s-hero-reto .s-hero-lead { grid-area: lead; margin-bottom: 28px; }
  .s-hero-reto .s-btn { grid-area: btn; margin: 0; }
  .s-hero-reto .s-count { grid-area: count; }
  .s-hero-reto .s-cal-box { grid-area: cal; align-self: center; width: 100%; max-width: 420px; margin: 0; padding: 22px; }
  .s-cal-box figcaption { font-size: 34px; }
  .s-cal li { font-size: 24px; border-radius: 12px; }
  .s-cal-week, .s-cal { gap: 8px; }
  .s-hero-reto::before { left: 74%; }
}

/* El disco de pesa junto al nombre. */
.s-brand { display: inline-flex; align-items: center; gap: 10px; }
.s-brand img { width: 30px; height: 30px; border-radius: 8px; }
