/* Tema de la app con el lenguaje de la landing: Anton en mayúsculas, texto hueco, menta sobre
   verde noche, píldoras y cristal. Se carga DESPUÉS de app.css y real.css y solo los reviste
   (mismos ids y clases: el JS no cambia). Fuentes propias (OFL) en /fonts/: nada de terceros. */
@font-face { font-family: "Anton"; src: url("/fonts/anton-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --bg: #07100b; --bg-2: #050c08; --panel: #0e1b13; --panel-2: #142619; --line: #1f3629;
  --txt: #eef6f0; --muted: #93ab9b; --brand: #1f9d57; --brand-2: #38d67f; --mint: #38d67f;
  --ink: #04160c; --display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --glow: 0 14px 34px rgba(56, 214, 127, .35); --radius: 22px;
  --vidrio: rgba(7, 16, 11, .72);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(900px 600px at 15% 100%, rgba(31, 157, 87, .28), transparent 70%),
              linear-gradient(rgba(5, 12, 8, .86), rgba(5, 12, 8, .94)), url("/img/landing/gym-1600.webp") center / cover fixed, var(--bg-2);
}
[hidden] { display: none !important; }   /* que .btn (display:flex) no pise el atributo hidden */
button, input, select, textarea { font-family: inherit; }
.phone { background: var(--bg); border-color: #020604; box-shadow: 0 40px 90px rgba(0, 0, 0, .7), 0 0 0 1px #16241b, 0 0 120px rgba(56, 214, 127, .12); }
.screen {
  padding: 48px 20px 110px;
  background: radial-gradient(520px 320px at 110% -8%, rgba(56, 214, 127, .12), transparent 70%), var(--bg);
  animation: entrar-pantalla .45s cubic-bezier(.2, .8, .2, 1);
}
.screen > * { flex-shrink: 0; }   /* las tarjetas recortan (overflow): que no se aplasten en la columna */
@keyframes entrar-pantalla { from { opacity: 0; transform: translateY(14px) scale(.99); } to { opacity: 1; transform: none; } }

/* ---------- tipografía ---------- */
h1, h2, .titulo, .titular, .crono, .codigo, .prof-hero .nm, .stat .n, .rung .lvl, .choque .a {
  font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .5px;
}
h1 { font-size: 34px; line-height: .98; margin-bottom: 10px; }
h2 { font-size: 28px; line-height: 1; margin-bottom: 8px; }
.titulo { font-size: 40px; line-height: .92; margin: 0 0 12px; }
.titular { font-size: 64px; line-height: .9; margin: 0; }
h2.sub { font-size: 20px; margin: 22px 0 10px; color: var(--txt); display: flex; align-items: center; gap: 10px; }
h2.sub::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.hueco { color: transparent; -webkit-text-stroke: 1.5px var(--mint); }
@supports not (-webkit-text-stroke: 1px red) { .hueco { color: var(--mint); } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px;
  color: var(--mint); font-weight: 800; font-size: 11px; letter-spacing: 2.4px; text-transform: uppercase;
}
.punto { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); flex: none; animation: latido 1.8s infinite; }
@keyframes latido { 0% { box-shadow: 0 0 0 0 rgba(56, 214, 127, .7); } 70%, 100% { box-shadow: 0 0 0 10px rgba(56, 214, 127, 0); } }
p.lead { font-size: 15px; color: var(--muted); line-height: 1.5; }
.muted { color: var(--muted); }
label.fld { font-size: 10.5px; letter-spacing: 1.6px; font-weight: 800; color: var(--muted); }

/* ---------- logo ---------- */
.logo .num { font-family: var(--display); font-weight: 400; letter-spacing: .5px; font-size: 20px; padding: 6px 10px; border-radius: 11px; box-shadow: var(--glow); }
.logo .word { font-size: 20px; letter-spacing: -.2px; }

/* ---------- botones y campos ---------- */
.btn {
  border-radius: 999px; padding: 16px 22px; font-weight: 800; font-size: 16px;
  background: var(--mint); color: var(--ink); border: 2px solid var(--mint); box-shadow: var(--glow);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, opacity .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(56, 214, 127, .42); }
.btn:active { transform: scale(.97); }
.btn:focus-visible, .opt:focus-visible, .tab:focus-visible, .seg:focus-visible, .nivel-tarjeta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.btn.ghost { background: rgba(255, 255, 255, .03); color: var(--txt); border: 1.5px solid rgba(238, 246, 240, .22); box-shadow: none; }
.btn.ghost:hover { background: rgba(255, 255, 255, .07); border-color: rgba(238, 246, 240, .4); box-shadow: none; }
.btn.danger { background: transparent; color: var(--danger); border: 1.5px solid rgba(255, 93, 108, .45); box-shadow: none; }
.btn.danger:hover { background: rgba(255, 93, 108, .08); box-shadow: none; }
.btn.sm { padding: 9px 15px; font-size: 13px; border-radius: 999px; }
input, select {
  border-radius: 16px; padding: 15px 16px; background: rgba(255, 255, 255, .035); border: 1.5px solid var(--line);
  font: 500 16px "Inter", sans-serif; transition: border-color .2s, box-shadow .2s, background .2s;
}
input::placeholder { color: #5d7666; }
input:focus, select:focus { border-color: var(--mint); background: rgba(56, 214, 127, .05); box-shadow: 0 0 0 4px rgba(56, 214, 127, .14); }
.clave-caja { position: relative; }
.clave-caja input { padding-right: 56px; }
.ver-clave { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; cursor: pointer;
  background: transparent; color: var(--txt); padding: 8px; border-radius: 999px; line-height: 0; opacity: .8; }
.ver-clave:hover, .ver-clave:focus-visible { opacity: 1; background: rgba(255, 255, 255, .06); }
.ver-clave .ojo { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ver-clave .tachado { display: none; }
.ver-clave[aria-pressed="true"] .tachado { display: inline; }
.segmented { border-radius: 999px; padding: 5px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.seg { border-radius: 999px; font-weight: 800; transition: background .25s, color .25s; }
.seg.on { background: var(--mint); color: var(--ink); box-shadow: 0 8px 20px rgba(56, 214, 127, .3); }
.error { color: var(--danger); font-weight: 600; }
.check { font-weight: 600; }
.check input { accent-color: var(--mint); width: 20px; height: 20px; }

/* ---------- tarjetas ---------- */
.card {
  background: linear-gradient(160deg, var(--panel), var(--bg-2)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; position: relative; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; right: -80px; bottom: -110px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(rgba(56, 214, 127, .13), transparent 70%); pointer-events: none;
}
.card > * { position: relative; z-index: 1; }
.separador { text-transform: uppercase; letter-spacing: 2px; font-weight: 800; font-size: 10.5px; }
.pill { background: var(--mint); color: var(--ink); border: 0; font-weight: 800; min-width: 22px; justify-content: center; }
.tag { background: rgba(56, 214, 127, .1); border: 1px solid rgba(56, 214, 127, .3); color: var(--mint); padding: 6px 12px; font-size: 12px; }

/* ---------- cargando ---------- */
#s-cargando { justify-content: center; }
.cargando .logo { animation: latir-logo 1.4s ease-in-out infinite; }
.cargando .logo .num { font-size: 44px; padding: 10px 16px; border-radius: 18px; }
.cargando .logo .word { font-size: 34px; }
@keyframes latir-logo { 50% { transform: scale(1.05); } }
.cargando-barra { width: 140px; height: 4px; margin: 26px auto 0; border-radius: 4px; background: var(--line); overflow: hidden; }
.cargando-barra i { display: block; width: 40%; height: 100%; border-radius: 4px; background: var(--mint); animation: cargar 1.1s ease-in-out infinite; }
@keyframes cargar { from { transform: translateX(-110%); } to { transform: translateX(260%); } }

/* ---------- entrar: foto a sangre, titular y panel de cristal ---------- */
#s-entrar { padding: 0; justify-content: flex-end; position: relative; }
.entrar-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; animation: acercar 14s ease-out forwards; }
@keyframes acercar { from { transform: scale(1.08); } to { transform: scale(1); } }
.entrar-velo {
  position: absolute; inset: 0;
  background: radial-gradient(600px 400px at 0% 100%, rgba(31, 157, 87, .4), transparent 70%),
              linear-gradient(180deg, rgba(7, 16, 11, .5) 0%, rgba(7, 16, 11, .1) 25%, rgba(7, 16, 11, .85) 55%, var(--bg) 78%);
}
.entrar-txt { position: relative; padding: 70px 22px 8px; animation: subir .8s .05s ease both; }
.entrar-txt .logo { margin-bottom: 22px; }
.entrar-txt .lead { color: #d5e3d9; margin: 14px 0 0; }
.entrar-panel {
  position: relative; margin: 14px 12px 16px; padding: 16px 16px 18px; border-radius: 26px;
  background: var(--vidrio); border: 1px solid rgba(238, 246, 240, .1);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); animation: subir .8s .2s ease both;
}
.entrar-panel .btn.ghost.sm { margin-left: auto; margin-right: auto; display: flex; border: 0; background: none; color: var(--muted); }
@keyframes subir { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------- entrenar: el choque ---------- */
.card.choque {
  padding: 30px 18px 22px; border-color: rgba(56, 214, 127, .35);
  background: radial-gradient(260px 200px at 50% 30%, rgba(56, 214, 127, .22), transparent 70%),
              linear-gradient(180deg, rgba(7, 16, 11, .45), rgba(7, 16, 11, .92)), url("/img/landing/bros-800.webp") center / cover;
}
.choque-ic { font-size: 34px; position: relative; width: 150px; height: 150px; margin: 0 auto 4px; display: grid; place-items: center;
  border-radius: 50%; background: radial-gradient(rgba(56, 214, 127, .18), transparent 70%); }
.choque-ic::before, .choque-ic::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(56, 214, 127, .55);
  animation: onda 2.4s ease-out infinite; z-index: -1;
}
.choque-ic::after { animation-delay: 1.2s; }
@keyframes onda { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.choque.escuchando .choque-ic::before, .choque.escuchando .choque-ic::after { animation-duration: 1s; border-color: var(--mint); }
.choque .a { font-size: 30px; line-height: 1; margin: 10px 0 8px; }
.choque .muted { color: #c9d9ce; max-width: 290px; margin: 0 auto; }
.choque .btn { font-size: 18px; padding: 18px; margin-top: 18px; letter-spacing: 1px; text-transform: uppercase; }
.choque.escuchando .btn { animation: vibrar-btn .5s infinite alternate; }
@keyframes vibrar-btn { to { box-shadow: 0 0 0 8px rgba(56, 214, 127, .18), var(--glow); } }
.codigo { font-size: 46px; letter-spacing: 8px; color: var(--mint); text-shadow: 0 0 30px rgba(56, 214, 127, .35); }
.qr { border-radius: 18px; box-shadow: 0 0 0 6px rgba(56, 214, 127, .25); }

/* ---------- listas de gente (Cerca, Bros, Historial, Chats) ---------- */
.mrow {
  gap: 14px; padding: 12px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(160deg, var(--panel), var(--bg-2)); transition: transform .18s ease, border-color .18s ease;
  animation: subir .5s ease both;
}
.mrow:hover { border-color: rgba(56, 214, 127, .4); transform: translateY(-1px); }
.mrow:active { opacity: 1; transform: scale(.985); }
.mrow:nth-child(2) { animation-delay: .04s; } .mrow:nth-child(3) { animation-delay: .08s; }
.mrow:nth-child(4) { animation-delay: .12s; } .mrow:nth-child(5) { animation-delay: .16s; }
.mrow:nth-child(n+6) { animation-delay: .2s; }
.avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgba(56, 214, 127, .55); }
.avatar .mono { font-family: var(--display); font-weight: 400; color: var(--mint); }
.mrow .g .a { font-size: 16px; }
.mrow .g .b { font-size: 12.5px; margin-top: 2px; }
.mrow .btn.sm { padding: 10px 12px; border-radius: 14px; }
/* Listas vacías: foto real de la landing con el texto encima (nada de emojis), una por sección. */
.empty {
  --foto: url("/img/landing/gym-800.webp");
  min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; text-align: left;
  padding: 22px 20px; border-radius: 22px; font-weight: 700; font-size: 15px; line-height: 1.4; color: #eef6f0;
  border: 1px solid var(--line); overflow: hidden; grid-column: 1 / -1;
  background: linear-gradient(180deg, rgba(4, 10, 7, .15) 0%, rgba(4, 10, 7, .55) 45%, rgba(4, 10, 7, .95) 100%), var(--foto) center 35% / cover;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .7); animation: subir .5s ease both;
}
.empty::before { content: ""; display: block; width: 34px; height: 4px; border-radius: 4px; background: var(--mint); margin-bottom: 12px; }
#l-bros .empty { --foto: url("/img/landing/bros-800.webp"); }
#l-historial .empty { --foto: url("/img/landing/final-800.webp"); }
#l-cerca .empty { --foto: url("/img/landing/calistenia-800.webp"); }
#l-chats .empty { --foto: url("/img/landing/correr-800.webp"); }
#d-records .empty { --foto: url("/img/landing/fuerza-800.webp"); }
#d-lista .empty { --foto: url("/img/landing/pierna-800.webp"); }
#m-lista .empty { min-height: 0; background: none; border: 0; text-align: center; color: var(--muted); text-shadow: none; animation: none; }
#m-lista .empty::before { display: none; }

/* ---------- anuncio ---------- */
.card.anuncio { padding: 10px; border-style: dashed; }
.anuncio-etiqueta { text-transform: uppercase; letter-spacing: 1.6px; font-weight: 800; font-size: 10px; }

/* ---------- chat ---------- */
#s-conversacion { padding-bottom: 20px; }
#s-conversacion .sesion-cab {
  margin: -48px -20px 0; padding: 48px 16px 12px; background: var(--vidrio);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
#s-conversacion .sesion-cab .a { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 22px; letter-spacing: .5px; }
.burbuja { font-size: 15px; padding: 11px 14px; border-radius: 20px; animation: subir .3s ease both; line-height: 1.4; }
.burbuja.mia { background: linear-gradient(135deg, var(--mint), var(--brand)); color: var(--ink); font-weight: 600; box-shadow: 0 8px 22px rgba(31, 157, 87, .3); }
.burbuja.suya { background: var(--panel-2); border: 1px solid var(--line); }
.escribir { padding: 10px 0 0; }
.escribir input { border-radius: 999px; }
.escribir .btn { padding: 12px 18px; }

/* ---------- sesión en marcha ---------- */
.en-vivo { display: flex; justify-content: center; margin: 26px 0 0; color: var(--danger); }
.en-vivo .punto { background: var(--danger); animation-name: latido-rojo; }
@keyframes latido-rojo { 0% { box-shadow: 0 0 0 0 rgba(255, 93, 108, .7); } 70%, 100% { box-shadow: 0 0 0 10px rgba(255, 93, 108, 0); } }
.crono { font-size: 96px; line-height: 1; margin-top: 4px; letter-spacing: 1px; color: var(--txt); text-shadow: 0 0 40px rgba(56, 214, 127, .35); font-variant-numeric: tabular-nums; }
.crono.sm { font-size: 44px; color: var(--mint); text-shadow: none; }
.sesion-cab .a { font-size: 16px; }
#x-actual { border-color: rgba(56, 214, 127, .45); }
#x-actual .a { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 26px; letter-spacing: .5px; }
.tramo { padding: 10px 2px; font-weight: 600; }
#s-sesion .btn.danger { margin-top: 16px; }

/* ---------- opciones (ejercicios, género, nivel, logros) ---------- */
.opt { border-radius: 18px; padding: 14px 8px; background: linear-gradient(160deg, var(--panel), var(--bg-2)); transition: transform .15s ease, border-color .2s, background .2s, box-shadow .2s; }
.opt:hover { border-color: rgba(56, 214, 127, .4); }
.opt .emoji { font-size: 28px; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.opt.sel { outline: 0; border-color: var(--mint); background: linear-gradient(160deg, rgba(56, 214, 127, .22), rgba(56, 214, 127, .04)); box-shadow: 0 10px 26px rgba(31, 157, 87, .25), inset 0 0 0 1px var(--mint); }
.opt.sel .emoji { transform: scale(1.15) rotate(-6deg); }
.opt.sel .t { color: var(--mint); }
.opt.logro.bloqueado { opacity: .35; filter: grayscale(1); }

/* ---------- perfil (Yo) ---------- */
.prof-hero { margin: -48px -20px 18px; padding: 70px 20px 22px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(7, 16, 11, .35), var(--bg) 96%), url("/img/landing/final-800.webp") center 35% / cover; }
.prof-hero .avatar { width: 108px; height: 108px; box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px var(--mint), 0 18px 40px rgba(0, 0, 0, .5); }
.prof-hero .nm { font-size: 38px; line-height: 1; margin-top: 6px; }
.prof-hero .sub { color: #c9d9ce; font-weight: 600; letter-spacing: .3px; }
.nivel-tarjeta { border-color: rgba(56, 214, 127, .4); transition: transform .18s ease; }
.nivel-tarjeta:hover { transform: translateY(-2px); }
.nivel-tarjeta .a { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 20px; letter-spacing: .5px; }
.kv { padding: 13px 0; }
.card.avisos { padding: 10px; }

/* ---------- progreso y niveles ---------- */
.progress { height: 12px; background: rgba(255, 255, 255, .05); border: 0; }
.progress > i { background: linear-gradient(90deg, var(--brand), var(--mint)); box-shadow: 0 0 16px rgba(56, 214, 127, .6); border-radius: 999px; transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.stat { border-radius: 18px; padding: 14px 8px; background: linear-gradient(160deg, var(--panel), var(--bg-2)); }
.stat .n { font-size: 30px; line-height: 1.05; color: var(--mint); }
.stat .l { text-transform: uppercase; letter-spacing: 1.2px; font-weight: 800; font-size: 10px; margin-top: 4px; }
.rung { border-radius: 20px; }
.rung .lvl { font-size: 26px; border-radius: 16px; }
.rung.current { box-shadow: 0 0 0 1px var(--mint), 0 14px 32px rgba(31, 157, 87, .3); }
.rung .g .t { font-size: 16px; }

/* ---------- resumen ---------- */
.resumen-cab { margin: 30px 0 10px; }
.resumen-ic { font-size: 64px; animation: botar 1s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes botar { from { transform: scale(.2) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
.xp-ganada { font-family: var(--display); font-weight: 400; font-size: 44px; text-shadow: 0 0 30px rgba(56, 214, 127, .5); animation: botar .8s .3s cubic-bezier(.3, 1.6, .5, 1) both; }
#s-resumen .card { margin-bottom: 16px; }

/* ---------- pantallas con foto de cabecera (cuenta, correo, perfil, bloquear, admin) ---------- */
.screen.con-foto { position: relative; padding-top: 150px; }
.screen.con-foto::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 300px; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 16, 11, .35) 0%, rgba(7, 16, 11, .7) 55%, var(--bg) 100%), var(--foto) center 30% / cover;
}
.screen.con-foto > * { position: relative; z-index: 1; }
.foto-correr { --foto: url("/img/landing/correr-800.webp"); }
.foto-movilidad { --foto: url("/img/landing/movilidad-800.webp"); }
.foto-calistenia { --foto: url("/img/landing/calistenia-800.webp"); }
.foto-hipertrofia { --foto: url("/img/landing/hipertrofia-800.webp"); }
.foto-fuerza { --foto: url("/img/landing/fuerza-800.webp"); }
.foto-gym { --foto: url("/img/landing/gym-800.webp"); }
.foto-alerta { --foto: radial-gradient(400px 260px at 50% 0%, rgba(255, 93, 108, .35), transparent 70%); }
.pantalla-ic {
  width: 64px; height: 64px; display: grid; place-items: center; font-size: 30px; margin: 0 0 14px;
  border-radius: 20px; background: var(--vidrio); border: 1px solid rgba(56, 214, 127, .45);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--glow); animation: botar .7s ease both;
}
.foto-alerta .pantalla-ic { border-color: rgba(255, 93, 108, .5); box-shadow: 0 14px 34px rgba(255, 93, 108, .25); }
.eyebrow-peligro { color: var(--danger); }
.eyebrow-peligro .punto { background: var(--danger); animation-name: latido-rojo; }
.foto-alerta .hueco { -webkit-text-stroke-color: var(--danger); }
.card.formulario { margin: 6px 0 12px; padding: 18px 16px 20px; }
.card.formulario .btn { margin-top: 6px; }
.card.formulario.peligro { border-color: rgba(255, 93, 108, .35); }
.card.formulario.peligro::after { background: radial-gradient(rgba(255, 93, 108, .12), transparent 70%); }
#s-bloquear .grid .opt { flex-direction: row; justify-content: flex-start; text-align: left; padding: 14px 16px; }
#v-codigo { font-family: var(--display); font-size: 30px; letter-spacing: 10px; text-align: center; }

/* ---------- disciplinas con FOTO real, como el mosaico de la landing ---------- */
/* Boxeo, Natación y Ciclismo no tienen foto propia en la landing: usan la más cercana hasta tenerla. */
[data-disciplina="Fuerza"] { --foto: url("/img/landing/fuerza-800.webp"); }
[data-disciplina="Hipertrofia"] { --foto: url("/img/landing/hipertrofia-800.webp"); }
[data-disciplina="Calistenia"] { --foto: url("/img/landing/calistenia-800.webp"); }
[data-disciplina="Cardio"] { --foto: url("/img/landing/cardio-800.webp"); }
[data-disciplina="Movilidad"] { --foto: url("/img/landing/movilidad-800.webp"); }
[data-disciplina="Pierna"] { --foto: url("/img/landing/pierna-800.webp"); }
[data-disciplina="Boxeo"] { --foto: url("/img/landing/hero-800.webp"); }
[data-disciplina="Natación"] { --foto: url("/img/landing/correr-800.webp"); }
[data-disciplina="Ciclismo"] { --foto: url("/img/landing/gym-800.webp"); }
.opt[data-disciplina] {
  min-height: 104px; justify-content: flex-end; color: #fff; overflow: hidden;
  background: linear-gradient(180deg, rgba(4, 10, 7, .05) 20%, rgba(4, 10, 7, .9)), var(--foto) center / cover;
  transition: transform .2s ease, box-shadow .2s ease, background-size .4s ease;
}
.opt[data-disciplina]:hover { transform: translateY(-2px); }
.opt[data-disciplina] .t { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .8px;
  font-size: 16px; text-shadow: 0 2px 12px rgba(0, 0, 0, .75); }
.opt.sel[data-disciplina] { box-shadow: 0 12px 28px rgba(31, 157, 87, .4), inset 0 0 0 3px var(--mint);
  background: linear-gradient(180deg, rgba(31, 157, 87, .15) 10%, rgba(4, 10, 7, .88)), var(--foto) center / cover; }
.opt.sel[data-disciplina]::after { content: "✓"; position: absolute; top: 8px; right: 8px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--mint); color: var(--ink); font-weight: 900; font-size: 13px; display: grid; place-items: center; }
.opt[data-disciplina] { position: relative; }
.foto-disc { width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--foto) center / cover;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }

/* ---------- menú de Entrenar ---------- */
.hub { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 14px; }
.hub-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; cursor: pointer;
  padding: 14px; border-radius: 20px; border: 1px solid var(--line); color: var(--txt); font: inherit;
  background: linear-gradient(160deg, var(--panel), var(--bg-2)); transition: transform .18s ease, border-color .18s ease;
}
.hub-item:hover { border-color: rgba(56, 214, 127, .45); transform: translateY(-2px); }
.hub-item:active { transform: scale(.97); }
.hub-item .ic { width: 28px; height: 28px; color: var(--mint); margin-bottom: 4px; }
.hub-item .a { font-weight: 800; font-size: 14px; }
.hub-item .b { color: var(--muted); font-size: 11.5px; }
.hub-item.pronto { opacity: .6; border-style: dashed; }

/* ---------- diario ---------- */
.tag.bro-x2 { background: var(--mint); color: var(--ink); border: 0; font-weight: 800; }
p.tag.bro-x2 { display: inline-block; margin: 0 0 10px; }
.record { text-align: center; padding: 34px 10px 14px; }
.record[data-disciplina] { background: linear-gradient(180deg, rgba(4, 10, 7, .35), rgba(4, 10, 7, .92)), var(--foto) center / cover; }
.record .n { font-family: var(--display); font-size: 28px; color: var(--mint); line-height: 1.05; }
.record .n.corporal { font-size: 18px; padding: 5px 0; }
.record .l { font-size: 11px; color: #d5e3d9; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
#s-diario select { margin-bottom: 4px; }
.btn.espacio { margin-bottom: 10px; }

/* ---------- escáner de QR ---------- */
.visor { position: relative; border-radius: 26px; overflow: hidden; background: #000; aspect-ratio: 1 / 1; margin: 6px 0 12px; border: 1px solid var(--line); }
.visor video { width: 100%; height: 100%; object-fit: cover; display: block; }
.visor-marco { position: absolute; inset: 18%; border-radius: 22px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .45); border: 3px solid var(--mint); animation: latido 1.8s infinite; }

/* ---------- puntos y premios ---------- */
.card.puntos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; padding: 10px; }
.card.puntos .stat { background: transparent; border: 0; padding: 6px 2px; }
.premio { text-align: center; }
.premio-ic { margin-bottom: 8px; color: var(--mint); }
.premio-ic .ic { width: 34px; height: 34px; margin: 0 auto; }
.premio .a { font-weight: 800; margin-bottom: 4px; }
.premio .tag { display: inline-block; margin-top: 10px; }

/* ---------- pestañas: isla flotante de cristal ---------- */
.tabbar {
  left: 12px; right: 12px; bottom: 12px; height: 68px; padding: 6px; border-radius: 26px;
  background: var(--vidrio); border: 1px solid rgba(238, 246, 240, .1);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
}
.tab { border-radius: 20px; gap: 3px; font-size: 10.5px; letter-spacing: .3px; transition: color .2s, background .25s; }
.tab .ic { width: 23px; height: 23px; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.tab.active { color: var(--ink); background: var(--mint); box-shadow: 0 8px 20px rgba(56, 214, 127, .35); }
.tab.active .ic { transform: translateY(-1px) scale(1.08); }
.tab .dot { top: 8px; right: 26%; background: var(--danger); box-shadow: 0 0 0 2px var(--bg); }

/* ---------- toast ---------- */
.toast { bottom: 94px; border-radius: 999px; padding: 12px 20px; background: var(--vidrio); border-color: rgba(56, 214, 127, .4);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

/* ---------- móvil real: pantalla completa con zonas seguras ---------- */
@media (max-width: 500px) {
  body { background: var(--bg); }
  .phone { padding-top: 0; }   /* la zona segura la pone cada pantalla: la foto de «entrar» llega arriba */
  .screen { padding-top: calc(36px + env(safe-area-inset-top)); }
  #s-entrar { padding-top: 0; }
  .prof-hero, #s-conversacion .sesion-cab { margin-top: calc(-36px - env(safe-area-inset-top)); }
  .screen.con-foto { padding-top: calc(140px + env(safe-area-inset-top)); }
  .tabbar { bottom: calc(10px + env(safe-area-inset-bottom)); padding-bottom: 6px; }
}

/* ---------- menos movimiento si la persona lo pide ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
