/* Muay Thai & MMA Concón · Team Muchik — "Panda y dragón"
   El sello tiene dos personajes. La página tiene dos lados: panda (empezar) y dragón (competir).
   html[data-lado] cambia colores, tratamiento de fotos y qué sección se muestra. */

@font-face { font-family: "Gasoek One"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/gasoek-one-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Gasoek One"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/gasoek-one-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("assets/fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("assets/fonts/onest-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --noche: #030b12;
  --abismo: #06121f;
  --azul: #2b95ff;
  --azul-hondo: #0b3a6e;
  --pelaje: #ebeae5;
  --tinta: #121418;
  --crema: #efe5cf;

  --display: "Gasoek One", "Onest", sans-serif;
  --texto-f: "Onest", system-ui, sans-serif;
  --sale: cubic-bezier(.16, 1, .3, 1);
  --envase: 1180px;

  /* lado panda (por defecto) */
  --fondo: var(--pelaje);
  --fondo-2: #dfded8;
  --texto: var(--tinta);
  --suave: #4a4f57;
  --linea: rgba(18, 20, 24, .16);
  --acento: var(--tinta);
  --acento-txt: var(--pelaje);
  --vivo: #1673d6;
  --textura: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");

  /* posición de la costura entre las dos mitades */
  --cd: 1fr;
  --cp: 1fr;
  --costura: 50%;
}

html[data-lado="dragon"] {
  --fondo: var(--abismo);
  --fondo-2: #0a1b2e;
  --texto: #e4ecf5;
  --suave: #a3b6ca;
  --linea: rgba(120, 170, 230, .2);
  --acento: var(--azul);
  --acento-txt: #02101e;
  --vivo: var(--azul);
  --textura: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='26'%3E%3Cg fill='none' stroke='%232b95ff' stroke-opacity='.09' stroke-width='1.3'%3E%3Cpath d='M0 26a22 22 0 0 1 44 0M-22 13a22 22 0 0 1 44 0M22 13a22 22 0 0 1 44 0'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: dark;
}

html[data-elegido="si"][data-lado="panda"] { --cd: .72fr; --cp: 1.28fr; --costura: 36%; }
html[data-elegido="si"][data-lado="dragon"] { --cd: 1.28fr; --cp: .72fr; --costura: 64%; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
.quieto, .quieto * { scroll-behavior: auto !important; }
body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--texto-f);
  color: var(--texto);
  background: var(--fondo) var(--textura);
  -webkit-font-smoothing: antialiased;
  transition: background-color .5s var(--sale), color .5s var(--sale);
}
img { display: block; max-width: 100%; height: auto; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
::selection { background: var(--azul); color: #fff; }
:focus-visible { outline: 2px solid var(--azul); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: var(--suave) var(--fondo); }

.envase { width: min(100% - 2.5rem, var(--envase)); margin-inline: auto; }
.saltar { position: absolute; left: 1rem; top: -4rem; z-index: 50; padding: .6rem 1rem; background: var(--azul); color: #fff; border-radius: 6px; }
.saltar:focus { top: 1rem; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: .7rem 1.15rem;
  border: 0; border-radius: 999px;
  background: var(--acento); color: var(--acento-txt);
  font-weight: 650; font-size: .98rem; text-decoration: none; line-height: 1.1;
  transition: transform .2s var(--sale), background-color .3s, box-shadow .3s;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .45);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); }

.avatar {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background-color: var(--noche); background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5);
}
.avatar-panda { background-image: url("assets/img/panda.webp"); background-size: 220%; background-position: 57% 39%; }
.avatar-dragon { background-image: url("assets/img/dragon.webp"); background-size: 220%; background-position: 6% 50%; }

/* ---------- barra ---------- */
.barra {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 1rem;
  padding: .55rem max(1.25rem, env(safe-area-inset-left));
  background: rgba(3, 11, 18, .82);
  backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2);
  color: #e9eef4;
  border-bottom: 1px solid rgba(120, 170, 230, .14);
}
.marca { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--display); font-size: 1.02rem; letter-spacing: .01em; }
.marca img { width: 40px; height: 40px; }
.interruptor {
  margin-left: auto; display: flex; padding: 3px; gap: 2px;
  border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1);
}
.int-btn {
  display: flex; align-items: center; gap: .45rem; min-height: 40px; padding: 3px .85rem 3px 4px;
  border: 0; border-radius: 999px; background: transparent; color: #b8c6d6; font-weight: 600; font-size: .9rem;
  transition: background-color .3s var(--sale), color .3s;
}
.int-btn[aria-pressed="true"] { background: #e9eef4; color: var(--noche); }
html[data-lado="dragon"] .int-btn[aria-pressed="true"] { background: var(--azul); color: #02101e; }
.int-btn:hover:not([aria-pressed="true"]) { color: #fff; background: rgba(255, 255, 255, .08); }
.btn-barra { min-height: 40px; padding: .5rem 1rem; font-size: .9rem; background: var(--crema); color: var(--noche); }

/* ---------- portada ---------- */
.portada {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: var(--cd) var(--cp);
  min-height: min(calc(100svh - 57px), 900px);
  background: var(--noche);
  color: #eef3f8;
  transition: grid-template-columns .9s var(--sale);
  isolation: isolate;
}
html[data-elegido="no"] .portada:has(.mitad-dragon:hover) { --cd: 1.12fr; --cp: .88fr; --costura: 56%; }
html[data-elegido="no"] .portada:has(.mitad-panda:hover) { --cd: .88fr; --cp: 1.12fr; --costura: 44%; }

.mitad {
  position: relative; min-width: 0; overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(1rem, 2vh, 2rem) clamp(1.25rem, 3vw, 2.75rem) clamp(1.5rem, 5vh, 3.5rem);
}
.mitad::before { /* brillo azul del afiche detrás de cada personaje */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 55% at var(--bx, 30%) 32%, rgba(43, 149, 255, .22), transparent 70%);
  transition: opacity .6s;
}
.mitad-dragon { --bx: 28%; align-items: flex-start; border-right: 1px solid rgba(120, 170, 230, .18); }
.mitad-panda { --bx: 72%; align-items: flex-end; text-align: right; }

.arte {
  position: relative; flex: none;
  width: min(84%, 540px, 58vh); height: auto; margin-bottom: -16%;
  transition: filter .7s var(--sale), opacity .7s var(--sale), transform .9s var(--sale);
  pointer-events: none;
}
.mitad-dragon .arte { margin-left: calc(-1 * clamp(1.25rem, 3vw, 2.75rem)); transform-origin: 20% 40%; }
.mitad-panda .arte { margin-right: calc(-1 * clamp(1.25rem, 3vw, 2.75rem)); transform-origin: 80% 40%; }

.mitad-txt { position: relative; max-width: 38rem; display: grid; gap: .8rem; justify-items: inherit; }
.mitad-panda .mitad-txt { justify-items: end; }
.mitad-dragon .mitad-txt { justify-items: start; }
.lema, .bajada { text-shadow: 0 2px 16px rgba(3, 11, 18, .85); }
.lema { font-family: var(--display); font-size: clamp(2rem, 4.2vw, 3.9rem); line-height: .95; letter-spacing: -.01em; }
.mitad-dragon .lema { color: #cfe5ff; text-shadow: 0 0 40px rgba(43, 149, 255, .35); }
.bajada { color: #b9c7d6; font-size: clamp(.95rem, 1.3vw, 1.08rem); max-width: 26rem; }
.btn-lado { background: #eef3f8; color: var(--noche); margin-top: .35rem; }
.mitad-dragon .btn-lado { background: var(--azul); color: #02101e; }
.mitad-txt { transition: opacity .5s var(--sale), transform .7s var(--sale); }

/* lado elegido: la otra mitad se apaga y se encoge */
html[data-elegido="si"][data-lado="panda"] .mitad-dragon .arte,
html[data-elegido="si"][data-lado="dragon"] .mitad-panda .arte { filter: grayscale(1) brightness(.5); transform: scale(.94); }
html[data-elegido="si"][data-lado="panda"] .mitad-dragon :is(.lema, .bajada),
html[data-elegido="si"][data-lado="dragon"] .mitad-panda :is(.lema, .bajada) { opacity: 0; transform: translateY(8px); pointer-events: none; }
html[data-elegido="si"][data-lado="panda"] .mitad-dragon .mitad-txt,
html[data-elegido="si"][data-lado="dragon"] .mitad-panda .mitad-txt { grid-template-rows: 0fr 0fr auto; }
html[data-elegido="si"][data-lado="panda"] .mitad-dragon::before,
html[data-elegido="si"][data-lado="dragon"] .mitad-panda::before { opacity: .25; }
html[data-elegido="si"][data-lado="panda"] .mitad-panda .arte,
html[data-elegido="si"][data-lado="dragon"] .mitad-dragon .arte { transform: scale(1.1); }

.centro {
  position: absolute; z-index: 2; top: clamp(1.5rem, 8vh, 5rem); left: var(--costura);
  width: min(30rem, 42vw); transform: translateX(-50%);
  display: grid; justify-items: center; text-align: center; gap: .85rem;
  transition: left .9s var(--sale);
  pointer-events: none;
}
.sello {
  pointer-events: auto;
  width: clamp(130px, 15vw, 210px); aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%;
  background: none;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .6));
  transition: transform .3s var(--sale);
}
.sello img { width: 100%; height: 100%; border-radius: 50%; }
.sello:hover { transform: rotate(-8deg) scale(1.03); }
.sello.gira img { animation: gira .9s var(--sale); }
@keyframes gira { from { transform: rotate(0); } to { transform: rotate(360deg); } }
h1 {
  font-family: var(--display); font-size: clamp(1.35rem, 2.3vw, 2.15rem); line-height: 1.02;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .8);
}
h1 span { display: block; font-size: 1.55em; color: var(--crema); }
.lema-casa { font-size: .82rem; letter-spacing: .04em; color: #b9c7d6; display: flex; align-items: center; gap: .55rem; text-shadow: 0 1px 10px #000; }
.lema-casa i { width: 6px; height: 6px; background: var(--azul); display: inline-block; }

/* entrada: el sello gira a su lugar y las dos mitades se abren desde la costura */
html:not(.quieto) .mitad-dragon { animation: abre-izq 1.1s var(--sale) .35s both; }
html:not(.quieto) .mitad-panda { animation: abre-der 1.1s var(--sale) .35s both; }
html:not(.quieto) .sello img { animation: llega 1.1s var(--sale) both; }
html:not(.quieto) .centro h1, html:not(.quieto) .lema-casa { animation: aparece .8s var(--sale) .95s both; }
html:not(.quieto) .mitad-txt { animation: aparece .8s var(--sale) 1.1s both; }
@keyframes abre-izq { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes abre-der { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes llega { from { transform: rotate(-200deg) scale(.55); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes aparece { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- ahora ---------- */
.ahora { background: var(--fondo-2); border-bottom: 1px solid var(--linea); transition: background-color .5s; }
.ahora-in { width: min(100% - 2.5rem, var(--envase)); margin-inline: auto; display: flex; align-items: center; gap: .85rem; min-height: 60px; padding-block: .65rem; }
.pulso { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--suave); }
.ahora.en-curso .pulso { background: var(--vivo); box-shadow: 0 0 0 0 var(--vivo); animation: late 1.8s infinite; }
@keyframes late { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
#ahora-txt { font-weight: 550; }
#ahora-txt b { font-weight: 750; }
.ahora-link { margin-left: auto; font-size: .92rem; color: var(--suave); white-space: nowrap; }

/* ---------- títulos de sección ---------- */
h2 { font-family: var(--display); font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1; letter-spacing: -.01em; }
h3 { font-family: var(--display); font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.05; }
section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.ahora, .portada { padding-block: 0; }
.cab { display: grid; gap: .8rem; max-width: 46rem; margin-bottom: 1.75rem; }
.cab-txt { color: var(--suave); }

/* ---------- horario ---------- */
.filtros { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.chip {
  min-height: 40px; padding: .4rem 1rem; border-radius: 999px;
  border: 1px solid var(--linea); background: transparent; font-weight: 600; font-size: .92rem;
  transition: background-color .25s, color .25s, border-color .25s;
}
.chip:hover { border-color: var(--texto); }
.chip[aria-pressed="true"] { background: var(--texto); color: var(--fondo); border-color: var(--texto); }

.semana {
  display: grid;
  grid-template-columns: 3.6rem repeat(6, minmax(0, 1fr));
  grid-template-rows: auto repeat(2, 58px) 34px repeat(4, 58px);
  gap: 4px;
  font-variant-numeric: tabular-nums;
}
.semana .dia-cab { grid-row: 1; padding: .35rem .5rem .6rem; font-family: var(--display); font-size: 1.05rem; }
.semana .dia-cab.hoy { color: var(--vivo); }
.semana .dia-cab.hoy::after { content: " · hoy"; font-family: var(--texto-f); font-size: .78rem; font-weight: 700; }
.semana .hora { grid-column: 1; font-size: .78rem; color: var(--suave); padding-top: 2px; transform: translateY(-.6em); }
.semana .pausa {
  grid-column: 2 / -1; grid-row: 4; align-self: center;
  font-size: .78rem; color: var(--suave); text-align: center;
  border-block: 1px dashed var(--linea); padding: .25rem;
}
.semana .linea-h { grid-column: 2 / -1; border-top: 1px solid var(--linea); pointer-events: none; }
.bloque {
  position: relative; z-index: 1; min-width: 0;
  display: flex; flex-direction: column; justify-content: flex-start; gap: .1rem;
  padding: .5rem .65rem; border-radius: 10px;
  background: var(--texto); color: var(--fondo);
  transition: opacity .3s, transform .3s var(--sale), background-color .5s, color .5s;
  overflow: hidden;
}
.bloque b { font-weight: 750; font-size: .95rem; line-height: 1.15; }
.bloque span { font-size: .8rem; opacity: .8; }
.bloque[data-k="jj"] { background: var(--fondo); color: var(--texto); box-shadow: inset 0 0 0 1.5px var(--texto); }
.bloque[data-k="grap"] { background: color-mix(in srgb, var(--texto) 62%, var(--fondo)); }
.bloque[data-k="open"] { background: transparent; color: var(--texto); box-shadow: inset 0 0 0 1.5px var(--texto); background-image: repeating-linear-gradient(-45deg, var(--linea) 0 2px, transparent 2px 8px); }
html[data-lado="dragon"] .bloque[data-k="mma"] { background: var(--azul); color: #02101e; }
html[data-lado="dragon"] .bloque[data-k="grap"] { background: var(--azul-hondo); color: #e4ecf5; }
html[data-lado="dragon"] .bloque[data-k="jj"] { box-shadow: inset 0 0 0 1.5px var(--azul); }
.bloque.apagado { opacity: .14; transform: scale(.97); }
.bloque.ahora-si { outline: 3px solid var(--vivo); outline-offset: 2px; }
.bloque.ahora-si::after { content: "En curso"; position: absolute; right: .5rem; top: .5rem; font-size: .7rem; font-weight: 800; }

.dias-movil, .lista-dia { display: none; }

/* ---------- lados ---------- */
.lado { display: none; }
html[data-lado="panda"] .lado-panda, html[data-lado="dragon"] .lado-dragon { display: block; }
html[data-lado="panda"] .solo-dragon, html[data-lado="dragon"] .solo-panda { display: none !important; }

.lado { border-top: 1px solid var(--linea); }
.lado-cab { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.25rem, 4vw, 3rem); align-items: center; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.lado-arte {
  background: var(--noche);
  width: clamp(110px, 16vw, 200px); aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  object-position: 50% 30%;
  box-shadow: 0 14px 32px -12px rgba(0, 0, 0, .55);
}
.lado-dragon .lado-arte { object-position: 20% 45%; }
.lado-cab > div { display: grid; gap: .9rem; max-width: 44rem; }
.lado-txt { color: var(--suave); font-size: 1.08rem; }

.pasos { list-style: none; margin: 0 0 clamp(2.5rem, 6vw, 4rem); padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); counter-reset: p; }
.pasos li { counter-increment: p; display: grid; gap: .55rem; align-content: start; padding-top: 1rem; border-top: 2px solid var(--texto); }
.pasos li::before { content: counter(p); font-family: var(--display); font-size: 2.6rem; line-height: 1; }
.pasos p { color: var(--suave); }
.enlace { font-weight: 650; justify-self: start; }

.comunidad { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.comunidad-txt { display: grid; gap: 1rem; max-width: 34rem; }
.comunidad-txt p { color: var(--suave); }

/* fotos: blanco y negro en panda, azul en dragón */
.foto { position: relative; margin: 0; overflow: hidden; border-radius: 14px; background: var(--noche); }
.foto img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(1.02); transition: filter .6s var(--sale), transform .8s var(--sale); }
.foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, #3aa0ff, #062a55); mix-blend-mode: color; opacity: 0; transition: opacity .6s var(--sale); pointer-events: none; }
html[data-lado="dragon"] .foto::after { opacity: .85; }
html[data-lado="dragon"] .foto img { filter: grayscale(1) contrast(1.18) brightness(.92); }
.foto figcaption { position: absolute; left: .75rem; bottom: .6rem; z-index: 1; font-size: .8rem; font-weight: 650; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
.foto-grande { aspect-ratio: 4 / 5; }
.foto-grande img { object-position: 50% 30%; }

.basti { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; margin-bottom: clamp(3rem, 7vw, 5rem); }
.basti-foto { aspect-ratio: 1; max-width: 520px; }
.basti-foto img { object-position: 50% 20%; }
.basti-txt { display: grid; gap: .8rem; }
.basti-txt h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.rol { color: var(--azul); font-weight: 700; }
.hechos { list-style: none; margin: .4rem 0; padding: 0; display: grid; gap: .7rem; }
.hechos li { padding-left: 1.4rem; position: relative; color: var(--suave); }
.hechos li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: var(--azul); transform: rotate(45deg); }
.hechos strong { color: var(--texto); font-weight: 700; }

.desafio {
  display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2.5rem; align-items: end;
  padding: clamp(1.5rem, 4vw, 2.75rem); margin-bottom: clamp(2.5rem, 6vw, 4rem);
  border-radius: 20px; border: 1px solid var(--linea);
  background: linear-gradient(135deg, rgba(43, 149, 255, .14), rgba(43, 149, 255, .02) 60%), var(--fondo-2);
}
.desafio-cab { display: grid; gap: .6rem; }
.desafio h3 { font-size: clamp(1.6rem, 3.2vw, 2.6rem); }
.desafio h3 span { display: block; color: var(--azul); font-size: .62em; margin-top: .25rem; }
.desafio-dato { color: var(--suave); }
.cuenta { display: flex; gap: .5rem; font-variant-numeric: tabular-nums; }
.cuenta div { display: grid; justify-items: center; min-width: 4.6rem; padding: .7rem .5rem; border-radius: 12px; background: var(--fondo); border: 1px solid var(--linea); }
.cuenta b { font-family: var(--display); font-size: 2.1rem; line-height: 1; font-weight: 400; }
.cuenta span { font-size: .78rem; color: var(--suave); }
.cuenta.paso b { font-size: 1.1rem; }
.cartelera { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.cartelera li { display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: 1rem; padding: .85rem 1rem; border-radius: 12px; background: var(--fondo); border: 1px solid var(--linea); font-weight: 650; }
.cartelera li span:nth-child(3) { text-align: right; }
.cartelera em { font-style: normal; font-family: var(--display); color: var(--azul); }
.cartelera small { font-size: .75rem; font-weight: 750; padding: .2rem .55rem; border-radius: 999px; background: var(--azul); color: #02101e; }
.desafio-pie { grid-column: 1 / -1; color: var(--suave); font-size: .92rem; }

.tira { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 900px; gap: clamp(.6rem, 1.5vw, 1rem); }
.tira .foto { aspect-ratio: 3 / 4; }

/* ---------- cruce ---------- */
.cruce { background: var(--noche); color: #e9eef4; padding-block: clamp(1.75rem, 4vw, 2.5rem); }
.cruce-in { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.avatar-grande { width: 64px; height: 64px; }
.cruce p { font-family: var(--display); font-size: clamp(1.1rem, 2vw, 1.45rem); line-height: 1.15; flex: 1 1 18rem; }
.btn-cruce { background: #e9eef4; color: var(--noche); }
html[data-lado="panda"] .btn-cruce { background: var(--azul); color: #02101e; }

/* ---------- disciplinas ---------- */
.disciplinas h2 { margin-bottom: 1.75rem; }
.disc-lista { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linea); }
.disc-lista li {
  display: grid; grid-template-columns: minmax(9rem, 2fr) minmax(0, 4fr) minmax(0, 3fr) 9.5rem; gap: 1rem 2rem; align-items: center;
  padding: 1.25rem 0; border-bottom: 1px solid var(--linea);
}
.disc-nombre { font-family: var(--display); font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1; }
.disc-desc { color: var(--suave); }
.disc-quien { font-size: .92rem; }
.disc-quien b { display: block; font-weight: 700; }
.disc-quien span { color: var(--suave); }
.disc-ver { min-height: 40px; padding: .4rem .95rem; border-radius: 999px; border: 1px solid var(--linea); background: transparent; font-weight: 600; font-size: .88rem; white-space: nowrap; }
.disc-ver:hover { border-color: var(--texto); }
.disc-ver, .disc-dm { justify-self: end; }
.disc-dm { font-size: .88rem; color: var(--suave); white-space: nowrap; }

/* ---------- dónde ---------- */
.donde { background: var(--noche); color: #e9eef4; --linea: rgba(120, 170, 230, .2); }
.donde-cab { display: grid; gap: 1rem; max-width: 40rem; margin-bottom: 2rem; }
.donde-cab p { color: #b4c3d3; }
.btn-mapa { justify-self: start; background: var(--crema); color: var(--noche); }
.camino-pista {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 26vw, 300px); gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem;
  scrollbar-width: thin; scrollbar-color: #3b5672 transparent;
  overscroll-behavior-x: contain;
}
.paso-camino { margin: 0; scroll-snap-align: start; display: grid; gap: .7rem; }
.paso-camino img { aspect-ratio: 9 / 14; width: 100%; object-fit: cover; border-radius: 14px; filter: saturate(.85) contrast(1.04); }
.paso-camino figcaption { font-size: .95rem; color: #c9d5e1; display: flex; gap: .6rem; align-items: baseline; }
.paso-camino b { font-family: var(--display); font-weight: 400; color: var(--azul); font-size: 1.2rem; }
.camino-ctrl { display: flex; align-items: center; gap: 1rem; margin-top: .75rem; font-variant-numeric: tabular-nums; color: #b4c3d3; font-size: .92rem; }
.redondo { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: transparent; display: grid; place-items: center; transition: background-color .2s, border-color .2s; }
.redondo:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.redondo:disabled { opacity: .35; cursor: default; background: transparent; }
.redondo svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- prueba ---------- */
.prueba-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.prueba-cab { display: grid; gap: 1rem; position: sticky; top: 100px; }
.prueba-cab p { color: var(--suave); max-width: 32rem; }
.form { display: grid; gap: 1.1rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: 20px; background: var(--fondo-2); border: 1px solid var(--linea); }
.campo { display: grid; gap: .45rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.campo > span, .campo legend { font-weight: 650; font-size: .92rem; padding: 0; margin-bottom: .45rem; }
.campo legend { margin-bottom: .45rem; }
input:not([type="radio"]), select {
  width: 100%; min-height: 48px; padding: .6rem .9rem; border-radius: 12px;
  border: 1px solid var(--linea); background: var(--fondo); color: var(--texto);
  caret-color: var(--azul); transition: border-color .2s, box-shadow .2s;
}
input::placeholder { color: color-mix(in srgb, var(--suave) 80%, transparent); }
input:focus, select:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(43, 149, 255, .25); }
input[aria-invalid="true"] { border-color: #d3412f; }
.error { font-style: normal; font-size: .85rem; color: #c23a29; font-weight: 600; }
html[data-lado="dragon"] .error { color: #ff8a7a; }
.opciones { display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; }
.opciones-anchas { grid-template-columns: repeat(3, 1fr); }
.opciones label { position: relative; }
.opciones input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opciones span { display: grid; place-items: center; min-height: 46px; border-radius: 12px; border: 1px solid var(--linea); background: var(--fondo); font-weight: 650; transition: background-color .2s, color .2s, border-color .2s; }
.opciones input:checked + span { background: var(--texto); color: var(--fondo); border-color: var(--texto); }
html[data-lado="dragon"] .opciones input:checked + span { background: var(--azul); color: #02101e; border-color: var(--azul); }
.opciones input:focus-visible + span { outline: 2px solid var(--azul); outline-offset: 2px; }
.vista { font-size: .95rem; padding: .85rem 1rem; border-radius: 12px; border: 1px dashed var(--linea); color: var(--suave); }
.btn-enviar { min-height: 52px; font-size: 1rem; }
.aviso { font-size: .9rem; color: var(--suave); min-height: 1.4em; }

/* ---------- pie ---------- */
.pie { background: var(--noche); color: #b4c3d3; padding-block: 2.5rem calc(2.5rem + env(safe-area-inset-bottom)); font-size: .92rem; border-top: 1px solid rgba(120, 170, 230, .14); }
.pie-in { display: flex; gap: 1.25rem; align-items: center; }
.pie img { width: 72px; height: 72px; }
.pie-in > div { display: grid; gap: .25rem; }
.pie-nombre { font-family: var(--display); color: #e9eef4; font-size: 1.05rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .pasos { grid-template-columns: 1fr; }
  .comunidad, .basti, .prueba-in { grid-template-columns: 1fr; }
  .prueba-cab { position: static; }
  .disc-lista li { grid-template-columns: 1fr auto; }
  .disc-desc { grid-column: 1 / -1; grid-row: 2; }
  .disc-quien { grid-column: 1 / -1; grid-row: 3; }
  .disc-ver, .disc-dm { grid-column: 2; grid-row: 1; }
  .desafio { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .int-txt { display: none; }
  .int-btn { padding: 3px; }
  .marca span { display: none; }
  .interruptor { margin-left: auto; }
  .barra { gap: .6rem; }

  .portada { min-height: auto; grid-template-rows: auto auto; padding-top: 0; }
  .centro { position: relative; grid-column: 1 / -1; grid-row: 1; left: auto; transform: none; width: auto; top: auto; padding: 1.5rem 1.25rem 0; gap: .5rem; }
  .sello { width: 112px; }
  .mitad { grid-row: 2; padding: .5rem 1rem 1.5rem; }
  .arte { width: 112%; margin-bottom: -22%; }
  .mitad-dragon .arte { margin-left: -8%; }
  .mitad-panda .arte { margin-right: -8%; }
  .mitad-txt { gap: .5rem; }
  .lema { font-size: 1.55rem; }
  .bajada { font-size: .86rem; line-height: 1.4; }
  .btn-lado { width: 100%; padding-inline: .6rem; font-size: .9rem; }
  html[data-elegido="si"][data-lado="panda"] { --cd: .62fr; --cp: 1.38fr; }
  html[data-elegido="si"][data-lado="dragon"] { --cd: 1.38fr; --cp: .62fr; }
  html[data-elegido="si"] .mitad .btn-lado { font-size: .82rem; }

  .ahora-in { display: grid; grid-template-columns: auto 1fr; gap: .2rem .75rem; padding-block: .85rem; }
  .pulso { margin-top: .5em; align-self: start; }
  .ahora-link { grid-column: 2; margin-left: 0; justify-self: start; }

  .semana { display: none; }
  .dias-movil { display: grid; grid-template-columns: repeat(6, 1fr); gap: .3rem; margin-bottom: 1rem; }
  .dias-movil button { min-height: 46px; border-radius: 12px; border: 1px solid var(--linea); background: transparent; font-weight: 700; font-size: .9rem; position: relative; }
  .dias-movil button[aria-selected="true"] { background: var(--texto); color: var(--fondo); border-color: var(--texto); }
  .dias-movil button.hoy::after { content: ""; position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--vivo); }
  .lista-dia { display: grid; gap: .5rem; list-style: none; margin: 0; padding: 0; }
  .lista-dia .bloque { flex-direction: row; justify-content: space-between; align-items: center; min-height: 58px; padding: .8rem 1rem; }
  .lista-dia .bloque b { font-size: 1.02rem; }
  .lista-dia .bloque span { font-size: .92rem; opacity: .85; font-variant-numeric: tabular-nums; }
  .lista-dia .bloque.ahora-si::after { position: static; order: 3; }
  .lista-dia .vacio { color: var(--suave); padding: 1rem 0; }

  .lado-cab { grid-template-columns: 1fr; }
  .tira { grid-template-columns: repeat(3, 70%); overflow-x: auto; scroll-snap-type: x mandatory; }
  .tira .foto { scroll-snap-align: start; }
  .cartelera li { grid-template-columns: 1fr auto 1fr; }
  .cartelera small { grid-column: 1 / -1; justify-self: center; }
  .cuenta div { min-width: 0; flex: 1; }
  .camino-pista { grid-auto-columns: 74%; }
  .pie-in { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* cambio de lado: el nuevo lado se abre en círculo desde donde tocaste */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }
