/* TARANDOK · Centros de entrenamiento · estilos comunes (web, app del socio y panel).
   Base negra y blanca; un color de acento (--acento) que llega del panel.
   Modo noche por defecto; data-tema="claro" en <html> invierte la base. */
:root {
  --acento: #E10600;
  --fondo: #0A0A0A;
  --fondo2: #141414;
  --fondo3: #1E1E1E;
  --borde: #2A2A2A;
  --texto: #F2F2F2;
  --suave: #B5B5B5;
  --tenue: #8F8F8F;
  --banda: #F2F2F2;
  --banda-texto: #0A0A0A;
  --banda-suave: #3A3A3A;
  --titulo: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  --cifra: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  color-scheme: dark;
}
html[data-tema="claro"] {
  --fondo: #FFFFFF;
  --fondo2: #F3F3F3;
  --fondo3: #E8E8E8;
  --borde: #D6D6D6;
  --texto: #0A0A0A;
  --suave: #444444;
  --tenue: #666666;
  --banda: #0A0A0A;
  --banda-texto: #F2F2F2;
  --banda-suave: #BDBDBD;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }
html { scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* Nada puede ser más ancho que la pantalla (Safari del iPhone «baila» de lado a lado si algo sobresale). */
html, body { max-width: 100%; overflow-x: clip; }
@supports not (overflow-x: clip) { html, body { overflow-x: hidden; } }
img, video, canvas, svg, iframe { max-width: 100%; }
body { overflow-wrap: break-word; }
body { font: 16px/1.55 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; background: var(--fondo); color: var(--texto); overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--acento); outline-offset: 2px; }
.oculto { display: none !important; }
.envoltura { max-width: 1240px; margin: 0 auto; padding-left: max(16px, 4vw); padding-right: max(16px, 4vw); }
.banda { padding-top: clamp(44px, 6vw, 88px); padding-bottom: clamp(44px, 6vw, 88px); }
.banda-clara { background: var(--banda); color: var(--banda-texto); }
.banda-clara .suave { color: var(--banda-suave); }
.linea-inferior { border-bottom: 1px solid var(--fondo3); }
.h1 { font-family: var(--titulo); font-weight: 400; font-size: clamp(52px, 8vw, 104px); line-height: .95; letter-spacing: .01em; text-wrap: balance; }
.h2 { font-family: var(--titulo); font-weight: 400; font-size: clamp(42px, 5vw, 64px); line-height: 1; }
.h3 { font-family: var(--titulo); font-weight: 400; font-size: 30px; line-height: 1; letter-spacing: .02em; }
.cifra { font-family: var(--cifra); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; }
.acento { color: var(--acento); }
.suave { color: var(--suave); }
.tenue { color: var(--tenue); font-size: 14px; }
.fila { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.entre { justify-content: space-between; }
.rejilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.boton { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 22px; border-radius: 6px; border: 2px solid transparent; background: var(--acento); color: #FFFFFF; font-weight: 700; text-decoration: none; white-space: nowrap; }
.boton.claro { background: var(--texto); color: var(--fondo); }
.boton.borde { background: transparent; border-color: currentColor; color: inherit; }
.boton.peq { min-height: 44px; padding: 0 14px; font-size: 15px; }
.boton[disabled] { opacity: .45; cursor: default; }
.boton-icono { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 6px; border: 2px solid var(--borde); background: transparent; padding: 0; }
.boton-icono.activo { border-color: var(--acento); }
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo label { font-size: 14px; font-weight: 600; color: var(--suave); }
.entrada { min-height: 48px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--borde); background: var(--fondo2); color: var(--texto); font-size: 16px; width: 100%; }
textarea.entrada { min-height: 96px; padding: 10px 14px; resize: vertical; }
.tarjeta { background: var(--fondo2); border: 1px solid var(--fondo3); border-radius: 10px; padding: 20px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--borde); background: transparent; font-weight: 600; font-size: 15px; white-space: nowrap; }
.chip.activo { background: var(--texto); color: var(--fondo); border-color: var(--texto); }
.barra { height: 6px; border-radius: 3px; background: var(--fondo3); overflow: hidden; }
.barra > i { display: block; height: 100%; background: var(--texto); }
.barra > i.lleno { background: var(--acento); }
.foto-bn { filter: grayscale(1) contrast(1.05); }
.aviso { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 60; background: var(--texto); color: var(--fondo); padding: 12px 18px; border-radius: 8px; font-weight: 600; max-width: calc(100vw - 32px); box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.vacio { padding: 28px; text-align: center; color: var(--tenue); border: 1px dashed var(--borde); border-radius: 10px; }
table.tabla { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabla th, .tabla td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--fondo3); }
.tabla th { font-size: 13px; color: var(--tenue); font-weight: 600; }
.tabla th.num, .tabla td.num { text-align: right; font-variant-numeric: tabular-nums; }
.desplaza { overflow-x: auto; }
.cabecera { position: sticky; top: 0; z-index: 20; background: var(--fondo); background: color-mix(in srgb, var(--fondo) 92%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--fondo3); }
.marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--titulo); font-size: 30px; line-height: 1; letter-spacing: .04em; }
.banderas { display: flex; gap: 6px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Avatares (foto de perfil o iniciales) */
.avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; overflow: hidden; background: var(--fondo3); color: var(--texto); font-weight: 700; letter-spacing: .02em; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
