/* ===== Fuerza +40 · entrada por niveles (v31) ===== */
.nivel, .remedir { position: relative; padding: clamp(1.6rem, 5vw, 3.4rem) clamp(1rem, 5vw, 3rem) clamp(2.2rem, 6vw, 4rem); max-width: 1180px; margin: 0 auto; }
.nivel { padding-top: clamp(1.2rem, 4vw, 2.4rem); }
.nivel-kicker { margin: 0 0 .5rem; font: 1.15rem/1.1 "Permanent Marker", cursive; color: var(--pink); transform: rotate(-2deg); display: inline-block; }
.nivel-h { margin: 0 0 .9rem; font-size: clamp(3.4rem, 7vw, 5.6rem); line-height: .92; letter-spacing: -.01em; color: var(--ink); }
.nivel-h span { color: var(--violet); }
.nivel-lede { max-width: 46ch; margin: 0 0 1.4rem; font-size: 1rem; line-height: 1.55; color: var(--ink-soft); }
.nivel-lede strong { color: var(--ink); }

/* lista de niveles */
.nivel-lista { display: grid; gap: .7rem; }
.nivel-btn { display: grid; grid-template-columns: auto 1fr; gap: .2rem .9rem; align-items: center; width: 100%; padding: .9rem 1rem .95rem; text-align: left; cursor: pointer; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 5px; box-shadow: 5px 5px 0 var(--ink); font: inherit; transition: transform .15s ease, box-shadow .15s ease, background .2s ease; }
.nivel-btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.nivel-btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.nivel-btn:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.nivel-num { grid-row: 1 / span 2; display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border: 2px solid var(--ink); border-radius: 50%; background: var(--ink); color: var(--lime); font: 2.2rem/1 "Bebas Neue", sans-serif; }
.nivel-barra { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; max-width: 190px; }
.nivel-barra i { height: 9px; border: 1.5px solid var(--ink); background: transparent; }
.nivel-barra i.on { background: var(--lime); }
.nivel-frase { font-weight: 800; font-size: 1rem; line-height: 1.25; }
.nivel-btn[aria-checked="true"] { background: var(--lime); box-shadow: 5px 5px 0 var(--violet); }
.nivel-btn[aria-checked="true"] .nivel-num { background: var(--violet); color: #fff; border-color: var(--violet); }
.nivel-btn[aria-checked="true"] .nivel-barra i.on { background: var(--ink); }
.nivel-lista.elegido .nivel-btn[aria-checked="false"] { opacity: .55; }

/* resultado */
.nivel-resultado { margin-top: 1.4rem; padding: 1.4rem 1.2rem 1.5rem; background: var(--ink); color: var(--paper); border: 3px solid var(--lime); border-radius: 9px; box-shadow: 8px 8px 0 var(--pink); animation: nivel-entra .5s cubic-bezier(.2,.8,.2,1); }
.nivel-resultado[hidden] { display: none; }
@keyframes nivel-entra { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.nr-top { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .9rem; }
.nr-top b { font: 1.25rem/1 "Bebas Neue", sans-serif; letter-spacing: .08em; color: var(--lime); }
.nr-top .nivel-barra i { border-color: var(--paper); }
.nr-top .nivel-barra i.on { background: var(--lime); }
.nr-label { display: block; margin-bottom: .2rem; font: .95rem/1 "Bebas Neue", sans-serif; letter-spacing: .1em; color: var(--muted); }
.nr-sesion { margin: 0 0 .6rem; font: clamp(2.4rem, 11vw, 3.6rem)/.9 "Bebas Neue", sans-serif; color: #fff; }
.nr-version { display: inline-block; margin-bottom: .9rem; padding: .35rem .6rem .3rem; border: 2px solid var(--ink); font: 1.05rem/1 "Bebas Neue", sans-serif; letter-spacing: .06em; color: var(--ink); }
.nr-version.justa { background: var(--yellow); }
.nr-version.normal { background: var(--paper); }
.nr-version.mas { background: var(--teal); }
.nr-txt { margin: 0 0 1.1rem; font-size: .98rem; line-height: 1.55; color: var(--paper-deep); }
.nr-obj { margin: 0 0 1.3rem; padding: .9rem 1rem; border: 2px dashed rgba(183,255,74,.55); border-radius: 5px; }
.nr-obj span { display: block; margin-bottom: .3rem; font: .95rem/1 "Bebas Neue", sans-serif; letter-spacing: .1em; color: var(--lime); }
.nr-obj p { margin: 0; font: 1.25rem/1.25 "Permanent Marker", cursive; color: #fff; }
.nr-acciones { display: grid; gap: .7rem; }
.nr-go { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 60px; padding: .9rem 1rem; border: 2px solid var(--ink); background: var(--lime); color: var(--ink); box-shadow: 5px 5px 0 var(--pink); font: 1.5rem/1 "Bebas Neue", sans-serif; letter-spacing: .05em; text-decoration: none; cursor: pointer; animation: nivel-respira 2.6s ease-in-out infinite; }
.nr-go svg { width: 1.3rem; height: 1.3rem; fill: currentColor; }
@keyframes nivel-respira { 0%,100% { transform: scale(1); } 50% { transform: scale(1.025); } }
.nr-wa { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 54px; padding: .8rem 1rem; border: 2px solid var(--lime); color: var(--lime); text-decoration: none; font: 1.25rem/1 "Bebas Neue", sans-serif; letter-spacing: .05em; }
.nr-prog { display: flex; align-items: center; justify-content: center; min-height: 54px; padding: .8rem 1rem; border: 2px solid var(--ink); background: var(--violet); color: #fff; box-shadow: 5px 5px 0 var(--lime); text-decoration: none; font: 1.35rem/1 "Bebas Neue", sans-serif; letter-spacing: .05em; }
.nr-cambiar { justify-self: start; padding: .3rem 0; border: 0; background: none; color: var(--paper-deep); font: 700 .86rem/1 "DM Sans", sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.nr-aviso { margin: .9rem 0 0; font-size: .8rem; line-height: 1.45; color: var(--muted); }

/* la versión recomendada se marca en cada ejercicio */
.mi-version { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .55rem .25rem; border: 2px solid var(--ink); font: .95rem/1 "Bebas Neue", sans-serif; letter-spacing: .06em; }
.mi-version.justa { background: var(--yellow); }
.mi-version.normal { background: var(--paper); }
.mi-version.mas { background: var(--teal); }
body.modo-justa .level-easy, body.modo-mas .level-hard { position: relative; box-shadow: 4px 4px 0 var(--ink); border-width: 2px; }
body.modo-justa .level-easy::after, body.modo-mas .level-hard::after { content: "TU VERSIÓN"; position: absolute; top: -.7rem; right: .5rem; padding: .18rem .4rem .12rem; background: var(--ink); color: var(--lime); font: .78rem/1 "Bebas Neue", sans-serif; letter-spacing: .08em; }
body.modo-justa .level-hard, body.modo-mas .level-easy { opacity: .55; }

/* remedir */
.remedir { border-top: 3px solid var(--ink); }
.remedir[hidden] { display: none; }

/* vídeo del programa */
.programa-video { position: relative; display: block; width: min(100%, 420px); margin: 2rem auto 0; aspect-ratio: 9 / 13; overflow: hidden; border: 3px solid var(--ink); box-shadow: 7px 7px 0 var(--ink); text-decoration: none; }
.programa-video img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.programa-video:hover img { transform: scale(1.04); }
.programa-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(21,19,25,.92)); }
.pv-play { position: absolute; left: 50%; top: 42%; z-index: 2; width: 78px; height: 78px; margin: -39px 0 0 -39px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); animation: pv-late 2.4s ease-in-out infinite; }
.pv-play svg { width: 2rem; height: 2rem; margin-left: 4px; fill: var(--ink); }
@keyframes pv-late { 0%,100% { box-shadow: 4px 4px 0 var(--ink), 0 0 0 0 rgba(183,255,74,.5); } 50% { box-shadow: 4px 4px 0 var(--ink), 0 0 0 16px rgba(183,255,74,0); } }
.pv-cap { position: absolute; left: 1rem; right: 1rem; bottom: .9rem; z-index: 2; color: #fff; }
.pv-cap b { display: block; font: 1.9rem/.95 "Bebas Neue", sans-serif; font-weight: 400; }
.pv-cap span { font-size: .84rem; color: var(--paper-deep); }

/* barra inferior tipo app */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: center; padding: .6rem clamp(.8rem, 4vw, 1.2rem) calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255,248,239,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 2px solid var(--ink); transform: translateY(115%); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.dock.show { transform: none; }
.dock-nivel { display: grid; justify-items: center; min-width: 58px; padding: .3rem .4rem; border: 2px solid var(--ink); background: var(--ink); color: var(--lime); text-decoration: none; }
.dock-nivel b { font: 1.6rem/1 "Bebas Neue", sans-serif; font-weight: 400; }
.dock-nivel span { font: 700 .62rem/1 "DM Sans", sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--paper); }
.dock-reservar { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: .5rem .8rem; border: 2px solid var(--ink); background: var(--violet); color: #fff; box-shadow: 4px 4px 0 var(--ink); text-decoration: none; font: 1.3rem/1 "Bebas Neue", sans-serif; letter-spacing: .05em; text-align: center; }
.dock .floating-whatsapp { position: static; z-index: auto; }
.dock .floating-whatsapp-copy { display: none !important; }
.dock .floating-whatsapp, .dock .floating-whatsapp.is-expanded { gap: 0; }
.dock .floating-whatsapp-icon { width: 54px; height: 54px; }
.dock .floating-whatsapp-icon svg { width: 1.8rem; height: 1.8rem; }
.site-footer { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }

@media (min-width: 860px) {
  .nivel-lista { grid-template-columns: repeat(5, 1fr); }
  .nivel-btn { grid-template-columns: 1fr; align-content: start; min-height: 220px; }
  .nivel-num { grid-row: auto; }
  .nivel-resultado { max-width: 760px; }
  .nr-acciones { grid-template-columns: 1fr 1fr; }
  .dock { left: auto; right: 1.5rem; bottom: 1.5rem; grid-template-columns: auto 260px auto; padding: .6rem; border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
  .dock:not(.show) { transform: translateY(calc(100% + 60px)); }
}
@media (prefers-reduced-motion: reduce) { .nr-go, .pv-play, .nivel-resultado { animation: none; } }

/* en el móvil, el selector manda: la cabecera se queda en marca */
@media (max-width: 859px) {
  .site-header .header-program-link { display: none; }
}
.nr-top .nivel-barra { width: 110px; flex: none; }
