/* ============================================================================
 * reto.css — landing /reto/ v4 (Jean 2026-10-19: «mejora el estilo de la página y las imágenes para light y dark… header,
 * footer y contenido en todas las resoluciones»).
 * Mismo lenguaje que las landings de venta y el blog: lienzo LISO (`--surface`, el de la tienda), Fredoka en titulares y
 * Nunito Sans en el texto, paneles en el gris suave de la tienda (`--fill-soft`), violeta solo para actuar. Las fotos son
 * fotos de celular ENMARCADAS como tarjeta (radio + sombra corta): ya no se funden con un degradado pastel, que en oscuro
 * dejaba un óvalo claro brillante. Todo color sale de tokens, así que el mismo CSS sirve en los dos temas.
 * Bordes = `--pp-side` (los de la cabecera); texto de lectura centrado a ≤880 px.
 * Animación: entrada del hero (`.rh-in`, fill backwards) y revelado por scroll (`.rv` → `.is-in`, IO en js/reto.js);
 * sin JS o con reduced-motion todo se ve directo. Solo transform/opacity. Nada infinito (el gato ya no flota).
 * ==========================================================================*/
:root { --reto-line: color-mix(in srgb, var(--ink) 11%, transparent); --reto-line-2: color-mix(in srgb, var(--ink) 20%, transparent); }
.reto-body { overflow-x: clip; background: var(--surface); }
.reto-main { padding: 0 0 clamp(56px, 7vw, 100px); }
.reto-wrap { width: min(880px, calc(100% - 32px)); margin: 0 auto; text-align: center; }
.reto-h2 { margin: 0; color: var(--ink); font: 600 clamp(26px, 3vw, 40px)/1.12 "Fredoka", system-ui, sans-serif; letter-spacing: -.01em; text-wrap: balance; }
.reto-lead { margin: 12px auto 0; max-width: 58ch; color: var(--ink-2); font: 400 clamp(16px, 1.25vw, 18.5px)/1.6 "Nunito Sans", system-ui, sans-serif; text-wrap: pretty; }
.reto-note { margin: 10px auto 0; max-width: 60ch; color: var(--muted); font-size: 14px; line-height: 1.6; }
.reto-kicker { margin: 0; color: var(--ink-2); font: 800 12px/1 "Nunito Sans", system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- botones ---------- */
.reto-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 13px 30px; border: 0; border-radius: var(--ctl-r);
  background: var(--violet-600); color: var(--on-accent); font: 700 17px/1 "Nunito Sans", system-ui, sans-serif; text-decoration: none; cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-fb) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .reto-btn:hover { background: var(--accent-press); } }
.reto-btn:active { transform: scale(.97); }
.reto-btn[aria-busy="true"] { pointer-events: none; opacity: .75; }
.reto-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 6px; color: var(--ink); font: 700 16px/1 "Nunito Sans", system-ui, sans-serif;
  text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); text-underline-offset: 4px; }
.reto-btn:focus-visible, .reto-link:focus-visible, .reto-prod:focus-within { outline: 3px solid var(--violet-600); outline-offset: 3px; }

/* ---------- hero: texto | foto enmarcada ---------- */
.reto-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4.4vw, 72px); align-items: center;
  margin-inline: var(--pp-side); padding: calc(clamp(24px, 3.6vw, 52px) + 78px) 0 clamp(26px, 3.6vw, 52px); }
.reto-hero-txt { position: relative; z-index: 1; width: auto; margin: 0; text-align: left; }
.reto-hero h1 { margin: 12px 0 0; max-width: 16ch; color: var(--ink); font: 600 clamp(34px, 4.4vw, 60px)/1.05 "Fredoka", system-ui, sans-serif; letter-spacing: -.02em; text-wrap: balance; }
.reto-sub { margin: 18px 0 0; max-width: 44ch; color: var(--ink-2); font: 400 clamp(17px, 1.4vw, 20px)/1.55 "Nunito Sans", system-ui, sans-serif; text-wrap: pretty; }
.reto-sub b { color: var(--ink); font-weight: 800; }
.reto-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 24px; }
.reto-estado { margin: 16px 0 0; color: var(--ink-2); font: 700 14px/1.5 "Nunito Sans", system-ui, sans-serif; }
.reto-estado::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--ok-ink, #2f7d4f); vertical-align: 1px; }
.reto-estado.is-off::before { background: var(--muted); }
.reto-estado.is-off { color: var(--muted); }
.reto-hero-art { position: relative; margin: 0; }
.reto-hero-img, .reto-como-art img, .reto-final-img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 896; object-fit: cover;
  border-radius: clamp(18px, 2.2vw, 28px); background: var(--fill-soft); box-shadow: 0 30px 60px -38px rgb(var(--sh-211b57) / .55), var(--rim, 0 0 0 0 transparent); }
/* El gato es una pegatina sobre la esquina de la foto. En oscuro lleva un halo lavanda (receta de la mascota en oscuro): su
   ciruela casi desaparecía sobre el fondo. Quieto: ningún adorno infinito en la web pública. */
.reto-hero-gato { position: absolute; left: clamp(-26px, -2vw, -10px); bottom: clamp(-26px, -2vw, -12px); width: clamp(92px, 12vw, 150px); height: auto;
  filter: drop-shadow(0 10px 16px rgb(var(--sh-211b57) / .25)); rotate: -4deg; }
:root[data-theme="dark"] .reto-hero-gato { filter: drop-shadow(0 0 1px rgb(255 255 255 / .55)) drop-shadow(0 0 14px rgb(var(--sh-a98fe6) / .55)); }
.rh-in { animation: reto-in .6s var(--ease-out) backwards; animation-delay: var(--d, 0ms); }   /* fill backwards: el estado final es el natural */
@keyframes reto-in { from { opacity: 0; transform: translateY(12px); } }

/* ---------- tramos: tres tarjetas ---------- */
.reto-tramos { width: auto; margin: clamp(30px, 4vw, 60px) var(--pp-side) 0; }
.reto-tramos .reto-lead { margin-bottom: 0; }
.reto-tramo-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); max-width: 1180px; margin: clamp(20px, 2.6vw, 32px) auto 0; }
.reto-tramo { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: clamp(22px, 2.6vw, 32px) clamp(16px, 2vw, 26px);
  border-radius: var(--r-card); background: var(--fill-soft); text-align: center; }
.reto-tramo:first-child { background: color-mix(in srgb, var(--violet-600) 9%, var(--card)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--violet-600) 35%, transparent); }
.reto-tramo b { color: var(--ink); font: 600 clamp(46px, 5.4vw, 72px)/1 "Fredoka", system-ui, sans-serif; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.reto-tramo:first-child b { color: var(--violet-700); }
.reto-tramo-t { color: var(--ink); font: 700 clamp(15px, 1.15vw, 17px)/1.35 "Nunito Sans", system-ui, sans-serif; text-wrap: balance; }
.reto-tramo small { color: var(--ink-2); font-size: 14px; line-height: 1.5; text-wrap: balance; }

/* ---------- cómo funciona: foto + pasos ---------- */
.reto-como { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 64px);
  width: auto; max-width: 1180px; margin: clamp(48px, 6vw, 96px) auto 0; padding-inline: 16px; text-align: left; }
@media (min-width: 901px) { .reto-como { margin-inline: max(var(--pp-side), calc((100% - 1180px) / 2)); padding-inline: 0; } }
.reto-como-txt .reto-h2 { text-align: left; }
.reto-pasos { list-style: none; counter-reset: paso; margin: 20px 0 0; padding: 0; display: grid; gap: 16px; }
.reto-pasos li { counter-increment: paso; position: relative; padding-left: 50px; color: var(--ink-2); font: 400 clamp(16px, 1.2vw, 18px)/1.55 "Nunito Sans", system-ui, sans-serif; }
.reto-pasos li b { color: var(--ink); font-weight: 800; }
.reto-pasos li::before { content: counter(paso); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--card); font: 600 16px/1 "Fredoka", system-ui, sans-serif; }

/* ---------- registro: panel ---------- */
.reto-registro { margin-top: clamp(48px, 6vw, 96px); padding: clamp(26px, 3.4vw, 44px) clamp(18px, 3vw, 40px); width: min(720px, calc(100% - 32px));
  border-radius: clamp(18px, 2vw, 24px); background: var(--fill-soft); scroll-margin-top: 90px; }
.reto-form { width: min(560px, 100%); margin: 22px auto 0; text-align: left; }
.reto-f { display: grid; gap: 12px; }
.reto-lbl { display: block; margin-top: 4px; color: var(--ink); font: 700 14px/1.3 "Nunito Sans", system-ui, sans-serif; }
.reto-in { width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid var(--control-line); border-radius: var(--ctl-r);
  background: var(--card); color: var(--ink); font: 500 17px/1.3 "Nunito Sans", system-ui, sans-serif; transition: border-color var(--t-fb) var(--ease-out), box-shadow var(--t-fb) var(--ease-out); }
.reto-in:focus { outline: 0; border-color: var(--violet-600); box-shadow: 0 0 0 4px color-mix(in srgb, var(--violet-600) 18%, transparent); }
.reto-in.is-bad { border-color: var(--danger, #c0392b); }
.reto-code { text-transform: uppercase; letter-spacing: .22em; font: 700 22px/1.2 ui-monospace, Menlo, monospace; text-align: center; }
.reto-hint { margin: -4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.reto-hint.is-ok { color: var(--ok-ink, var(--ink)); font-weight: 700; }
.reto-actions { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 6px; }
.reto-actions .reto-btn { flex: 1 1 220px; }
.reto-ped { margin: 0; color: var(--ink); font: 700 16px/1.4 "Nunito Sans", system-ui, sans-serif; }
.reto-prods { display: grid; gap: 8px; }
.reto-prod { display: grid; grid-template-columns: auto 64px minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 14px 10px 12px; border-radius: var(--r-card);
  border: 1.5px solid transparent; background: var(--card); cursor: pointer; transition: border-color var(--t-fb) var(--ease-out), background var(--t-fb) var(--ease-out); }
.reto-prod:has(input:checked) { border-color: var(--violet-600); background: var(--selected, var(--card)); }
.reto-prod.is-off { opacity: .55; cursor: not-allowed; }
.reto-prod input { width: 18px; height: 18px; accent-color: var(--violet-600); }
.reto-prod img, .reto-prod .noimg { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; background: var(--fill-soft); }
.reto-prod .t { display: grid; gap: 2px; color: var(--ink-2); font-size: 14px; line-height: 1.35; }
.reto-prod .t b { color: var(--ink); font-size: 15px; }
.reto-chk { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.reto-chk input { flex: none; margin-top: 3px; width: 18px; height: 18px; accent-color: var(--violet-600); }
.reto-cap { min-height: 66px; }
.reto-cap:empty { display: none; }
.reto-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.reto-msg { margin: 0; padding: 12px 16px; border-radius: var(--r-card); background: var(--card); color: var(--ink); font-size: 14px; line-height: 1.5; }
.reto-msg.is-bad { background: color-mix(in srgb, var(--danger, #c0392b) 12%, var(--card)); }
.reto-msg[hidden] { display: none !important; }
.reto-listo { text-align: center; }
.reto-listo-code { margin: 8px 0 4px; color: var(--ink); font: 700 clamp(34px, 5vw, 46px)/1.2 ui-monospace, Menlo, monospace; letter-spacing: .12em; }
.reto-listo p { margin: 8px auto 0; max-width: 46ch; color: var(--ink-2); font: 400 16px/1.55 "Nunito Sans", system-ui, sans-serif; }
.reto-listo p b { color: var(--ink); font-weight: 800; }
.reto-listo .reto-actions { justify-content: center; margin-top: 16px; }

/* ---------- ranking / bases / faq ---------- */
.reto-ranking, .reto-faq { margin-top: clamp(48px, 6vw, 88px); }
.reto-rk-wrap { overflow-x: auto; margin-top: 16px; }
.reto-rk { width: 100%; border-collapse: collapse; font-size: 15px; text-align: left; }
.reto-rk th, .reto-rk td { padding: 11px 8px; border-bottom: 1px solid var(--reto-line); }
.reto-rk th { color: var(--muted); font: 800 12px/1 "Nunito Sans", sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.reto-rk td b { color: var(--ink); }
.reto-rk a { color: var(--violet-700); font-weight: 700; }
.reto-rk-tag { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--fill-soft); color: var(--ink); font: 800 12px/1 "Nunito Sans", sans-serif; }
.reto-rk-tag.p3 { background: var(--violet-600); color: var(--on-accent); }
.reto-bases { width: auto; max-width: 1180px; margin: clamp(48px, 6vw, 88px) auto 0; padding-inline: 16px; }
@media (min-width: 901px) { .reto-bases { margin-inline: max(var(--pp-side), calc((100% - 1180px) / 2)); padding-inline: 0; } }
.reto-bases ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); margin: 22px 0 0; padding: 0; list-style: none; text-align: left; }
.reto-bases li { padding: 14px 0; border-top: 1px solid var(--reto-line); color: var(--ink-2); font-size: 15px; line-height: 1.6; break-inside: avoid; }
.reto-bases li b { color: var(--ink); }
.reto-bases a { color: var(--violet-700); font-weight: 700; }
.reto-q { padding: 16px 0; border-top: 1px solid var(--reto-line); text-align: left; }
.reto-q:last-child { border-bottom: 1px solid var(--reto-line); }
.reto-faq .reto-h2 { margin-bottom: 16px; }
.reto-q h3 { margin: 0; color: var(--ink); font: 600 clamp(17px, 1.35vw, 20px)/1.3 "Fredoka", system-ui, sans-serif; }
.reto-q p { margin: 6px 0 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }

/* ---------- cierre: foto + llamada ---------- */
.reto-final { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(22px, 4vw, 56px);
  width: auto; max-width: 1180px; margin: clamp(48px, 6vw, 88px) auto 0; padding: clamp(18px, 2.4vw, 28px); border-radius: clamp(20px, 2.4vw, 30px);
  background: var(--fill-soft); text-align: left; }
@media (min-width: 901px) { .reto-final { margin-inline: max(var(--pp-side), calc((100% - 1180px) / 2)); } }
.reto-final-txt { display: grid; justify-items: start; gap: 14px; padding: clamp(4px, 1vw, 12px); }
.reto-final-txt p { margin: 0; color: var(--ink-2); font-size: 16.5px; line-height: 1.6; }

/* ---------- revelado por scroll ---------- */
html.rv-ready .rv { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
html.rv-ready .rv.is-in { opacity: 1; transform: none; }

/* ---------- responsive (tiers del repo: ≤720 · 721–900 · ≥901) ---------- */
@media (max-width: 900px) {
  .reto-hero { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-inline: 16px; padding-top: calc(20px + 64px); }
  .reto-hero h1 { max-width: 18ch; }
  .reto-hero-art { max-width: 640px; }
  .reto-como { grid-template-columns: minmax(0, 1fr); }
  .reto-como-art { order: 2; max-width: 640px; }
  .reto-tramos { margin-inline: 16px; }
  .reto-final { grid-template-columns: minmax(0, 1fr); margin-inline: 16px; }
}
@media (max-width: 720px) {
  .reto-hero h1 { font-size: clamp(30px, 8.6vw, 40px); }
  .reto-hero-gato { width: 84px; left: -6px; bottom: -14px; }
  .reto-tramo-row { grid-template-columns: minmax(0, 1fr); }
  .reto-tramo { flex-direction: row; flex-wrap: wrap; justify-content: center; column-gap: 12px; }
  .reto-tramo b { font-size: 44px; }
  .reto-tramo-t, .reto-tramo small { flex-basis: 100%; }
  .reto-cta { flex-direction: column; align-items: stretch; }
  .reto-cta .reto-btn { width: 100%; }
  .reto-cta .reto-link { justify-content: center; }
  .reto-bases ul { grid-template-columns: minmax(0, 1fr); }
  .reto-registro { width: 100%; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .rh-in { animation: none; }
  .reto-btn, .reto-btn:active { transition: none; transform: none; }
  html.rv-ready .rv { opacity: 1; transform: none; transition: none; }
}

/* ══ v4b (Jean 2026-10-19: «se ve muy flat… simple de leer o botones para expandir… transiciones premium sin perder la
   identidad o colores de mi página»). La identidad del reto era el rosa→lavanda: vuelve, pero SOLO como luz detrás de la
   portada y en los acentos (no lavando toda la página), mezclado contra `--card` para que en oscuro sea un brillo tenue. ══ */
.reto-hero { position: relative; isolation: isolate; }
.reto-hero::before { content: ""; position: absolute; z-index: -1; inset: -78px calc(-1 * var(--pp-side)) 0; pointer-events: none;
  background: radial-gradient(60% 70% at 12% 20%, color-mix(in srgb, var(--pink) 13%, transparent), transparent 70%),
              radial-gradient(55% 65% at 88% 40%, color-mix(in srgb, var(--violet-600) 12%, transparent), transparent 72%); }
.reto-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--pink) 12%, var(--card)); color: var(--pink-ink, var(--ink)); }
.reto-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); }
.reto-sub b { color: var(--violet-700); }
.reto-halo { position: absolute; z-index: -1; inset: -7% 0 -9% -8%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--pink) 26%, transparent), transparent),
              radial-gradient(closest-side at 70% 60%, color-mix(in srgb, var(--violet-600) 24%, transparent), transparent); }
.reto-hero-art { isolation: isolate; }
.reto-pega { position: absolute; padding: 8px 14px; border-radius: 999px; background: var(--card); color: var(--ink);
  font: 800 clamp(13px, 1.1vw, 15px)/1 "Nunito Sans", system-ui, sans-serif; white-space: nowrap;
  box-shadow: 0 10px 24px -12px rgb(var(--sh-211b57) / .45), var(--rim, 0 0 0 0 transparent); }
.reto-pega--1 { top: 8%; right: -10px; rotate: 4deg; color: var(--violet-700); }
.reto-pega--2 { bottom: 14%; right: 6%; rotate: -3deg; color: var(--pink-ink, var(--ink)); }
.reto-hero-img { position: relative; }

/* entradas premium: suben con una curva larga; las pegatinas «se pegan» con un rebote corto. Una sola vez (fill backwards). */
.reto-hero-art.rh-in { animation-name: reto-foto; animation-duration: .9s; }
@keyframes reto-foto { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.reto-pega, .reto-hero-gato { animation: reto-pega .7s cubic-bezier(.34, 1.56, .64, 1) backwards; }
.reto-pega--1 { animation-delay: .55s; } .reto-pega--2 { animation-delay: .7s; } .reto-hero-gato { animation-delay: .85s; }
@keyframes reto-pega { from { opacity: 0; transform: scale(.6) translateY(8px); } }

/* premios: icono en su disco; el primero (el seguro) en violeta, los de meta en rosa y oro */
.reto-tramo { position: relative; transition: box-shadow var(--t-tr) var(--ease-out), background-color var(--t-tr) var(--ease-out); }
@media (hover: hover) { .reto-tramo:hover { box-shadow: 0 18px 36px -24px rgb(var(--sh-211b57) / .5); } }
.reto-tramo-ic { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 4px; border-radius: 14px; background: var(--card); color: var(--violet-700); }
.reto-tramo-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.reto-tramo:nth-child(2) .reto-tramo-ic { color: var(--pink); }
.reto-tramo:nth-child(3) .reto-tramo-ic { color: var(--gold-500, #c98a1b); }
html.rv-ready .reto-tramo.rv .reto-tramo-ic { transform: scale(.7); opacity: 0; transition: transform .6s cubic-bezier(.34, 1.56, .64, 1), opacity .3s var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms + .15s); }
html.rv-ready .reto-tramo.rv.is-in .reto-tramo-ic { transform: none; opacity: 1; }

/* pasos unidos por un hilo punteado que se «teje» al llegar */
.reto-pasos { position: relative; }
.reto-pasos::before { content: ""; position: absolute; left: 16px; top: 18px; bottom: 18px; width: 0; border-left: 2px dashed color-mix(in srgb, var(--pink) 55%, transparent);
  transform-origin: top; }
html.rv-ready .reto-pasos::before { transform: scaleY(0); transition: transform 1.4s var(--ease-out) .2s; }
html.rv-ready .reto-pasos:has(li.is-in)::before { transform: none; }
.reto-pasos li::before { z-index: 1; background: var(--violet-600); color: var(--on-accent); box-shadow: 0 0 0 5px var(--surface); }

/* registro: el panel gana un filo de marca */
.reto-registro { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--violet-600) 18%, transparent); background:
  linear-gradient(160deg, color-mix(in srgb, var(--pink) 7%, var(--fill-soft)), var(--fill-soft) 45%, color-mix(in srgb, var(--violet-600) 7%, var(--fill-soft))); }

/* bases: lo esencial a la vista, el detalle en desplegables */
.reto-esencial { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; text-align: left; }
.reto-esencial li { position: relative; padding: 14px 16px 14px 44px; border-radius: var(--r-card); background: var(--fill-soft); color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.reto-esencial li::before { content: ""; position: absolute; left: 16px; top: 18px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--violet-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 10px no-repeat; }
.reto-esencial b { color: var(--ink); }
.reto-accs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); margin-top: 10px; text-align: left; }
.reto-acc { border-top: 1px solid var(--reto-line); interpolate-size: allow-keywords; }
.reto-acc > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 52px; padding: 12px 2px; cursor: pointer; list-style: none;
  color: var(--ink); font: 700 16px/1.35 "Nunito Sans", system-ui, sans-serif; }
.reto-acc > summary::-webkit-details-marker { display: none; }
.reto-acc > summary h3 { margin: 0; font: inherit; color: inherit; }
.reto-acc > summary:hover { color: var(--violet-700); }
.reto-acc > summary:focus-visible { outline: 3px solid var(--violet-600); outline-offset: 2px; border-radius: 6px; }
.reto-acc-ch { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t-tr) var(--ease-out); }
.reto-acc[open] .reto-acc-ch { transform: rotate(180deg); }
.reto-acc > p { margin: 0; padding: 0 2px 16px; color: var(--ink-2); font-size: 15px; line-height: 1.65; }
/* El alto se anima donde el navegador lo sabe hacer (::details-content + interpolate-size); donde no, abre al instante. */
.reto-acc::details-content { block-size: 0; overflow: clip; opacity: 0;
  transition: block-size var(--t-sheet, 280ms) var(--ease-out), opacity var(--t-tr) var(--ease-out), content-visibility var(--t-sheet, 280ms) allow-discrete; }
.reto-acc[open]::details-content { block-size: auto; opacity: 1; }
.reto-faq .reto-q { padding: 0; }
.reto-faq .reto-q > summary { font: 600 clamp(17px, 1.35vw, 19px)/1.3 "Fredoka", system-ui, sans-serif; }

.reto-final { position: relative; overflow: clip; isolation: isolate;
  background: linear-gradient(120deg, color-mix(in srgb, var(--pink) 10%, var(--fill-soft)), var(--fill-soft) 50%, color-mix(in srgb, var(--violet-600) 10%, var(--fill-soft))); }

@media (max-width: 900px) {
  .reto-hero::before { inset: -64px -16px 0; }
  .reto-pega--1 { right: 8px; }
}
@media (max-width: 720px) {
  .reto-esencial, .reto-accs { grid-template-columns: minmax(0, 1fr); }
  .reto-pega { font-size: 12.5px; padding: 7px 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .reto-pega, .reto-hero-gato, .reto-hero-art.rh-in { animation: none; }
  .reto-acc::details-content, .reto-acc-ch, .reto-tramo { transition: none; }
  html.rv-ready .reto-pasos::before, html.rv-ready .reto-tramo.rv .reto-tramo-ic { transform: none; opacity: 1; transition: none; }
}
/* Todas las secciones anchas comparten los bordes de la cabecera y de la portada (`--pp-side`), como el blog. */
@media (min-width: 901px) {
  .reto-tramo-row { max-width: none; }
  .reto-como, .reto-bases, .reto-final { max-width: none; margin-inline: var(--pp-side); }
}
.reto-acc > p::first-letter { text-transform: uppercase; }
