/* La web de ligas (PIQ-708), variante «La grada»: una red social de tus ligas
   con el sistema de diseño de la app (tokens.css y componentes.css). Un solo
   lima relleno por pantalla (el botón principal; aquí casi nunca hay): lo
   tuyo va en lima suave, el rival en coral, lo de otra actividad en azul.
   Sin estilos en línea: lo que cambia con los datos llega por variables
   (--p, de 0 a 1) puestas con CSSOM. */

/* ───────────────────────────────────────────────────────────── base ─── */
body.lg { min-height: 100vh; overflow-x: hidden; }
body.lg--capa { overflow: hidden; }
:where(.lg) a { color: inherit; }
.lg-muted { color: var(--pique-text-muted); }
.lg-oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lg-enlace { color: var(--pique-accent-text); font-weight: 600; font-size: 14px; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.lg-enlace:hover { text-decoration: underline; }
.lg-tecla { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; background: var(--pique-surface-higher); color: var(--pique-text-soft); font: 600 11px var(--pique-font-body); }
.lg-mas { color: var(--pique-accent-text); }
.lg-sube { color: var(--pique-accent-text); }
.lg-baja { color: var(--pique-rival); }
.lg-gana { color: var(--pique-accent-text); }
.lg [aria-busy="true"] { cursor: progress; opacity: .8; }
.lg-rueda { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; display: inline-block; }
@media (prefers-reduced-motion: no-preference) { .lg-rueda { animation: lg-gira .8s linear infinite; } }
@keyframes lg-gira { to { transform: rotate(1turn); } }

/* ─────────────────────────────────────────────────────────── caras ─── */
.lg-cara { --size: 40px; position: relative; font-family: var(--pique-font-display); font-weight: 700; font-size: calc(var(--size) * .42); }
.lg-cara img { position: absolute; inset: 0; }
.lg-cara--p { --size: 28px; }
.lg-cara--m { --size: 44px; }
.lg-cara--g { --size: 64px; }
.lg-cara--xg { --size: 96px; }
.lg-cara--foto { --size: 168px; border-radius: 28px; }
.lg-pila { display: inline-flex; }
.lg-pila .lg-cara + .lg-cara { margin-left: -8px; }
.lg-pila .lg-cara, .lg-hero__caras .lg-cara, .lg-equipo-caras .lg-cara { box-shadow: 0 0 0 2px var(--pique-surface); }

/* ──────────────────────────────────────────────────────────── barra ─── */
.lg-arriba { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; height: 64px; padding: 0 24px; background: var(--pique-navigation); border-bottom: 1px solid var(--pique-line); }
.lg-marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 19px var(--pique-font-display); font-stretch: var(--pique-wide); flex: none; }
.lg-marca__logo { width: 30px; height: 30px; border-radius: 9px; }
.lg-nav { display: flex; gap: 4px; }
.lg-nav a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--pique-text-soft); }
.lg-nav a .pique-icon { display: none; }
.lg-nav a:hover { background: var(--pique-surface-high); color: var(--pique-text); }
.lg-nav a[aria-current="page"] { background: var(--pique-surface-higher); color: var(--pique-text); }
.lg-buscar { position: relative; flex: 0 1 320px; min-width: 0; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 14px; border-radius: 12px; background: var(--pique-surface-high); color: var(--pique-text-muted); }
.lg-buscar input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--pique-text); font-size: 14px; }
.lg-buscar input::placeholder { color: var(--pique-text-muted); }
.lg-buscar:focus-within { box-shadow: 0 0 0 2px var(--pique-accent-border); }
.lg-buscar kbd { font: 600 11px var(--pique-font-body); padding: 2px 7px; border-radius: 6px; background: var(--pique-surface-higher); color: var(--pique-text-soft); }
.lg-buscar__lista { position: absolute; top: 46px; left: 0; right: 0; min-width: 300px; max-height: 70vh; overflow: auto; padding: 6px; border-radius: 16px; background: var(--pique-surface-high); border: 1px solid var(--pique-border); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); z-index: 30; }
.lg-buscar__grupo { padding: 8px 10px 4px; font: 700 11px var(--pique-font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--pique-text-muted); }
.lg-buscar__nada { padding: 12px; color: var(--pique-text-muted); font-size: 14px; }
.lg-buscar__op { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: none; text-decoration: none; color: var(--pique-text); text-align: left; cursor: pointer; }
.lg-buscar__op:hover, .lg-buscar__op--sel { background: var(--pique-surface-higher); }
.lg-buscar__textos { display: grid; min-width: 0; font-size: 14px; }
.lg-buscar__textos span { color: var(--pique-text-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-cuenta { position: relative; margin-left: auto; flex: none; }
/* La vuelta a la web del entrenador (solo con el plan Entrenador). */
.lg-vuelta { margin-left: auto; flex: none; height: 40px; padding: 0 16px; gap: 8px; }
.lg-vuelta + .lg-cuenta { margin-left: 0; }
/* En el móvil no cabe en la barra: va la primera del menú de la cuenta. */
.lg-cuenta__vuelta { display: none !important; }
.lg-cuenta summary { list-style: none; cursor: pointer; border-radius: 50%; }
.lg-cuenta summary::-webkit-details-marker { display: none; }
.lg-cuenta .pique-menu { position: absolute; right: 0; top: 46px; z-index: 30; }
.lg-cuenta .pique-menu form { margin: 0; }
.lg-cuenta .pique-menu form button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; font-size: 15px; font-weight: 500; cursor: pointer; text-align: left; }
.lg-cuenta .pique-menu form button:hover { background: var(--pique-surface-higher); }
.lg-cuenta__quien { display: grid; padding: 8px 12px 10px; font-size: 14px; }
.lg-cuenta__quien span { color: var(--pique-text-muted); font-size: 13px; }

/* ─────────────────────────────────────────────────────── páginas ─── */
.lg-pagina { display: block; padding: 24px 24px 64px; outline: none; }
.lg-pagina--inicio, .lg-pagina--inicio > .pique-espera { display: grid; grid-template-columns: 240px minmax(0, 540px) 300px; gap: 28px; justify-content: center; align-items: start; }
.lg-pagina--liga { padding: 0 0 64px; }
.lg-caja { background: var(--pique-surface); border-radius: var(--pique-radius-card); padding: 18px 18px 20px; display: grid; gap: 14px; align-content: start; min-width: 0; text-decoration: none; }
.lg-caja__cab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; }
.lg-caja__cab h2 { font-size: 17px; }
.lg-caja__cab .lg-muted { font-size: 13px; }
.lg-nota { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--pique-surface); color: var(--pique-text-muted); font-size: 13px; }
.lg-nota > span { flex: 1; min-width: 0; }
.lg-nota > .lg-enlace { flex: none; }
.lg-vacio { display: grid; justify-items: center; gap: 8px; padding: 40px 16px; text-align: center; }
.lg-vacio h2 { font-size: 18px; }
.lg-vacio .pique-button { margin-top: 8px; }
.lg-vacio__icono { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--pique-surface-high); color: var(--pique-text-soft); font-size: 26px; }
.lg-cuadro { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex: none; font: 800 15px var(--pique-font-display); }
.lg-cuadro { position: relative; overflow: hidden; }
.lg-cuadro--g { width: 44px; height: 44px; border-radius: 13px; font-size: 18px; }
.lg-cuadro__foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lg-cuadro--0 { background: var(--pique-avatar-0-bg); color: var(--pique-avatar-0-fg); }
.lg-cuadro--1 { background: var(--pique-avatar-1-bg); color: var(--pique-avatar-1-fg); }
.lg-cuadro--2 { background: var(--pique-avatar-2-bg); color: var(--pique-avatar-2-fg); }
.lg-cuadro--3 { background: var(--pique-avatar-3-bg); color: var(--pique-avatar-3-fg); }
.lg-cuadro--4 { background: var(--pique-cardio-container); color: var(--pique-cardio); }

/* ────────────────────────────────────────────────────────── inicio ─── */
.lg-inicio__izq, .lg-inicio__der { position: sticky; top: 88px; display: grid; gap: 20px; align-content: start; min-width: 0; }
.lg-inicio__centro { display: grid; gap: 20px; min-width: 0; }
.lg-misligas, .lg-ahora { display: grid; gap: 2px; }
.lg-misligas .pique-kicker, .lg-ahora .pique-kicker { padding: 0 12px 8px; }
.lg-misligas__liga, .lg-ahora__fila, .lg-gente__fila { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 14px; text-decoration: none; min-width: 0; }
.lg-misligas__liga:hover, .lg-ahora__fila:hover, .lg-gente__fila:hover { background: var(--pique-surface); }
.lg-misligas__liga:focus-visible, .lg-ahora__fila:focus-visible, .lg-gente__fila:focus-visible { outline-offset: -2px; border-radius: 14px; }
.lg-misligas__textos { display: grid; min-width: 0; line-height: 1.3; }
.lg-misligas__textos > b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-misligas__textos > span { color: var(--pique-text-muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.lg-misligas__todas { padding: 6px 12px; color: var(--pique-accent-text); font-size: 14px; font-weight: 600; text-decoration: none; }
.lg-ahora__cara { display: grid; padding: 2px; border-radius: 50%; box-shadow: 0 0 0 2px var(--pique-accent); }
.lg-ahora__cara .lg-cara { --size: 36px; }
.lg-inicio__izq .lg-nota { background: none; padding: 0 12px; }
.lg-muro { display: grid; gap: 20px; min-width: 0; }
.lg-muro__mas { justify-self: center; }

/* Duelos */
.lg-duelo { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; padding-top: 12px; border-top: 1px solid var(--pique-line); text-decoration: none; }
.lg-caja__cab + .lg-duelo { padding-top: 0; border-top: 0; }
.lg-duelo__textos { display: grid; gap: 1px; min-width: 0; font-size: 14px; }
.lg-duelo__textos > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-duelo__textos .lg-muted { font-size: 12px; }
.lg-duelo__marcador { display: inline-flex; gap: 6px; align-items: baseline; font-family: var(--pique-font-display); font-variant-numeric: tabular-nums; font-size: 14px; color: var(--pique-text-soft); }
.lg-duelo__marcador b { font-weight: 700; }
.lg-duelo__gana { color: var(--pique-accent-text); }
.lg-duelo__gana--rival { color: var(--pique-rival); }
/* Lo de los dos esta semana en una barra: lo tuyo en lima desde la izquierda, lo suyo en coral. */
.lg-duelo__barra { grid-column: 1 / -1; display: block; height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--pique-accent) calc(var(--p) * 100% - 1px), transparent calc(var(--p) * 100% - 1px), transparent calc(var(--p) * 100% + 1px), var(--pique-rival) calc(var(--p) * 100% + 1px)); }
.lg-duelo__barra--vacia { background: var(--pique-surface-high); }
.lg-duelo--resto { display: none; }
.lg-duelos--todos .lg-duelo--resto { display: grid; }
.lg-duelos__mas { justify-self: start; min-height: 32px; }
.lg-barra__pista { display: block; height: 10px; border-radius: 5px; background: var(--pique-surface-high); overflow: hidden; }
.lg-barra__pista--g { height: 12px; border-radius: 6px; }
.lg-barra__pista--der { display: flex; justify-content: flex-end; }
.lg-barra { display: block; height: 100%; width: calc(var(--p, 0) * 100%); border-radius: inherit; background: var(--pique-accent); }
.lg-barra--rival { background: var(--pique-rival); }
@media (prefers-reduced-motion: no-preference) { .lg-barra { transition: width var(--pique-motion-slow) var(--pique-ease-enter); } }

/* De quien organiza */
.lg-organiza__fila { display: flex; gap: 12px; padding: 12px 0 0; border: 0; border-top: 1px solid var(--pique-line); background: none; text-align: left; cursor: pointer; color: var(--pique-text); }
.lg-caja__cab + .lg-organiza__fila { border-top: 0; padding-top: 0; }
.lg-organiza__fila > .pique-icon { color: var(--pique-accent-text); margin-top: 2px; }
.lg-organiza__fila .lg-misligas__textos > span { color: var(--pique-text-soft); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.lg-empieza { gap: 4px; }
.lg-empieza b { font-size: 17px; }

/* ─────────────────────────────────────────────────────── momentos ─── */
.lg-momentos { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 16px; margin: -14px -16px -12px; scroll-snap-type: x proximity; scroll-padding-inline: 16px; }
.lg-momentos::-webkit-scrollbar { display: none; }
.lg-momento { display: grid; justify-items: center; gap: 6px; width: 76px; flex: none; padding: 0; border: 0; background: none; cursor: pointer; scroll-snap-align: start; color: var(--pique-text); }
.lg-momento__circulo { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--pique-surface-high); box-shadow: 0 0 0 2px var(--pique-background), 0 0 0 4px var(--pique-accent); overflow: hidden; font-size: 26px; color: var(--pique-accent-text); }
.lg-momento--visto .lg-momento__circulo { box-shadow: 0 0 0 2px var(--pique-background), 0 0 0 4px var(--pique-surface-higher); }
.lg-momento__circulo .lg-cara { --size: 64px; }
.lg-momento__circulo b { font: 800 16px var(--pique-font-display); }
.lg-momento__circulo--reto { background: radial-gradient(closest-side, var(--pique-surface-high) calc(100% - 7px), transparent calc(100% - 6px)), conic-gradient(var(--pique-accent) calc(var(--p, 0) * 1turn), var(--pique-surface-higher) 0); }
.lg-momento__circulo--bonus { background: var(--pique-accent-container); }
.lg-momento__circulo--racha, .lg-momento__circulo--recta { color: var(--pique-gold); }
.lg-momento__texto { font-size: 12px; line-height: 1.25; text-align: center; max-width: 76px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lg-momento .pique-hueso--escena { height: 64px; }
.lg-momento .pique-hueso--p60 { justify-self: center; }

/* El visor */
.lg-capa { position: fixed; inset: 0; z-index: 50; background: color-mix(in srgb, #000 92%, transparent); display: grid; place-items: center; padding: 16px; }
.lg-capa--momentos { grid-template-rows: minmax(0, 1fr) auto; }
.lg-visor { display: grid; grid-template-columns: 1fr auto minmax(0, 420px) auto 1fr; align-items: center; gap: 16px; width: 100%; height: 100%; max-height: 820px; }
.lg-visor__lado { justify-self: end; overflow: hidden; display: grid; gap: 6px; width: 180px; height: 70%; max-height: 520px; padding: 18px; border: 0; border-radius: var(--pique-radius-dialog); background: var(--pique-surface); color: var(--pique-text); text-align: left; align-content: end; opacity: .45; cursor: pointer; transform: scale(.9); }
.lg-visor__lado--der { justify-self: start; }
.lg-visor__lado--vacio { visibility: hidden; }
.lg-visor__flecha { background: var(--pique-surface-high); }
.lg-visor__flecha:disabled { opacity: .3; }
.lg-visor__ayuda { color: #c9cdd3; font-size: 13px; padding-bottom: 4px; }
.lg-mom { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; height: min(760px, 100%); padding: 14px 20px 18px; border-radius: var(--pique-radius-dialog); background: var(--pique-surface); overflow: hidden; }
.lg-mom__rayas { display: flex; gap: 4px; margin-bottom: 12px; }
.lg-mom__rayas i { flex: 1; height: 3px; border-radius: 2px; background: var(--pique-surface-higher); }
.lg-mom__rayas i { overflow: hidden; }
.lg-mom__rayas .lg-mom__raya--vista { background: var(--pique-text); }
.lg-mom__rayas b { display: block; height: 100%; border-radius: inherit; background: var(--pique-accent); }
@keyframes lg-raya { from { transform: scaleX(0); } to { transform: none; } }
/* El tinte del momento: lima, oro (racha, recta final) o coral (duelo). Un
   resplandor arriba y su dibujo, enorme y casi invisible, al fondo. */
.lg-mom { --tinte: var(--pique-accent); user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.lg-mom--racha, .lg-mom--recta { --tinte: var(--pique-gold); }
.lg-mom--duelo { --tinte: var(--pique-rival); }
.lg-mom::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(130% 55% at 50% 0%, color-mix(in srgb, var(--tinte) 13%, transparent), transparent 72%), radial-gradient(90% 40% at 100% 100%, color-mix(in srgb, var(--tinte) 7%, transparent), transparent 70%); }
.lg-mom > * { position: relative; }
.lg-mom > .lg-mom__marca { position: absolute; right: -70px; bottom: 40px; font-size: 300px; line-height: 1; color: var(--tinte); opacity: .028; pointer-events: none; transform: rotate(-10deg); }
/* El momento cabe sin rueda: el podio, las caras y el titular encogen con el
   alto que queda (cqh = 1 % del alto del cuerpo) y la corona tiene su hueco. */
.lg-mom .lg-podio--m { --alto: clamp(60px, 27cqh, 168px); gap: 10px; max-width: 360px; padding-top: clamp(22px, 6cqh, 30px); }
.lg-mom .lg-podio--m .lg-cara--g { --size: clamp(40px, 12.5cqh, 76px); }
.lg-mom .lg-podio--m .lg-podio__puesto--1 .lg-cara--g { --size: clamp(48px, 15cqh, 92px); }
.lg-mom .lg-podio--m .lg-podio__nombre { font-size: clamp(14px, 3.2cqh, 17px); }
.lg-mom .lg-podio--m .lg-podio__valor { font-size: clamp(12px, 2.8cqh, 15px); }
.lg-mom .lg-podio--m .lg-podio__lugar { font-size: clamp(22px, 6cqh, 34px); }
.lg-mom .lg-podio--m .lg-podio__corona { font-size: clamp(22px, 5cqh, 30px); }
.lg-mom--resumen .lg-mom__cuerpo { gap: clamp(8px, 2.8cqh, 18px); }
.lg-mom--resumen .lg-mom__cifras { justify-self: stretch; justify-content: space-around; gap: 8px; padding: clamp(8px, 2.2cqh, 14px) 10px; border-radius: 18px; background: color-mix(in srgb, var(--pique-surface-high) 70%, transparent); }
.lg-mom__cab { display: flex; align-items: center; gap: 10px; }
.lg-mom__icono { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--pique-accent-container); color: var(--pique-accent-text); }
.lg-mom__icono--racha, .lg-mom__icono--recta { background: color-mix(in srgb, var(--pique-gold) 16%, transparent); color: var(--pique-gold); }
.lg-mom__icono--duelo { background: var(--pique-rival-container); color: var(--pique-rival); }
.lg-mom__titulos { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
.lg-mom__titulos span { color: var(--pique-text-muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-mom__cuerpo { container-type: size; display: grid; gap: 14px; align-content: center; align-content: safe center; justify-items: center; text-align: center; min-height: 0; overflow: auto; padding: 12px 0; }
.lg-mom__titular { font-size: clamp(20px, 5.4cqh, 28px); line-height: 1.12; text-wrap: balance; }
.lg-mom__titular--lima { color: var(--pique-accent-text); }
.lg-mom__pie { color: var(--pique-text-soft); font-size: 15px; }
.lg-mom__pie--izq { text-align: left; justify-self: stretch; }
.lg-mom__kicker { font: 700 11px var(--pique-font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--pique-text-muted); }
.lg-mom__kicker--ambar { color: var(--pique-pending); }
.lg-mom__pie-acciones { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--pique-line); }
.lg-mom__accion { min-height: 44px; }
.lg-mom__cifras { display: flex; gap: 22px; justify-content: center; }
.lg-mom__cifras span { display: grid; font-size: 12px; color: var(--pique-text-muted); }
.lg-mom__cifras b { font: 800 22px var(--pique-font-display); color: var(--pique-text); }
.lg-mom--completo .lg-mom__cuerpo { justify-items: start; text-align: left; }
.lg-mom__retrato { position: relative; justify-self: center; }
.lg-mom__retrato-icono { display: grid; place-items: center; width: 168px; height: 168px; border-radius: 28px; background: var(--pique-accent-container); color: var(--pique-accent-text); font-size: 64px; }
.lg-mom__gigante { position: absolute; right: -14px; bottom: -14px; min-width: 64px; height: 64px; padding: 0 12px; display: grid; place-items: center; border-radius: 20px; background: var(--pique-surface-higher); font: 800 34px var(--pique-font-display); color: var(--pique-accent-text); }
.lg-mom__retrato--racha .lg-mom__llama { position: absolute; right: -6px; bottom: -6px; font-size: 36px; }
.lg-mom__racha { display: flex; align-items: baseline; gap: 8px; }
.lg-mom__racha b { font: 800 48px var(--pique-font-display); color: var(--pique-gold); }
.lg-mom__semanas { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.lg-mom__semanas i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--pique-surface-high); font: 700 12px var(--pique-font-display); font-style: normal; }
.lg-mom__semanas .lg-mom__semana--si { background: color-mix(in srgb, var(--pique-gold) 30%, var(--pique-surface-high)); }
.lg-mom__lista { display: grid; gap: 8px; justify-self: stretch; }
.lg-mom__fila { display: flex; align-items: center; gap: 10px; text-align: left; font-size: 14px; }
.lg-mom__fila > span:not(.lg-cara):not(.lg-mom__puesto) { flex: 1; min-width: 0; }
.lg-mom__puesto { width: 28px; font: 800 14px var(--pique-font-display); color: var(--pique-text-muted); }
.lg-mom__dif { color: var(--pique-text-muted); font-size: 12px; }
.lg-mom__fuego { color: var(--pique-gold); }
.lg-mom__multiplica b { display: grid; place-items: center; width: 140px; height: 140px; border-radius: 40px; background: var(--pique-accent-container); color: var(--pique-accent-text); font: 800 56px var(--pique-font-display); }
.lg-mom__cuenta { display: flex; gap: 10px; }
.lg-mom__cuenta span { display: grid; justify-items: center; min-width: 64px; padding: 10px; border-radius: 14px; background: var(--pique-surface-high); font-size: 12px; color: var(--pique-text-muted); }
.lg-mom__cuenta b { font: 800 28px var(--pique-font-display); color: var(--pique-text); font-variant-numeric: tabular-nums; }
.lg-mom__cara-a-cara { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; justify-self: stretch; }
.lg-mom__lado { display: grid; justify-items: center; gap: 4px; font-size: 14px; }
.lg-mom__lado--yo .lg-cara { box-shadow: 0 0 0 3px var(--pique-accent); }
.lg-mom__lado--rival .lg-cara { box-shadow: 0 0 0 3px var(--pique-rival); }
.lg-mom__hueco { font: 800 22px var(--pique-font-display); padding: 6px 12px; border-radius: 12px; background: var(--pique-surface-high); }
.lg-mom__dias { display: flex; gap: 8px; justify-content: center; }
.lg-mom__dias > span { display: grid; gap: 4px; justify-items: center; color: var(--pique-text-muted); font-size: 11px; }
.lg-mom__par { display: flex; align-items: flex-end; gap: 3px; height: 56px; }
.lg-mom__par i { width: 9px; height: calc(4px + var(--p, 0) * 52px); border-radius: 3px; background: var(--pique-accent); }
.lg-mom__par i.lg-mom__dia--rival { background: var(--pique-rival); }
.lg-mom__cita { display: grid; gap: 10px; margin: 0; padding: 18px; border-radius: 18px; background: var(--pique-surface-high); text-align: left; justify-self: stretch; }
.lg-mom__comillas { font: 800 40px/0.6 var(--pique-font-display); color: var(--pique-accent-text); }
.lg-mom__cita p { font-size: 17px; }
.lg-mom__cita footer { display: flex; align-items: center; gap: 8px; color: var(--pique-text-muted); font-size: 13px; }
.lg-mom__cuenta-grande { display: grid; justify-items: center; }
.lg-mom__cuenta-grande b { font: 800 80px/1 var(--pique-font-display); color: var(--pique-gold); }
.lg-mom__cuenta-grande span { color: var(--pique-text-muted); }
.lg-mom__linea { justify-self: stretch; height: 8px; border-radius: 4px; background: var(--pique-surface-high); overflow: hidden; }
.lg-mom__linea i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--pique-gold); border-radius: inherit; }
.lg-mom__fechas { display: flex; justify-content: space-between; justify-self: stretch; color: var(--pique-text-muted); font-size: 12px; }
.lg-aro { position: relative; width: 160px; height: 160px; }
.lg-aro__svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.lg-aro__svg circle { fill: none; stroke-width: 12; stroke-linecap: round; }
.lg-aro__fondo { stroke: var(--pique-surface-high); }
.lg-aro__lleno { stroke: var(--pique-accent); stroke-dasharray: calc(var(--p, 0) * 100) 100; }
.lg-aro__centro { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.lg-aro__centro b { font: 800 30px var(--pique-font-display); }
.lg-aro__centro span { color: var(--pique-text-muted); font-size: 12px; }
.lg-barras { display: grid; gap: 8px; justify-self: stretch; }
.lg-barras__fila { display: grid; grid-template-columns: auto minmax(0, 80px) 1fr auto; align-items: center; gap: 8px; font-size: 13px; text-align: left; }
.lg-barras__nombre { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-barras__pista { height: 8px; border-radius: 4px; background: var(--pique-surface-high); overflow: hidden; }
.lg-barras__barra { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--pique-accent); border-radius: inherit; }
@media (prefers-reduced-motion: no-preference) {
  .lg-capa:not([hidden]) { animation: pique-aparece var(--pique-motion-fast) var(--pique-ease-enter); }
  .lg-mom, .lg-abierta { animation: pique-abre var(--pique-motion-normal) var(--pique-ease-enter); }
  .lg-aro__lleno { transition: stroke-dasharray var(--pique-motion-slow) var(--pique-ease-enter); }
  .lg-mom__raya--ahora b { transform-origin: left; animation: lg-raya 6s linear both; }
  .lg-visor--pausa .lg-mom__raya--ahora b, .lg-visor--quieto .lg-mom__raya--ahora b, .lg-visor--fija .lg-mom__raya--ahora b { animation-play-state: paused; }
}

/* ───────────────────────────────────────────────────────── tarjetas ─── */
.lg-tarjeta { display: grid; gap: 14px; padding: 16px; border-radius: var(--pique-radius-card); background: var(--pique-surface); min-width: 0; }
.lg-tarjeta--anulada { opacity: .7; }
.lg-tarjeta__cab { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lg-tarjeta__cara { display: inline-flex; border-radius: 50%; }
.lg-tarjeta__quien { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.lg-tarjeta__autor { font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
.lg-tarjeta__autor b { font-weight: 700; }
.lg-tarjeta__liga { color: var(--pique-text-soft); text-decoration: none; font-weight: 600; }
.lg-tarjeta__liga:hover { text-decoration: underline; }
/* Lo mismo en varias ligas: «3 ligas» en la cabecera y los avisos de lo que pasa en las otras. */
.lg-otrasligas { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; justify-items: start; }
.lg-otrasligas__una { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 36px; padding: 0 8px 0 12px; border: 0; border-radius: 18px; background: var(--pique-surface-high); color: var(--pique-text-soft); font: 600 13px var(--pique-font-body); cursor: pointer; text-align: left; }
.lg-otrasligas__una > span { min-width: 0; padding-block: 8px; line-height: 1.3; }
.lg-otrasligas__una .pique-icon { flex: none; font-size: 18px; width: 18px; height: 18px; }
.lg-otrasligas__una:hover { color: var(--pique-text); }
.lg-masligas__caja { flex: none; margin-left: auto; align-self: flex-start; }
.lg-masligas { display: inline-flex; align-items: center; gap: 2px; min-height: 30px; padding: 0 4px 0 8px; gap: 4px; border: 0; border-radius: 999px; background: var(--pique-surface-high); color: var(--pique-text-soft); font: 600 13px var(--pique-font-body); cursor: pointer; text-transform: none; letter-spacing: 0; }
.lg-masligas .pique-icon { font-size: 18px; width: 18px; height: 18px; }
.lg-masligas__caja .lg-menu__lista { min-width: 300px; }
.lg-comunicado__kicker .lg-masligas__caja { margin-left: 0; }
.lg-comunicado__kicker .lg-masligas__caja .lg-menu__lista { right: auto; left: 0; }
.lg-comunicado__kicker .lg-menu__lista button { text-transform: none; letter-spacing: 0; }
.lg-tarjeta__linea { color: var(--pique-text-muted); font-size: 13px; }
.lg-tarjeta__foto, .lg-tarjeta__panel { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: pointer; background: var(--pique-surface-high); color: #fff; text-align: left; }
.lg-tarjeta__foto { aspect-ratio: 16 / 9; }
.lg-tarjeta__foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lg-tarjeta__panel { min-height: 150px; display: flex; align-items: flex-end; justify-content: space-between; padding: 18px; color: var(--pique-text); }
.lg-tarjeta--gym .lg-tarjeta__panel { background: linear-gradient(135deg, var(--pique-accent-container), var(--pique-surface-high) 70%); }
.lg-tarjeta--cardio .lg-tarjeta__panel, .lg-tarjeta--otra .lg-tarjeta__panel { background: linear-gradient(135deg, var(--pique-mobility-container), var(--pique-surface-high) 70%); }
.lg-tarjeta__sobre { position: absolute; inset: auto 0 0 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 48px 18px 16px; background: linear-gradient(to top, rgba(0, 0, 0, .72), transparent); color: #fff; }
.lg-tarjeta__panel .lg-tarjeta__sobre { position: static; padding: 0; background: none; color: inherit; }
.lg-tarjeta__panel > .lg-cifra-grande { flex: 1; }
.lg-cifra-grande { display: grid; gap: 2px; }
.lg-cifra-grande__valor { font: 800 40px/1 var(--pique-font-display); font-stretch: var(--pique-semi-wide); }
.lg-cifra-grande__valor small { font-size: 16px; margin-left: 6px; font-weight: 700; }
.lg-cifra-grande__sub { font-size: 13px; opacity: .85; }
.lg-cifra-grande--xl .lg-cifra-grande__valor { font-size: 56px; }
.lg-pts { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--pique-accent-container); color: var(--pique-accent-text); border: 1.5px solid var(--pique-accent-border); font: 800 15px var(--pique-font-display); }
.lg-tarjeta__sobre .lg-pts { background: color-mix(in srgb, #000 55%, var(--pique-accent-container)); }
.lg-tarjeta__texto { font-size: 15px; white-space: pre-line; overflow-wrap: anywhere; }
.lg-tarjeta__nota { display: flex; gap: 8px; color: var(--pique-text-muted); font-size: 13px; }
.lg-tarjeta__conversacion { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--pique-line); }
.lg-tarjeta__vermas { justify-self: start; font-size: 13px; color: var(--pique-text-muted); font-weight: 500; }

/* Reacciones */
.lg-reacciones { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lg-reaccion { display: inline-flex; align-items: center; gap: 6px; height: 36px; min-width: 36px; padding: 0 12px; border: 1.5px solid transparent; border-radius: 999px; background: var(--pique-surface-high); color: var(--pique-text); cursor: pointer; font-weight: 700; font-size: 14px; }
.lg-reaccion:hover { background: var(--pique-surface-higher); }
.lg-reaccion--mas { padding: 0; width: 36px; justify-content: center; color: var(--pique-text-soft); }
.lg-reaccion--mia { background: var(--pique-accent-container); border-color: var(--pique-accent-border); color: var(--pique-accent-text); }
.lg-reaccion--comentarios { margin-left: auto; background: none; color: var(--pique-text-soft); }
.lg-reaccion__emoji { font-size: 15px; }
.lg-selector { position: absolute; left: 0; bottom: 44px; z-index: 10; display: flex; flex-wrap: wrap; gap: 4px; max-width: 330px; padding: 6px; border-radius: 16px; background: var(--pique-surface-high); border: 1px solid var(--pique-border); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); }
.lg-selector__emoji { width: 40px; height: 40px; border: 0; border-radius: 12px; background: none; font-size: 22px; cursor: pointer; }
.lg-selector__emoji:hover, .lg-selector__emoji:focus-visible { background: var(--pique-surface-higher); }
@media (prefers-reduced-motion: no-preference) {
  .lg-selector { animation: pique-abre var(--pique-motion-fast) var(--pique-ease-enter); transform-origin: bottom left; }
  .lg-reaccion { transition: background var(--pique-motion-fast), border-color var(--pique-motion-fast); }
}

/* Comentarios */
.lg-comentario { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.lg-comentario--respuesta { margin-left: 38px; }
.lg-comentario__texto { display: grid; gap: 2px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.lg-comentario__pie { display: flex; gap: 12px; color: var(--pique-text-muted); font-size: 12px; }
.lg-comentario__pie button { border: 0; background: none; padding: 0; color: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.lg-mencion { color: var(--pique-accent-text); font-weight: 600; }
.lg-comentar { position: relative; display: flex; align-items: center; gap: 10px; }
.lg-comentar__dentro { position: relative; flex: 1; min-width: 0; }
.lg-comentar__campo { width: 100%; height: 42px; padding: 0 14px; border: 1px solid var(--pique-border); border-radius: 14px; background: var(--pique-surface-high); outline: none; }
.lg-comentar__campo:focus { border-color: var(--pique-accent-border); }
.lg-comentar__enviar { position: absolute; right: 4px; top: 4px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--pique-accent); color: var(--pique-on-accent); cursor: pointer; }
.lg-comentar__enviar[hidden] { display: none; }
.lg-comentar__enviar .pique-icon { font-size: 18px; width: 18px; height: 18px; }
.lg-comentar__dentro:has(.lg-comentar__enviar:not([hidden])) .lg-comentar__campo { padding-right: 46px; }
.lg-mencionar { position: absolute; left: 0; bottom: 48px; z-index: 10; min-width: 220px; padding: 6px; border-radius: 14px; background: var(--pique-surface-high); border: 1px solid var(--pique-border); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); }
.lg-mencionar__op { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; cursor: pointer; font-size: 14px; }
.lg-mencionar__op--sel, .lg-mencionar__op:hover { background: var(--pique-surface-higher); }

/* Comunicados y encuestas */
.lg-tarjeta--comunicado { border: 1.5px solid var(--pique-accent-border); }
.lg-comunicado__kicker { display: flex; align-items: center; gap: 8px; font: 700 12px var(--pique-font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--pique-accent-text); }
.lg-comunicado__kicker .lg-muted { text-transform: none; letter-spacing: 0; font-weight: 500; }
.lg-comunicado__fijado { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--pique-text-muted); text-transform: none; letter-spacing: 0; font-weight: 500; }
.lg-comunicado__texto { font-size: 16px; white-space: pre-line; overflow-wrap: anywhere; }
.lg-comunicado__foto { width: 100%; border-radius: 14px; max-height: 420px; object-fit: cover; }
.lg-encuesta { display: grid; gap: 8px; justify-self: stretch; text-align: left; }
.lg-encuesta__pregunta { font-weight: 700; }
.lg-encuesta__op { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--pique-border); border-radius: 14px; background: none; overflow: hidden; cursor: pointer; text-align: left; }
.lg-encuesta__op:disabled { cursor: default; }
.lg-encuesta__op--mia { border-color: var(--pique-accent-border); }
.lg-encuesta__barra { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); background: var(--pique-surface-high); }
.lg-encuesta__op--mia .lg-encuesta__barra { background: var(--pique-accent-container); }
.lg-encuesta__texto, .lg-encuesta__op b { position: relative; }
.lg-encuesta__pie { color: var(--pique-text-muted); font-size: 13px; }
@media (prefers-reduced-motion: no-preference) { .lg-encuesta__barra { transition: width var(--pique-motion-slow) var(--pique-ease-enter); } }

/* La publicación abierta */
.lg-capa--publicacion { padding: 24px; grid-template-rows: minmax(0, 1fr) auto; }
.lg-abierta { display: grid; grid-template-columns: auto minmax(0, 1180px) auto; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 100%; min-height: 0; }
.lg-abierta__caja { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, 420px); height: min(780px, 100%); min-height: 0; border-radius: var(--pique-radius-dialog); overflow: hidden; background: var(--pique-surface); }
.lg-abierta__foto { position: relative; background: #000; min-height: 0; }
.lg-abierta__foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.lg-abierta__foto--sin.lg-abierta__foto--gym { background: linear-gradient(135deg, var(--pique-accent-container), var(--pique-surface-high)); }
.lg-abierta__foto--sin.lg-abierta__foto--cardio, .lg-abierta__foto--sin.lg-abierta__foto--otra { background: linear-gradient(135deg, var(--pique-mobility-container), var(--pique-surface-high)); }
.lg-abierta__foto--comunicado { background: var(--pique-accent-container); color: var(--pique-accent-text); }
.lg-abierta__foto--sin .lg-abierta__sobre { background: none; color: var(--pique-text); }
.lg-abierta__foto--sin .lg-pts { background: var(--pique-accent-container); }
.lg-abierta__comunicado { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; font-size: 20px; }
.lg-abierta__comunicado .pique-icon { width: 72px; height: 72px; }
.lg-abierta__lado { display: flex; flex-direction: column; gap: 12px; min-height: 0; padding: 16px; }
.lg-abierta__lado > .lg-tarjeta__cab { padding-bottom: 12px; border-bottom: 1px solid var(--pique-line); }
.lg-abierta__hilo { flex: 1; display: grid; gap: 14px; align-content: start; overflow: auto; min-height: 0; padding: 12px 0; border-top: 1px solid var(--pique-line); }
.lg-abierta__texto { font-size: 15px; white-space: pre-line; overflow-wrap: anywhere; }
.lg-abierta__reactores { display: flex; align-items: center; gap: 10px; color: var(--pique-text-muted); font-size: 13px; }
.lg-abierta__vacio { color: var(--pique-text-muted); font-size: 14px; }
.lg-abierta__respondiendo { display: flex; justify-content: space-between; gap: 8px; color: var(--pique-text-muted); font-size: 13px; }

/* ────────────────────────────────────────────────────────── podio ─── */
/* El mismo en tres tamaños. El puesto va solo en el cajón (1º, 2º, 3º) y el
   primero lleva la corona; solo el primero va en lima, y suave. */
.lg-podio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 8px; --alto: 84px; }
.lg-podio--m { gap: 14px; --alto: 150px; max-width: 520px; width: 100%; justify-self: center; }
.lg-podio--xl { gap: 24px; --alto: 260px; }
.lg-podio__puesto { display: grid; justify-items: center; gap: 6px; min-width: 0; text-decoration: none; color: var(--pique-text); }
.lg-podio__cara { position: relative; display: grid; place-items: center; border-radius: 50%; }
.lg-podio__puesto--1 .lg-podio__cara > .lg-cara, .lg-podio__puesto--1 .lg-podio__cara > .lg-equipo-caras { box-shadow: 0 0 0 3px var(--pique-accent); }
.lg-podio__puesto--1 .lg-podio__cara > .lg-equipo-caras { box-shadow: none; }
.lg-podio__puesto--2 .lg-podio__cara > .lg-cara { box-shadow: 0 0 0 2px var(--pique-text-muted); }
.lg-podio__puesto--3 .lg-podio__cara > .lg-cara { box-shadow: 0 0 0 2px #C98B5E; }
.lg-podio__corona { position: absolute; left: 50%; top: 0; transform: translate(-50%, -78%); font-size: 22px; line-height: 1; }
.lg-podio--m .lg-podio__corona { font-size: 30px; }
.lg-podio--xl .lg-podio__corona { font-size: 48px; }
.lg-podio__quien { display: grid; justify-items: center; line-height: 1.2; min-width: 0; max-width: 100%; }
.lg-podio__nombre { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.lg-podio__valor { font: 700 13px var(--pique-font-display); font-variant-numeric: tabular-nums; color: var(--pique-text-soft); }
.lg-podio__puesto--1 .lg-podio__valor { color: var(--pique-accent-text); }
.lg-podio--m .lg-podio__nombre { font-size: 18px; }
.lg-podio--m .lg-podio__valor { font-size: 15px; }
.lg-podio__cajon { display: grid; align-content: start; justify-items: center; gap: 2px; width: 100%; padding-top: 8px; border-radius: 14px 14px 4px 4px; background: var(--pique-surface-high); border: 1.5px solid var(--pique-surface-higher); border-bottom: 0; height: calc(var(--alto) * .78); }
.lg-podio__puesto--1 .lg-podio__cajon { height: var(--alto); background: linear-gradient(to bottom, var(--pique-accent-container), color-mix(in srgb, var(--pique-accent-container) 30%, var(--pique-surface-high))); border-color: var(--pique-accent-border); }
.lg-podio__puesto--3 .lg-podio__cajon { height: calc(var(--alto) * .66); border-color: color-mix(in srgb, #C98B5E 55%, transparent); }
.lg-podio__lugar { font: 800 20px var(--pique-font-display); color: var(--pique-text-soft); }
.lg-podio__puesto--1 .lg-podio__lugar { color: var(--pique-accent-text); }
.lg-podio__puesto--3 .lg-podio__lugar { color: #D9A27A; }
.lg-podio--m .lg-podio__lugar { font-size: 32px; }
.lg-podio--xl .lg-podio__lugar { font-size: 56px; }
.lg-podio__sub { font-size: 11px; color: var(--pique-text-muted); padding: 0 4px; text-align: center; }
.lg-podio__puesto--1 .lg-podio__sub { color: var(--pique-accent-text); }
.lg-podio--m .lg-podio__sub { font-size: 13px; }
.lg-podio__puesto--vacio { visibility: hidden; }
.lg-podio__puesto:hover .lg-podio__nombre { text-decoration: underline; }
/* Al aparecer: los cajones suben (3º, 2º, 1º) y cae la corona. */
@media (prefers-reduced-motion: no-preference) {
  .lg-podio--entra .lg-podio__cajon { transform: scaleY(0); transform-origin: bottom; }
  .lg-podio--entra .lg-podio__quien, .lg-podio--entra .lg-podio__cara { opacity: 0; }
  .lg-podio--entra .lg-podio__corona { opacity: 0; transform: translate(-50%, -160%); }
  .lg-podio--dentro .lg-podio__cajon { transform: none; transition: transform var(--pique-motion-slow) var(--pique-ease-enter); }
  .lg-podio--dentro .lg-podio__quien, .lg-podio--dentro .lg-podio__cara { opacity: 1; transition: opacity var(--pique-motion-normal) var(--pique-ease-enter) 200ms; }
  .lg-podio--dentro .lg-podio__corona { opacity: 1; transform: translate(-50%, -78%); transition: opacity var(--pique-motion-normal) var(--pique-ease-enter) 550ms, transform var(--pique-motion-normal) var(--pique-ease-enter) 550ms; }
  .lg-podio--dentro .lg-podio__puesto--2 .lg-podio__cajon { transition-delay: 100ms; }
  .lg-podio--dentro .lg-podio__puesto--1 .lg-podio__cajon { transition-delay: 200ms; }
}

/* ─────────────────────────────────────────────────────────── liga ─── */
.lg-hero { position: relative; overflow: hidden; background: var(--pique-surface); border-bottom: 1px solid var(--pique-line); }
.lg-hero__foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; filter: saturate(.7); }
/* La portada que eligió quien organiza (PIQ-714) se ve más: es la cara de la liga. */
.lg-hero__foto--elegida { opacity: .6; filter: none; }
.lg-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, color-mix(in srgb, var(--pique-surface) 20%, transparent), var(--pique-surface)); pointer-events: none; }
.lg-hero__dentro, .lg-hero > .lg-pestanas, .lg-hero > .lg-juego { position: relative; z-index: 1; width: min(1100px, 100% - 48px); margin: 0 auto; }
.lg-hero__dentro { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 44px 0 18px; flex-wrap: wrap; }
.lg-hero__titulos { display: grid; gap: 6px; min-width: 0; }
.lg-hero__titulos h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.05; overflow-wrap: anywhere; }
.lg-hero__titulos p { color: var(--pique-text-soft); font-size: 14px; }
.lg-hero__acciones { display: flex; align-items: center; gap: 12px; }
.lg-hero__caras { display: inline-flex; }
.lg-hero__caras > * + * { margin-left: -8px; }
.lg-hero__mas { background: var(--pique-surface-higher); color: var(--pique-text); font: 700 11px var(--pique-font-body); }
.lg-hero__invitar { min-height: 44px; }
/* En juego: premio contra castigo, de la liga y de cada semana. */
.lg-juego { display: grid; gap: 8px; margin-bottom: 14px !important; text-decoration: none; color: var(--pique-text); }
.lg-juego__caja { display: grid; max-width: 720px; border-radius: 16px; overflow: hidden; border: 1px solid var(--pique-line); }
.lg-juego__fila { display: grid; grid-template-columns: 1fr 1fr; }
.lg-juego__mitad { display: grid; align-content: start; gap: 4px; padding: 12px 14px; min-width: 0; background: linear-gradient(135deg, var(--pique-accent-container), color-mix(in srgb, var(--pique-accent-container) 40%, var(--pique-surface-high))); }
.lg-juego__mitad--castigo { background: linear-gradient(225deg, var(--pique-rival-container), color-mix(in srgb, var(--pique-rival-container) 40%, var(--pique-surface-high))); text-align: right; justify-items: end; }
.lg-juego__mitad:only-child { grid-column: 1 / -1; }
.lg-juego__mitad small { font: 700 10.5px var(--pique-font-body); letter-spacing: .07em; text-transform: uppercase; color: var(--pique-accent-text); }
.lg-juego__mitad--castigo small { color: var(--pique-rival); }
.lg-juego__mitad b { font: 800 17px/1.2 var(--pique-font-display); font-stretch: var(--pique-semi-wide); overflow-wrap: anywhere; }
.lg-juego__fila--semana { border-top: 1px solid var(--pique-line); }
.lg-juego__fila--semana .lg-juego__mitad { padding: 9px 14px 10px; gap: 2px; background: color-mix(in srgb, var(--pique-accent-container) 45%, var(--pique-surface-high)); }
.lg-juego__fila--semana .lg-juego__mitad--castigo { background: color-mix(in srgb, var(--pique-rival-container) 45%, var(--pique-surface-high)); }
.lg-juego__fila--semana .lg-juego__mitad small { font-size: 10px; opacity: .85; }
.lg-juego__fila--semana .lg-juego__mitad b { font: 700 14px/1.25 var(--pique-font-body); font-stretch: normal; }
.lg-juego:hover .lg-juego__caja { border-color: var(--pique-surface-higher); }
.lg-menu { position: relative; }
.lg-menu__boton { background: var(--pique-surface-high); width: 44px; height: 44px; }
.lg-menu__lista { position: absolute; right: 0; top: calc(100% + 6px); z-index: 25; }
.lg-tarjeta__cab .lg-menu__boton { background: none; width: 36px; height: 36px; }
/* Dentro de una tabla o de una ventana que recorta, el menú se ancla a la pantalla. */
.lg-menu__lista--fija { position: fixed; z-index: 60; max-height: calc(100vh - 16px); overflow-y: auto; }
.lg-menu__mala { color: var(--pique-rival) !important; }
.lg-pestanas { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.lg-pestanas::-webkit-scrollbar { display: none; }
.lg-pestanas__una { flex: none; padding: 12px 16px 14px; border-bottom: 3px solid transparent; font-weight: 600; color: var(--pique-text-soft); text-decoration: none; }
.lg-pestanas__una:hover { color: var(--pique-text); }
.lg-pestanas__una--sel { color: var(--pique-text); border-bottom-color: var(--pique-accent); }
.lg-liga__cuerpo { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; width: min(1100px, 100% - 48px); margin: 24px auto 0; align-items: start; }
.lg-liga__principal { display: grid; gap: 20px; min-width: 0; }
.lg-liga__lado { position: sticky; top: 88px; display: grid; gap: 20px; min-width: 0; }
.lg-liga__cuerpo--marcador { grid-template-columns: minmax(0, 1fr) 380px; }
.lg-liga__entera { grid-column: 1 / -1; display: grid; gap: 20px; }
.lg-titular { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--pique-accent-container); color: var(--pique-accent-text); font-weight: 600; }
.lg-aviso-liga { grid-template-columns: auto 1fr; align-items: center; }
.lg-aviso-liga__icono { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--pique-accent-container); color: var(--pique-accent-text); font-size: 22px; }
.lg-aviso-liga--cancelada .lg-aviso-liga__icono { background: var(--pique-rival-container); color: var(--pique-rival); }
.lg-abierta__cerrada { display: flex; align-items: center; gap: 10px; margin: 0; padding: 16px 0 4px; border-top: 1px solid var(--pique-line); color: var(--pique-text-muted); font-size: 14px; }
.lg-reaccion--quieta { cursor: default; }
.lg-cierre { justify-items: center; text-align: center; gap: 18px; padding: 24px; border: 1.5px solid var(--pique-accent-border); }
.lg-cierre__titular { font-size: 26px; }
.lg-cierre .lg-podio { margin-top: 24px; }
.lg-cierre__premio { display: flex; align-items: center; gap: 8px; color: var(--pique-text-soft); text-align: left; }
.lg-caja--podio .lg-podio { margin-top: 18px; }
.lg-fotos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.lg-fotos--todas { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.lg-fotos__una { display: block; aspect-ratio: 1; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--pique-surface-high); cursor: pointer; }
.lg-fotos__una img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lg-fotos__una .pique-hueso--escena { height: 100%; }
@media (prefers-reduced-motion: no-preference) { .lg-fotos__una img { transition: transform var(--pique-motion-normal) var(--pique-ease-enter); } .lg-fotos__una:hover img { transform: scale(1.04); } }
.lg-fotos__pie { display: grid; justify-items: center; }
.lg-reto { gap: 10px; }
.lg-reto h2 { font-size: 18px; }
.lg-bonus { grid-template-columns: auto 1fr; align-items: center; }
.lg-bonus__x { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--pique-accent-container); color: var(--pique-accent-text); font: 800 20px var(--pique-font-display); }
.lg-bonus__x--p { width: 44px; height: 44px; border-radius: 12px; font-size: 16px; }
.lg-bonus p { font-size: 13px; }

/* Equipos */
.lg-equipo { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--pique-surface-high); border-left: 4px solid var(--equipo); }
.lg-equipo--c0 { --equipo: var(--pique-accent); }
.lg-equipo--c1 { --equipo: var(--pique-mobility); }
.lg-equipo--c2 { --equipo: var(--pique-rival); }
.lg-equipo--c3 { --equipo: var(--pique-gold); }
.lg-equipo--c4 { --equipo: var(--pique-cardio); }
.lg-equipo--c5 { --equipo: var(--pique-avatar-3-fg); }
.lg-equipo__puesto { font: 800 16px var(--pique-font-display); color: var(--pique-text-soft); }
.lg-equipo__textos { display: grid; gap: 6px; min-width: 0; }
.lg-equipo__textos b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-equipo__puntos { font: 800 16px var(--pique-font-display); font-variant-numeric: tabular-nums; }
.lg-equipo__semana { font-size: 13px; font-weight: 600; }
.lg-equipo-caras { display: inline-flex; }
.lg-equipo-caras > * + * { margin-left: -6px; }
.lg-equipos--marcador .lg-podio { margin: 22px 0 8px; }
.lg-podio .lg-equipo-caras .lg-cara { --size: 34px; }
.lg-podio--m .lg-equipo-caras .lg-cara { --size: 48px; }

/* Marcador */
.lg-caja--tabla { padding: 8px 8px 12px; overflow-x: auto; }
.lg-tabla { width: 100%; border-collapse: collapse; font-size: 15px; }
.lg-tabla th { padding: 12px 10px; font: 700 11px var(--pique-font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--pique-text-muted); text-align: left; }
.lg-tabla td { padding: 10px; border-top: 1px solid var(--pique-line); }
.lg-tabla__n { width: 36px; color: var(--pique-text-muted); font-family: var(--pique-font-display); font-weight: 700; text-align: center !important; }
.lg-tabla__num { text-align: right !important; font-family: var(--pique-font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lg-tabla__puntos { font-weight: 800; font-size: 17px; }
.lg-tabla__cambio { white-space: nowrap; font-weight: 700; font-size: 13px; color: var(--pique-text-muted); }
.lg-tabla__cambio .pique-icon { width: 14px; height: 14px; }
.lg-tabla__persona { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.lg-tabla__persona:hover b { text-decoration: underline; }
.lg-tabla__textos { display: grid; line-height: 1.25; min-width: 0; }
.lg-tabla__textos span { color: var(--pique-text-muted); font-size: 13px; }
.lg-tabla__yo td { background: var(--pique-accent-container); border-top-color: transparent; }
.lg-tabla__yo td:first-child { border-radius: 12px 0 0 12px; }
.lg-tabla__yo td:last-child { border-radius: 0 12px 12px 0; }
.lg-tabla__yo + tr td { border-top-color: transparent; }
.lg-espera__fila { display: flex; align-items: center; gap: 14px; padding: 12px 10px; }
.lg-espera__fila .pique-espera__lineas { flex: 1; }
.lg-grafica__svg { width: 100%; height: auto; overflow: visible; }
.lg-grafica__rejilla { stroke: var(--pique-line); stroke-width: 1; }
.lg-grafica__eje { fill: var(--pique-text-muted); font: 500 10px var(--pique-font-body); }
.lg-grafica__nombre { font: 700 11px var(--pique-font-body); }
.lg-grafica__linea { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke: var(--linea); }
.lg-grafica__punto, .lg-grafica__nombre { fill: var(--linea); stroke: none; }
.lg-grafica__linea--yo { --linea: var(--pique-accent-text); stroke-width: 3.5; }
.lg-grafica__linea--cardio { --linea: var(--pique-cardio); }
.lg-grafica__linea--mobility { --linea: var(--pique-mobility); }
.lg-grafica__linea--gold { --linea: var(--pique-gold); }
.lg-grafica__linea--rival { --linea: var(--pique-rival); }
.lg-grafica__linea--soft { --linea: var(--pique-avatar-3-fg); }
.lg-grafica__linea--yo.lg-grafica__punto, .lg-grafica__linea--yo.lg-grafica__nombre { stroke: none; }
@media (prefers-reduced-motion: no-preference) {
  .lg-grafica__linea--dibuja { stroke-dasharray: 1; stroke-dashoffset: 1; animation: lg-dibuja 900ms var(--pique-ease-enter) 100ms forwards; }
}
@keyframes lg-dibuja { to { stroke-dashoffset: 0; } }
.lg-grafica__poco { font-size: 14px; }
.lg-ganadores__fila { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; }
.lg-ganadores__una { display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border-radius: 12px; background: var(--pique-surface-high); text-decoration: none; text-align: center; min-width: 0; }
.lg-ganadores__una small { color: var(--pique-text-muted); font: 700 11px var(--pique-font-body); }
.lg-ganadores__una b { font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-ganadores__una:hover { background: var(--pique-surface-higher); }
.lg-ganadores__una--yo, .lg-ganadores__una--ahora { background: var(--pique-accent-container); color: var(--pique-accent-text); }

/* Gente y ficha */
.lg-gente { gap: 6px; }
.lg-gente__buscar { width: 150px; height: 36px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--pique-surface-high); outline: none; font-size: 14px; }
.lg-gente__buscar:focus { box-shadow: 0 0 0 2px var(--pique-accent-border); }
.lg-gente__filas { display: grid; gap: 2px; margin: 0 -8px; }
.lg-gente__fila { padding: 8px; }
.lg-gente__fila .lg-misligas__textos { flex: 1; }
.lg-gente__fila--sel { background: var(--pique-surface-high); }
.lg-ficha__cab { grid-template-columns: auto 1fr; align-items: center; gap: 18px; }
.lg-ficha__titulos { display: grid; gap: 4px; min-width: 0; }
.lg-ficha__titulos h2 { font-size: 28px; overflow-wrap: anywhere; }
.lg-ficha__seccion { font-size: 17px; margin-top: 4px; }
.lg-cara-a-cara { gap: 12px; }
.lg-cara-a-cara__quien { display: flex; justify-content: space-between; }
.lg-cara-a-cara__quien > span { display: inline-flex; align-items: center; gap: 8px; }
.lg-cara-a-cara__fila { display: grid; grid-template-columns: 70px 1fr auto 1fr 70px; align-items: center; gap: 12px; font-size: 13px; }
.lg-cara-a-cara__fila > b { font: 800 17px var(--pique-font-display); font-variant-numeric: tabular-nums; }
.lg-cara-a-cara__fila > b:last-child { text-align: right; }
.lg-cara-a-cara__fila > .lg-muted { text-align: center; min-width: 64px; }
.lg-constancia__cuerpo { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.lg-constancia__dias, .lg-constancia__rejilla { display: grid; grid-template-columns: repeat(7, 22px); gap: 6px; }
.lg-constancia__dias { margin-bottom: 6px; color: var(--pique-text-muted); font-size: 11px; text-align: center; }
.lg-constancia__dia { width: 22px; height: 22px; border-radius: 6px; background: var(--pique-surface-high); }
.lg-constancia__dia[data-nivel="1"] { background: color-mix(in srgb, var(--pique-accent) 30%, var(--pique-surface-high)); }
.lg-constancia__dia[data-nivel="2"] { background: color-mix(in srgb, var(--pique-accent) 60%, var(--pique-surface-high)); }
.lg-constancia__dia[data-nivel="3"] { background: var(--pique-accent); }
.lg-constancia__dia--futuro { background: none; border: 1.5px dashed var(--pique-surface-higher); }
.lg-constancia__textos { display: grid; gap: 10px; color: var(--pique-text-soft); font-size: 15px; }
.lg-constancia__grande b { font: 800 26px var(--pique-font-display); color: var(--pique-text); }

/* Reglas */
.lg-regla { display: flex; gap: 14px; align-items: flex-start; padding-top: 12px; border-top: 1px solid var(--pique-line); }
.lg-caja__cab + .lg-regla { border-top: 0; padding-top: 0; }
.lg-regla p { color: var(--pique-text-soft); font-size: 14px; }
.lg-regla--pasado { opacity: .55; }
.lg-regla__icono { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--pique-surface-high); color: var(--pique-accent-text); flex: none; font-size: 18px; }
.lg-factores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lg-factores__uno { display: grid; gap: 2px; padding: 12px; border-radius: 14px; background: var(--pique-surface-high); }
.lg-factores__uno b { font: 800 22px var(--pique-font-display); }
.lg-fechas { font: 800 20px var(--pique-font-display); }

/* ───────────────────────────────────────────── resumen de la semana ─── */
.lg-pagina--semana { width: min(1100px, 100%); margin: 0 auto; display: grid; gap: 20px; }
.lg-semana__cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lg-semana__cab h1 { font-size: clamp(24px, 3.4vw, 34px); }
.lg-volver { display: inline-flex; align-items: center; gap: 6px; color: var(--pique-text-soft); text-decoration: none; font-size: 14px; margin-bottom: 6px; }
.lg-semana__nav { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--pique-surface); }
.lg-semana__ir, .lg-semana__hueco { padding: 9px 14px; border-radius: 11px; text-decoration: none; font-weight: 600; color: var(--pique-text-soft); white-space: nowrap; }
.lg-semana__ir--sel { background: var(--pique-surface-higher); color: var(--pique-text); }
.lg-semana__cuerpo { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
.lg-semana__grande { justify-items: center; gap: 24px; padding: 24px; text-align: center; background: linear-gradient(to bottom, color-mix(in srgb, var(--pique-accent-container) 45%, var(--pique-surface)), var(--pique-surface) 50%); }
.lg-semana__grande > .pique-kicker { justify-self: start; }
.lg-semana__grande .lg-podio { margin-top: 36px; }
.lg-semana__frase { font-size: 22px; max-width: 30ch; }
.lg-semana__lado { display: grid; gap: 16px; min-width: 0; }
.lg-cifras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lg-cifra { display: grid; gap: 2px; padding: 14px; border-radius: 16px; background: var(--pique-surface); }
.lg-cifra b { font: 800 26px var(--pique-font-display); font-variant-numeric: tabular-nums; }
.lg-cifra b small { font-size: 15px; color: var(--pique-text-muted); }
.lg-cifra > span { color: var(--pique-text-muted); font-size: 13px; }
.lg-cifra--lima b { color: var(--pique-accent-text); }
.lg-semana__momento { display: flex; gap: 12px; align-items: flex-start; padding-top: 12px; border-top: 1px solid var(--pique-line); text-decoration: none; }
.lg-caja__cab + .lg-semana__momento { border-top: 0; padding-top: 0; }
.lg-semana__momento .lg-misligas__textos > span { color: var(--pique-text-soft); font-size: 14px; }
.lg-semana__icono { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; flex: none; font-size: 20px; background: var(--pique-surface-high); }
.lg-semana__icono--dura { background: var(--pique-rival-container); color: var(--pique-rival); }
.lg-semana__icono--constante { background: var(--pique-mobility-container); color: var(--pique-mobility); }
.lg-semana__icono--sube { background: var(--pique-accent-container); color: var(--pique-accent-text); }
.lg-semana__icono--racha { background: color-mix(in srgb, var(--pique-gold) 16%, transparent); color: var(--pique-gold); }
.lg-semana__tabla { gap: 2px; }
.lg-semana__fila { display: grid; grid-template-columns: 32px auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; text-decoration: none; font-size: 14px; }
.lg-semana__fila:hover { background: var(--pique-surface-high); }
.lg-semana__fila--yo { background: var(--pique-accent-container); }
.lg-semana__fila .lg-muted { font-size: 12px; }
.lg-semana__puesto { font: 800 14px var(--pique-font-display); color: var(--pique-text-muted); }
.lg-semana__pts { font-family: var(--pique-font-display); font-variant-numeric: tabular-nums; }

/* ─────────────────────────────────────────────────────────── listas ─── */
.lg-listas { width: min(1100px, 100%); margin: 0 auto; display: grid; gap: 24px; }
.lg-listas h1 { font-size: clamp(24px, 3.4vw, 34px); }
.lg-listas__cab { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lg-listas__cab .lg-gente__buscar { width: min(280px, 100%); height: 42px; }
.lg-listas__grupo { display: grid; gap: 12px; }
.lg-listas__rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.lg-listas__rejilla--gente { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.lg-tarjeta-liga { gap: 16px; }
.lg-tarjeta-liga:hover, .lg-persona:hover { background: var(--pique-surface-high); }
.lg-tarjeta-liga--finished, .lg-tarjeta-liga--cancelled { opacity: .8; }
.lg-tarjeta-liga__cab { display: flex; align-items: center; gap: 14px; min-width: 0; }
.lg-tarjeta-liga__cab b { font-size: 17px; }
.lg-tarjeta-liga__pie { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.lg-persona { grid-template-columns: auto 1fr; align-items: center; gap: 14px; }

/* ─────────────────────────────────────────────────────────── entrar ─── */
.lg-entrar { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(400px, 34vw) minmax(0, 1fr); }
.lg-entrar__form {
  display: grid; grid-template-rows: auto 1fr auto; gap: 32px; min-width: 0;
  padding-block: 36px; padding-left: max(48px, env(safe-area-inset-left, 0px)); padding-right: 48px;
}
.lg-entrar__form .lg-marca { justify-self: start; }
.lg-entrar__caja { align-self: center; width: 100%; max-width: 400px; display: grid; gap: 18px; }
.lg-entrar__caja h1 { font-size: 32px; font-weight: 800; letter-spacing: -.01em; }
.lg-entrar__caja form { display: grid; gap: 14px; }
.lg-entrar__caja .pique-field { width: 100%; }
.lg-entrar__caja button[aria-busy="true"] { gap: 10px; cursor: progress; }
.lg-entrar__otros { display: flex !important; justify-content: space-between; flex-wrap: wrap; margin-inline: -12px; }
.lg-entrar__nota { display: flex; gap: 10px; color: var(--pique-text-muted); font-size: 13px; }
.lg-entrar__bajo { display: grid; gap: 8px; max-width: 400px; }
.lg-entrar__nuevo { color: var(--pique-text-muted); font-size: 14px; }
.lg-entrar__nuevo a { color: var(--pique-text-soft); font-weight: 600; text-decoration: none; white-space: nowrap; }
.lg-entrar__nuevo a::after { content: " ›"; }
.lg-entrar__nuevo a:hover { color: var(--pique-text); }
.lg-entrar__pie { color: var(--pique-text-muted); font-size: 13px; }
.lg-entrar__pie a { color: var(--pique-text-soft); }
.lg-entrar__movil { display: none; }
/* La escena: la portada en pequeño. Siempre oscura, como la portada y como las capturas que enseña. */
.lg-entrar__escena {
  --pique-text: #F2F3F5; --pique-text-soft: #C9CDD3; --pique-text-muted: #9EA3AB; --pique-accent-text: #C6F432; --pique-line: #2A2D33;
  position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; isolation: isolate; min-width: 0;
  display: grid; grid-template-rows: auto 1fr; gap: clamp(28px, 5vh, 56px);
  padding-top: clamp(40px, 9vh, 96px); padding-left: clamp(40px, 5vw, 88px);
  background: #0A0B0D; color: var(--pique-text); border-left: 1px solid var(--pique-line);
}
.lg-entrar__escena::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 80% 100%, rgba(198, 244, 50, .16), transparent 70%),
    radial-gradient(45% 40% at 6% 0%, rgba(255, 138, 107, .10), transparent 70%);
}
.lg-entrar__lema { display: grid; gap: 20px; padding-right: clamp(40px, 5vw, 88px); }
.lg-entrar__titular { font-family: var(--pique-font-display); font-stretch: var(--pique-wide); font-size: clamp(38px, 4.6vw, 80px); font-weight: 900; line-height: .94; letter-spacing: -.03em; text-transform: uppercase; max-width: 10em; text-wrap: balance; }
.lg-entrar__titular em, .lg-entrar__movil em { display: block; font-style: normal; color: var(--pique-accent-text); }
.lg-entrar__lista { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 24px; margin: 0; padding: 0; list-style: none; max-width: 780px; }
.lg-entrar__lista li { display: flex; gap: 8px; align-items: flex-start; color: var(--pique-text-soft); font-size: 15px; }
.lg-entrar__lista .pique-icon { color: var(--pique-accent-text); margin-top: 1px; flex: none; }
.lg-entrar__vista { position: relative; align-self: start; min-width: 0; }
.lg-entrar__ventana {
  width: max(100%, 760px); background: #191B1F; border: 1px solid var(--pique-line); border-right: 0;
  border-radius: 16px 0 0 0; overflow: hidden; box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.lg-entrar__barra { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #222429; }
.lg-entrar__barra i { width: 10px; height: 10px; border-radius: 50%; background: #2E3137; }
.lg-entrar__barra span { margin-inline: auto; font-size: 12px; color: var(--pique-text-muted); background: #0A0B0D; padding: 3px 16px; border-radius: 999px; }
.lg-entrar__ventana img, .lg-entrar__telefono img { display: block; width: 100%; height: auto; }
.lg-entrar__telefono {
  position: absolute; left: clamp(-56px, -3.4vw, -28px); top: clamp(120px, 20vh, 210px); width: clamp(150px, 13.5vw, 210px);
  padding: 5px; border-radius: 30px; background: #060607; overflow: hidden;
  box-shadow: 0 0 0 1.5px #3b3d42, 0 40px 80px -20px rgba(0, 0, 0, .95);
}
.lg-entrar__telefono img { border-radius: 25px; }
@media (prefers-reduced-motion: no-preference) {
  /* Al abrir, una vez: el lema sube, las frases llegan de una en una, la ventana sube y el móvil llega el último. */
  .lg-entrar__lema > .pique-kicker, .lg-entrar__titular, .lg-entrar__lista li { animation: pique-sube var(--pique-motion-slow) var(--pique-ease-enter) both; }
  .lg-entrar__titular { animation-delay: 60ms; }
  .lg-entrar__lista li:nth-child(1) { animation-delay: 220ms; }
  .lg-entrar__lista li:nth-child(2) { animation-delay: 300ms; }
  .lg-entrar__lista li:nth-child(3) { animation-delay: 380ms; }
  .lg-entrar__ventana { animation: lg-entrar-sube var(--pique-motion-highlight) var(--pique-ease-enter) 260ms both; }
  .lg-entrar__telefono { animation: lg-entrar-sube var(--pique-motion-highlight) var(--pique-ease-enter) 420ms both; }
  /* En el segundo paso, o al volver con un aviso, la escena ya está puesta: no se repite. */
  .lg-entrar--sigue .lg-entrar__escena * { animation: none; }
}
@keyframes lg-entrar-sube { from { opacity: 0; transform: translateY(40px); } }
@media (max-width: 900px) {
  .lg-entrar { grid-template-columns: minmax(0, 1fr); }
  .lg-entrar__escena { display: none; }
  .lg-entrar__form { gap: 28px; padding: 20px max(20px, env(safe-area-inset-right, 0px)) 28px max(20px, env(safe-area-inset-left, 0px)); justify-items: center; }
  .lg-entrar__caja { align-self: start; }
  .lg-entrar__bajo { width: 100%; }
  .lg-entrar__movil { display: block; font-family: var(--pique-font-display); font-stretch: var(--pique-wide); font-size: 30px; font-weight: 900; line-height: .95; letter-spacing: -.03em; text-transform: uppercase; margin-bottom: 8px; max-width: 9em; }
  /* Con el código delante manda el formulario: el lema ya se vio y el teclado necesita el sitio. */
  .lg-entrar--sigue .lg-entrar__movil { display: none; }
}

/* ───────────────────────────────────────── esperas (formas de verdad) ─── */
.pique-espera .lg-tarjeta__foto, .pique-espera .lg-tarjeta__panel { cursor: default; }
.pique-espera .lg-tarjeta__panel .pique-hueso--escena { position: absolute; inset: 0; }
.pique-espera .lg-tarjeta__panel { padding: 0; }
.pique-espera .lg-podio__cajon { background: var(--pique-surface-high); border-color: transparent; }
.pique-espera .lg-pestanas__una { color: var(--pique-text-muted); }
.pique-espera .lg-momento__circulo { box-shadow: none; }
.lg-semana__cab .pique-hueso + .pique-hueso { margin-top: 10px; }
.lg-hero__titulos .pique-hueso + .pique-hueso { margin-top: 6px; }
/* La cabecera de la espera mide lo mismo que la de verdad: las pestañas no saltan al llegar la liga. */
.pique-espera .lg-hero__titulos { min-height: calc(clamp(28px, 4vw, 40px) * 1.05 + 26.3px); align-content: space-between; }
.pique-espera .lg-hero__acciones { min-height: 44px; }
.pique-espera .lg-juego__mitad { background: var(--pique-surface-high); min-height: 62px; gap: 8px; }
.pique-espera .lg-juego__caja { border-color: transparent; }
.pique-espera.lg-liga { display: block; }
.pique-espera.lg-semana, .pique-espera.lg-lista { display: grid; gap: 20px; }

/* ─────────────────────────────────────────────────────── adaptable ─── */
/* ─────────────────────────────────────────── quien organiza (PR 2) ─── */
.lg-solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lg-pestanas__una { display: inline-flex; align-items: center; gap: 8px; }
.lg-pestanas__marca { font-size: 11px; }
.lg-pro { letter-spacing: .06em; font-size: 10px; padding: 3px 7px; }
.lg-chip { min-height: 36px; }
.lg-chip:disabled { opacity: .5; cursor: default; }
.lg-chip .pique-icon { font-size: 16px; }

/* El formato de los comunicados (como RichTextView de la app). */
.lg-formato { display: grid; gap: 4px; overflow-wrap: anywhere; white-space: normal; }
.lg-formato p { margin: 0; }
.lg-formato__blanco { display: block; height: 8px; }
.lg-formato__titulo { font: 800 20px var(--pique-font-display); font-stretch: var(--pique-semi-wide); }
.lg-formato__subtitulo { font-weight: 800; font-size: 17px; }
.lg-formato__punto { display: flex; gap: 8px; }
.lg-formato__marca { flex: none; min-width: 14px; color: var(--pique-text-soft); font-variant-numeric: tabular-nums; }
.lg-formato__casilla { flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-top: 3px; border-radius: 5px; border: 1.5px solid var(--pique-border); font-size: 12px; font-weight: 800; }
.lg-formato__casilla--hecha { background: var(--pique-accent-container); border-color: var(--pique-accent-border); color: var(--pique-accent-text); }
.lg-formato__destacado { padding: 10px 12px; border-radius: 12px; background: var(--pique-surface-high); border-left: 3px solid var(--pique-accent-border); }
.lg-formato__enlace { color: var(--pique-accent-text); text-decoration: underline; }

/* La caja de escribir, sobre el muro. */
.lg-componer { gap: 12px; }
.lg-componer .pique-segmented, .lg-editor .pique-segmented { background: var(--pique-surface-high); justify-self: start; max-width: 100%; overflow-x: auto; }
.lg-componer__cuerpo { display: grid; gap: 12px; min-width: 0; }
.lg-componer__texto, .lg-editor__texto { width: 100%; border: 0; outline: 0; resize: none; background: transparent; color: var(--pique-text); font: 500 16px/1.45 var(--pique-font-body); field-sizing: content; min-height: 72px; max-height: 320px; }
.lg-componer__texto::placeholder, .lg-editor__texto::placeholder { color: var(--pique-text-muted); }
.lg-componer__pie { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--pique-line); }
.lg-componer__chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lg-componer__cuenta { margin-left: auto; font-size: 13px; font-variant-numeric: tabular-nums; }
.lg-componer__publicar { min-height: 44px; }
.lg-componer__grande { display: inline-flex; align-items: center; gap: 6px; justify-self: start; }
.lg-componer__opciones { display: grid; gap: 8px; }
.lg-componer__otra { display: inline-flex; align-items: center; gap: 4px; justify-self: start; }
.lg-componer__nota { display: flex; gap: 8px; align-items: flex-start; color: var(--pique-text-soft); font-size: 14px; }
.lg-componer__nota .pique-icon { flex: none; margin-top: 2px; color: var(--pique-accent-text); }
.lg-componer__fila { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.lg-componer__numero { width: 120px; font-variant-numeric: tabular-nums; }
.lg-componer__dia { min-width: 180px; color-scheme: dark light; }
.lg-componer__total { padding-bottom: 14px; color: var(--pique-text-soft); }
.lg-componer__total b { font: 800 20px var(--pique-font-display); color: var(--pique-text); }
.lg-componer__pro { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--pique-text-soft); }
.lg-componer__lista { display: grid; }
.lg-editor__formato { display: inline-flex; gap: 2px; padding: 2px; border-radius: 12px; background: var(--pique-surface-high); }
.lg-editor__herramienta { width: 36px; height: 36px; border-radius: 10px; font-size: 18px; }
.lg-editor__herramienta:hover { background: var(--pique-surface-higher); }

/* Lo dudoso, sobre la publicación. */
.lg-tarjeta__dudosa { margin-left: auto; flex: none; }
.lg-tarjeta__dudosa + .lg-menu { margin-left: 0; }
.lg-dudosa { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; background: var(--pique-pending-container); }
.lg-dudosa__icono { flex: none; color: var(--pique-pending); font-size: 20px; display: grid; }
.lg-dudosa__textos { flex: 1 1 220px; display: grid; gap: 2px; min-width: 0; font-size: 14px; }
.lg-dudosa__textos span { color: var(--pique-text-soft); overflow-wrap: anywhere; }
.lg-dudosa__botones { display: flex; gap: 8px; }
.lg-dudosa__boton { min-height: 40px; padding: 0 14px; background: var(--pique-surface-higher); }

/* Filas de «Tu liga hoy», comunicados y bonus. */
.lg-org__fila { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--pique-line); min-width: 0; }
.lg-caja__cab + .lg-org__fila, .lg-componer__lista > .lg-org__fila:first-child { border-top: 0; padding-top: 0; }
.lg-org__icono { flex: none; display: grid; place-items: center; width: 32px; height: 32px; font-size: 20px; color: var(--pique-text-soft); }
.lg-org__fila--aviso .lg-org__icono { color: var(--pique-pending); }
.lg-org__textos { flex: 1; display: grid; gap: 1px; min-width: 0; }
.lg-org__textos b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-org__textos .lg-muted { font-size: 13px; }
.lg-org__accion { flex: none; }
.lg-org__nada { font-size: 14px; }

/* La pestaña «Organizar». */
.lg-org { gap: 16px; }
.lg-org__cifras { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.lg-org__cifra { gap: 2px; padding: 14px 16px; }
.lg-org__cifra .lg-muted { font-size: 13px; }
.lg-org__valor { font: 800 26px var(--pique-font-display); font-stretch: var(--pique-wide); font-variant-numeric: tabular-nums; }
.lg-org__valor small { font-size: 15px; color: var(--pique-text-muted); }
.lg-org__valor--lima { color: var(--pique-accent-text); }
.lg-org__valor--ambar { color: var(--pique-pending); }
.lg-org__cuerpo { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 16px; align-items: start; }
.lg-org__col { display: grid; gap: 16px; min-width: 0; }
.lg-org__pendientes { display: grid; gap: 10px; }
.lg-org__pendiente { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: var(--pique-surface-high); }
.lg-org__pendiente-cab { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lg-org__pendiente-cab .lg-pts { margin-left: auto; padding: 6px 12px; font-size: 14px; }
.lg-org__marcas { display: flex; gap: 8px; font-size: 14px; color: var(--pique-text-soft); overflow-wrap: anywhere; }
.lg-org__marcas .pique-icon { flex: none; margin-top: 2px; color: var(--pique-pending); }
.lg-org__decidir { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lg-org__decidir .lg-org__accion { margin-left: auto; }
.lg-org__escribir { min-height: 40px; padding: 0 16px; text-decoration: none; }
.lg-org__buscar { width: min(220px, 50%); min-height: 40px; padding: 0 14px; }
.lg-org__buscar:focus { padding: 0 13px; }
.lg-org__tabla-caja { position: relative; overflow-x: auto; }
.lg-org__tabla th:first-child, .lg-org__casilla { width: 36px; }
.lg-org__casilla input { width: 18px; height: 18px; accent-color: var(--pique-accent); }
.lg-org__quien { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lg-org__persona { display: inline-flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; }
.lg-org__persona:hover b { text-decoration: underline; }
.lg-org__num { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.lg-org__saltos { text-align: right; white-space: nowrap; }
.lg-org__saltos .lg-enlace + .lg-enlace { margin-left: 14px; }
.lg-org__parada { color: var(--pique-pending); white-space: nowrap; }
.lg-org__semanas { display: inline-flex; gap: 4px; }
.lg-org__semana { width: 14px; height: 14px; border-radius: 4px; background: var(--pique-surface-higher); }
.lg-org__semana--si { background: var(--pique-accent-container); box-shadow: inset 0 0 0 1.5px var(--pique-accent-border); }
.lg-org__pie { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lg-org__atajos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.lg-org__atajo { gap: 4px; padding: 14px 16px; border: 0; text-align: left; cursor: pointer; color: var(--pique-text); font: inherit; }
.lg-org__atajo .pique-icon { font-size: 22px; color: var(--pique-accent-text); }
.lg-org__atajo .lg-muted { font-size: 13px; }
.lg-org__atajo:hover { background: var(--pique-surface-high); }
/* Ajustes de la liga (pestaña Organizar): interruptores, filas con su acción, las reglas fijas y el final. */
.lg-org__mas { width: 44px; text-align: right; }
.lg-org__mas .lg-menu { display: inline-block; }
.lg-org__mas .lg-menu__boton { background: none; width: 36px; height: 36px; }
.lg-aj { gap: 0; }
.lg-aj__fila { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--pique-line); min-width: 0; }
.lg-caja__cab + .lg-aj__fila { border-top: 0; padding-top: 4px; }
.lg-aj__fila .lg-interruptor { flex: 1; flex-direction: row-reverse; justify-content: space-between; }
.lg-aj__fila .lg-interruptor__textos { flex: 1; }
.lg-aj__textos .lg-muted { white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lg-aj__fila .lg-org__accion { white-space: nowrap; }
.lg-pro { flex: none; }
.lg-aj__fijas { display: grid; gap: 6px; padding: 14px; margin-top: 6px; border-radius: 16px; background: var(--pique-surface-high); font-size: 14px; color: var(--pique-text-soft); overflow-wrap: anywhere; }
.lg-aj__fijas b { display: flex; align-items: center; gap: 8px; color: var(--pique-text); }
.lg-aj__fijas .pique-icon { flex: none; font-size: 18px; color: var(--pique-text-muted); }
.lg-aj__fin { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 14px; }
.lg-aj__cancelar { color: var(--pique-rival); }
.lg-aj__campo { display: grid; gap: 6px; margin-top: 12px; }
.lg-aj__campo .lg-dialogo__campo { margin-top: 0; }
/* La ventana de equipos: una columna por equipo con su gente. */
/* Lo de en medio se desplaza; el título y los botones se quedan a la vista. */
.lg-dialogo.lg-eq { width: min(760px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); overflow: hidden; }
.lg-eq[open] { display: flex; flex-direction: column; gap: 16px; }
.lg-eq > * { flex: none; }
.lg-eq > .lg-eq__medio { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: grid; gap: 16px; align-content: start; }
.lg-eq__cab { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.lg-eq__cab h2 { margin: 0; }
.lg-eq__nota { margin: 0; font-size: 14px; }
.lg-eq__cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.lg-eq__cols[hidden], .lg-eq__sueltos[hidden] { display: none; }
.lg-eq__col { display: grid; gap: 8px; align-content: start; min-width: 0; padding: 12px; border-radius: 16px; background: var(--pique-surface-high); border-top: 3px solid var(--equipo); }
.lg-eq__col header { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.lg-eq__col header b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-eq__col .lg-menu__boton { background: none; width: 36px; height: 36px; }
.lg-eq__col .lg-menu, .lg-eq__fuera .lg-menu { display: block; min-width: 0; }
.lg-eq__persona { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 6px 8px; border: 0; border-radius: 12px; background: var(--pique-surface-higher); color: var(--pique-text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.lg-eq__persona > span:not(.pique-avatar) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-eq__persona > .pique-icon { flex: none; color: var(--pique-text-muted); }
.lg-eq__persona:hover { box-shadow: inset 0 0 0 1.5px var(--pique-border); }
.lg-eq__vacio { margin: 0; font-size: 14px; }
.lg-eq__sueltos { display: grid; gap: 8px; }
.lg-eq__fuera { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.lg-eq__pie { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.lg-eq__botones { display: flex; gap: 8px; margin-left: auto; }

/* Preguntas y confirmaciones. */
.lg-dialogo { width: min(440px, calc(100vw - 32px)); }
.lg-dialogo form { display: grid; gap: 4px; }
.lg-dialogo__campo { margin-top: 12px; width: 100%; resize: vertical; }

/* El editor grande de comunicados. */
.lg-pagina--comunicado { width: min(1100px, 100%); margin: 0 auto; }
.lg-editor { display: grid; gap: 20px; }
.lg-editor__cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lg-editor__cab h1 { font-size: clamp(24px, 3.4vw, 34px); }
.lg-editor__acciones { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lg-editor__guardado { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.lg-editor__publicar { gap: 10px; }
.lg-editor__atajo { background: color-mix(in srgb, var(--pique-on-accent) 16%, transparent); color: inherit; }
.lg-editor__cuerpo { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.lg-editor__escribir { gap: 14px; padding: 18px; }
.lg-editor__barra { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lg-editor__texto { min-height: 260px; max-height: 520px; font-size: 17px; }
.lg-editor__cuenta { justify-self: end; font-size: 13px; font-variant-numeric: tabular-nums; }
.lg-editor__cuenta--justa { color: var(--pique-pending); }
.lg-editor__encuesta { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: var(--pique-surface-high); max-width: 420px; }
.lg-editor__encuesta .pique-field { background: var(--pique-surface); }
.lg-editor__interruptores { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding-top: 16px; border-top: 1px solid var(--pique-line); }
.lg-interruptor { display: flex; align-items: center; gap: 12px; cursor: pointer; min-width: 0; }
.lg-interruptor input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lg-interruptor__carril { position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px; background: var(--pique-surface-higher); box-shadow: inset 0 0 0 1.5px var(--pique-border); }
.lg-interruptor__carril::after { content: ""; position: absolute; top: 4px; left: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--pique-text-soft); }
.lg-interruptor input:checked + .lg-interruptor__carril { background: var(--pique-accent-container); box-shadow: inset 0 0 0 1.5px var(--pique-accent-border); }
.lg-interruptor input:checked + .lg-interruptor__carril::after { transform: translateX(18px); background: var(--pique-accent); }
.lg-interruptor input:focus-visible + .lg-interruptor__carril { outline: 2px solid var(--pique-accent-text); outline-offset: 2px; }
.lg-interruptor input:disabled ~ * { opacity: .5; }
.lg-interruptor__textos { display: grid; gap: 1px; min-width: 0; }
.lg-interruptor__textos .lg-muted { font-size: 13px; }
.lg-editor__vista { position: sticky; top: 88px; display: grid; gap: 12px; min-width: 0; }
.lg-editor__notif { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 18px; background: var(--pique-surface-high); }
.lg-editor__notif--apagada { opacity: .4; }
.lg-editor__notif-icono { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--pique-accent); color: var(--pique-on-accent); font: 800 15px var(--pique-font-display); }
.lg-editor__notif-textos { display: grid; gap: 2px; min-width: 0; font-size: 13px; }
.lg-editor__notif-textos span { color: var(--pique-text-soft); overflow-wrap: anywhere; }
.lg-editor__movil { padding: 14px 12px 28px; border-radius: 32px 32px 0 0; border: 1.5px solid var(--pique-border); border-bottom: 0; background: var(--pique-background); min-height: 320px; }
.lg-editor__tarjeta { font-size: 14px; }
.lg-editor__tarjeta .lg-comunicado__texto { font-size: 15px; }
.lg-editor__opcion { cursor: default; }
/* La espera del editor, a la misma altura que lo que llega. */
.lg-editor-espera .lg-editor__cab > div:first-child { padding-top: 15px; }
.lg-editor-espera .lg-editor__escribir { min-height: 455px; align-content: start; }
.lg-editor-espera .lg-editor__notif { min-height: 64px; }

@media (prefers-reduced-motion: no-preference) {
  .lg-interruptor__carril, .lg-interruptor__carril::after { transition: transform var(--pique-motion-fast) var(--pique-ease-enter), background-color var(--pique-motion-fast) var(--pique-ease-enter); }
  .lg-dialogo[open] { animation: pique-aparece var(--pique-motion-fast) var(--pique-ease-enter); }
  .lg-dudosa { animation: pique-aparece var(--pique-motion-normal) var(--pique-ease-enter); }
}

/* ───────────────────────────────────────────── modo pantalla (PR 3) ─── */
/* Un lienzo de 1600 × 900 que se escala entero (--k) hasta llenar la tele. */
body.lg--pantalla { overflow: hidden; background: var(--pique-background); }
.lg-tv { position: fixed; inset: 0; display: grid; place-items: center; overflow: hidden; background: radial-gradient(1200px 520px at 8% -10%, color-mix(in srgb, var(--pique-accent-container) 70%, transparent), transparent 70%), var(--pique-background); }
.lg-tv--parada { position: static; min-height: 100vh; background: var(--pique-background); }
.lg-tv--parada .lg-vacio { gap: 12px; max-width: 520px; }
.lg-tv__lienzo { position: absolute; left: 50%; top: 50%; margin: -450px 0 0 -800px; width: 1600px; height: 900px; padding: 44px 52px 40px; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 32px; transform: scale(var(--k, 1)); transform-origin: center; }
.lg-tv__cab { display: flex; align-items: center; gap: 28px; min-width: 0; }
.lg-tv__marca { flex: none; display: inline-flex; align-items: center; gap: 12px; font: 800 26px var(--pique-font-display); font-stretch: var(--pique-semi-wide); }
.lg-tv__logo { width: 44px; height: 44px; border-radius: 11px; }
.lg-tv__titulos { flex: 1; min-width: 0; display: grid; gap: 6px; }
.lg-tv__titulos h1 { font: 800 50px/1.05 var(--pique-font-display); font-stretch: var(--pique-wide); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* «Hoy en <liga>» es más largo y comparte fila con el reloj: hasta dos renglones. */
.lg-tv__lienzo--hoy .lg-tv__titulos h1 { font-size: 32px; line-height: 1.12; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.lg-tv__titulos p { margin: 0; font-size: 21px; color: var(--pique-text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-tv__vistas { flex: none; background: var(--pique-surface-high); border-radius: 999px; padding: 6px; }
.lg-tv__vistas > button { min-height: 44px; padding: 0 22px; border-radius: 999px; font-size: 18px; }
.lg-tv__mandos { flex: none; display: flex; align-items: center; gap: 8px; }
.lg-tv__rotar { min-height: 44px; font-size: 16px; }
.lg-tv__mando { width: 44px; height: 44px; font-size: 20px; text-decoration: none; }
.lg-tv__reloj { flex: none; font: 800 50px var(--pique-font-display); font-stretch: var(--pique-wide); font-variant-numeric: tabular-nums; color: var(--pique-text-soft); }
.lg-tv__directo { flex: none; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--pique-text-soft); }
.lg-tv__directo i { width: 12px; height: 12px; border-radius: 50%; background: var(--pique-accent); }
.lg-tv__directo--sin i { background: var(--pique-pending); }
.lg-tv--quieta .lg-tv__mandos, .lg-tv--quieta .lg-tv__vistas > button[aria-pressed="false"] { opacity: 0; }
.lg-tv--quieta { cursor: none; }

.lg-tv__cuerpo { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 28px; min-height: 0; }
.lg-tv__col { display: grid; grid-template-rows: minmax(0, 1fr); grid-auto-rows: auto; gap: 16px; min-width: 0; min-height: 0; }
.lg-tv__lienzo--hoy .lg-tv__col { grid-template-rows: auto minmax(0, 1fr) auto; }
.lg-tv__escena { display: grid; align-items: end; padding: 28px 40px 0; border-radius: 30px 30px 0 0; background: var(--pique-surface); overflow: hidden; min-height: 0; }
.lg-tv__escena .lg-podio--xl { gap: 26px; --alto: 205px; }
.lg-tv__escena .lg-podio__nombre { font: 800 34px var(--pique-font-display); font-stretch: var(--pique-semi-wide); display: inline-flex; align-items: center; gap: 12px; }
.lg-tv__escena .lg-podio__valor { font-size: 29px; color: var(--pique-text); }
.lg-tv__escena .lg-podio__puesto--1 .lg-podio__valor { color: var(--pique-accent-text); }
.lg-tv__escena .lg-podio__lugar { font-size: 72px; line-height: 1.05; }
.lg-tv__escena .lg-podio__sub { font-size: 19px; font-weight: 700; color: var(--pique-text-soft); }
.lg-tv__escena .lg-podio__cajon { padding-top: 18px; border-radius: 26px 26px 0 0; }
.lg-tv__escena .lg-podio__corona { font-size: 62px; }
.lg-tv__escena .lg-podio__puesto { gap: 10px; }
.lg-tv__escena .lg-cara--xg { --size: 132px; }
.lg-tv__escena .lg-podio__puesto--1 .lg-cara--xg { --size: 148px; }
.lg-tv__escena--equipos .lg-equipo-caras .lg-cara { --size: 76px; }
.lg-tv__escena--equipos .lg-equipo-caras .lg-cara + .lg-cara { margin-left: -18px; }
.lg-tv__escena .lg-vacio { align-self: center; }
.lg-tv__color { flex: none; display: inline-block; width: 16px; height: 16px; border-radius: 5px; background: var(--equipo, var(--pique-accent)); }
.lg-tv__fila-textos .lg-tv__color { width: 11px; height: 11px; border-radius: 3px; margin-right: 7px; }

.lg-tv__resto { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.lg-tv__uno { display: grid; gap: 8px; padding: 14px 18px; border-radius: 18px; background: var(--pique-surface); min-width: 0; }
.lg-tv__uno-cab { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 19px; }
.lg-tv__uno-cab b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-tv__uno-puntos { font: 800 22px var(--pique-font-display); font-variant-numeric: tabular-nums; }
.lg-tv__n { flex: none; min-width: 22px; font: 800 20px var(--pique-font-display); color: var(--pique-text-muted); font-variant-numeric: tabular-nums; }
.lg-tv__reto { display: flex; align-items: center; gap: 28px; padding: 16px 24px; border-radius: 20px; background: var(--pique-surface); }
.lg-tv__reto-textos { flex: none; display: grid; gap: 4px; max-width: 46%; }
.lg-tv__reto-textos b { font: 800 22px var(--pique-font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-tv__reto-cifra { flex: none; font: 800 24px var(--pique-font-display); font-variant-numeric: tabular-nums; }
.lg-tv__pista { flex: 1; height: 16px; border-radius: 8px; min-width: 60px; }
.lg-barra--gris { background: var(--pique-text-soft); }
.lg-tv__doble { flex: 1; display: flex; gap: 3px; height: 16px; min-width: 60px; }
.lg-tv__doble i { height: 100%; border-radius: 8px; background: var(--equipo, var(--pique-accent)); flex: 1 1 0; }
.lg-tv__doble i:first-child { flex: 0 0 calc(var(--p, .5) * 100%); }
.lg-tv__equipos { display: grid; gap: 10px; }
.lg-tv__equipo { display: flex; align-items: center; gap: 16px; padding: 12px 22px; border-radius: 18px; background: var(--pique-surface); min-width: 0; }
.lg-tv__equipo .lg-tv__fila-textos b { font-size: 22px; }

.lg-tv__lado { display: flex; flex-direction: column; gap: 22px; padding: 26px 24px; border-radius: 30px; background: var(--pique-surface); min-height: 0; overflow: hidden; }
.lg-tv__seccion { display: grid; gap: 12px; min-width: 0; }
.lg-tv__kicker { font-size: 15px; letter-spacing: .12em; color: var(--pique-text-soft); }
.lg-tv__fila { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 18px; background: var(--pique-surface-high); border: 1.5px solid transparent; min-width: 0; }
.lg-tv__fila--nueva { background: var(--pique-accent-container); border-color: var(--pique-accent-border); }
.lg-tv__fila--ahora .lg-cara { box-shadow: 0 0 0 3px var(--pique-accent); }
.lg-tv__fila-textos { flex: 1; display: grid; gap: 2px; min-width: 0; }
.lg-tv__fila-textos b { font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-tv__fila-textos span { font-size: 16px; color: var(--pique-text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-tv__mas { flex: none; font: 800 22px var(--pique-font-display); color: var(--pique-accent-text); font-variant-numeric: tabular-nums; }
.lg-tv__min { flex: none; font: 800 20px var(--pique-font-display); color: var(--pique-text-soft); font-variant-numeric: tabular-nums; }
.lg-tv__mini { display: flex; align-items: center; gap: 12px; font-size: 19px; min-width: 0; }
.lg-tv__mini > b:not(.lg-tv__mas) { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-tv__nada { margin: 0; font-size: 17px; color: var(--pique-text-muted); }
.lg-tv__entra { flex: none; margin-top: auto; display: flex; align-items: center; gap: 18px; padding-top: 22px; border-top: 1px solid var(--pique-line); }
.lg-tv__qr { flex: none; width: 132px; height: 132px; }
.lg-tv__entra-textos { display: grid; gap: 6px; min-width: 0; }
.lg-tv__entra-textos b { font: 800 22px var(--pique-font-display); }
.lg-tv__entra-textos span { font-size: 17px; color: var(--pique-text-soft); }

/* Hoy */
.lg-tv__cifras { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 16px; }
.lg-tv__cifra { display: grid; align-content: center; gap: 6px; padding: 22px 26px; border-radius: 24px; background: var(--pique-surface); min-height: 190px; min-width: 0; }
.lg-tv__cifra > span { font-size: 18px; color: var(--pique-text-soft); }
.lg-tv__cifra--aro { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 22px; }
.lg-tv__cifra--bonus { background: var(--pique-accent-container); box-shadow: inset 0 0 0 1.5px var(--pique-accent-border); }
.lg-tv__cifra--bonus .lg-tv__numero { color: var(--pique-accent-text); }
.lg-tv__numero { font: 800 62px/1 var(--pique-font-display); font-stretch: var(--pique-wide); font-variant-numeric: tabular-nums; }
.lg-tv__aro-caja { position: relative; display: grid; place-items: center; width: 150px; height: 150px; }
.lg-tv__aro { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.lg-tv__aro circle { fill: none; stroke-width: 12; stroke-linecap: round; }
.lg-tv__aro-pista { stroke: var(--pique-surface-higher); }
.lg-tv__aro-valor { stroke: var(--pique-accent); }
.lg-tv__aro-dentro { position: relative; display: grid; justify-items: center; line-height: 1.1; }
.lg-tv__aro-dentro b { font: 800 40px var(--pique-font-display); font-variant-numeric: tabular-nums; }
.lg-tv__aro-dentro span { font-size: 16px; color: var(--pique-text-soft); }
.lg-tv__aro-texto { font: 800 30px/1.1 var(--pique-font-display); font-stretch: var(--pique-semi-wide); }
.lg-tv__ranking { display: grid; align-content: start; gap: 10px; min-height: 0; overflow: hidden; }
.lg-tv__puesto { display: flex; align-items: center; gap: 20px; padding: 12px 26px; border-radius: 20px; background: var(--pique-surface); border: 1.5px solid transparent; min-width: 0; }
.lg-tv__puesto--1 { border-color: var(--pique-accent-border); }
.lg-tv__puesto .lg-tv__n { font-size: 30px; min-width: 34px; }
.lg-tv__puesto--1 .lg-tv__n { color: var(--pique-accent-text); }
.lg-tv__puesto .lg-cara--g { --size: 58px; }
.lg-tv__puesto .lg-tv__fila-textos b { font: 800 26px var(--pique-font-display); }
.lg-tv__puesto .lg-tv__fila-textos span { font-size: 17px; }
.lg-tv__puesto .lg-tv__pista { flex: 0 0 250px; height: 12px; }
.lg-tv__puesto .lg-tv__mas { min-width: 110px; text-align: right; font-size: 30px; color: var(--pique-text); }
.lg-tv__puesto--1 .lg-tv__mas { color: var(--pique-accent-text); }
.lg-tv__hueco { display: grid; place-items: center; border-radius: 24px; background: var(--pique-surface); min-height: 300px; }
.lg-tv__hueco .lg-vacio h2 { font-size: 28px; }
.lg-tv__hueco .lg-vacio p { font-size: 19px; }
.lg-tv__pie { display: flex; align-items: center; gap: 16px; font-size: 19px; color: var(--pique-text-soft); min-height: 40px; }
.lg-tv__pie b { color: var(--pique-text); }

/* La espera del modo pantalla. */
.lg-tv__lienzo--espera .lg-tv__uno { min-height: 84px; align-content: center; }
.lg-tv__lienzo--espera .lg-tv__escena .lg-podio { --alto: 205px; gap: 26px; }

/* En un móvil en vertical: una columna que se desplaza, a 720 px de ancho. */
.lg-tv--alto { position: static; display: block; min-height: 100vh; overflow: visible; }
body.lg--pantalla:has(.lg-tv--alto) { overflow: auto; }
/* En vertical el lienzo mide 720 y se encoge con zoom, que sí cambia lo que ocupa. */
.lg-tv--alto .lg-tv__lienzo { width: 720px; height: auto; padding: 28px 24px 40px; position: static; margin: 0; transform: none; zoom: var(--k, 1); }
.lg-tv--alto .lg-tv__cab { flex-wrap: wrap; gap: 16px; }
.lg-tv--alto .lg-tv__titulos { flex: 1 1 100%; order: 3; }
.lg-tv--alto .lg-tv__titulos h1 { font-size: 40px; white-space: normal; }
.lg-tv--alto .lg-tv__marca { margin-right: auto; }
.lg-tv--alto .lg-tv__vistas { order: 4; }
.lg-tv--alto .lg-tv__mandos { order: 5; margin-left: auto; }
.lg-tv--alto .lg-tv__reloj, .lg-tv--alto .lg-tv__directo { order: 2; font-size: 20px; }
.lg-tv--alto .lg-tv__cuerpo { grid-template-columns: minmax(0, 1fr); }
.lg-tv--alto .lg-tv__escena { min-height: 520px; padding-inline: 16px; }
.lg-tv--alto .lg-tv__escena .lg-podio__nombre { font-size: 24px; }
.lg-tv--alto .lg-tv__escena .lg-cara--xg, .lg-tv--alto .lg-tv__escena .lg-podio__puesto--1 .lg-cara--xg { --size: 104px; }
.lg-tv--alto .lg-tv__escena--equipos .lg-equipo-caras .lg-cara { --size: 52px; }
.lg-tv--alto .lg-tv__escena--equipos .lg-podio__nombre { font-size: 20px; white-space: normal; text-align: center; gap: 8px; }
.lg-tv--alto .lg-tv__resto { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lg-tv--alto .lg-tv__cifras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lg-tv--alto .lg-tv__cifra--aro { grid-column: 1 / -1; }
.lg-tv--alto .lg-tv__puesto .lg-tv__pista { display: none; }
.lg-tv--alto .lg-tv__reto { flex-wrap: wrap; }
.lg-tv--alto .lg-tv__reto-textos { max-width: 100%; flex: 1 1 100%; }
.lg-tv--alto.lg-tv--quieta .lg-tv__mandos, .lg-tv--alto.lg-tv--quieta .lg-tv__vistas > button[aria-pressed="false"] { opacity: 1; }
.lg-tv--alto.lg-tv--quieta { cursor: auto; }

/* Al pasar la tarjeta a otra liga, lo que cambia (liga, puntos, reacciones y conversación) entra suave, en cascada corta. */
@media (prefers-reduced-motion: no-preference) {
  .lg-tarjeta--cambia :is(.lg-tarjeta__liga, .lg-pts, .lg-comunicado__kicker .lg-muted) { animation: lg-cambia-liga var(--pique-motion-normal) var(--pique-ease-enter) backwards; }
  .lg-tarjeta--cambia :is(.lg-reacciones, .lg-encuesta) { animation: lg-cambia-sube var(--pique-motion-normal) var(--pique-ease-enter) backwards; }
  .lg-tarjeta--cambia .lg-tarjeta__conversacion { animation: lg-cambia-sube var(--pique-motion-slow) var(--pique-ease-enter) 60ms backwards; }
}
@keyframes lg-cambia-liga { from { opacity: 0; } }
@keyframes lg-cambia-sube { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: no-preference) {
  .lg-tv__mandos, .lg-tv__vistas > button { transition: opacity var(--pique-motion-slow) var(--pique-ease-exit); }
  .lg-tv__lienzo--entra .lg-tv__cuerpo { animation: lg-tv-entra var(--pique-motion-slow) var(--pique-ease-enter); }
  .lg-tv__fila--nueva { animation: lg-tv-nueva var(--pique-motion-slow) var(--pique-ease-enter); }
  .lg-tv__aro-valor { transition: stroke-dasharray var(--pique-motion-slow) var(--pique-ease-enter); }
}
@keyframes lg-tv-entra { from { opacity: 0; transform: translateY(10px); } }
@keyframes lg-tv-nueva { from { opacity: 0; transform: translateX(16px); } }

@media (max-width: 1180px) {
  .lg-pagina--inicio, .lg-pagina--inicio > .pique-espera { grid-template-columns: minmax(0, 560px) 300px; }
  .lg-inicio__izq { display: none; }
}
@media (max-width: 960px) {
  .lg-arriba { gap: 12px; padding: 0 16px; }
  .lg-nav a { padding: 0 12px; }
  .lg-pagina--inicio, .lg-pagina--inicio > .pique-espera { grid-template-columns: minmax(0, 600px); }
  .lg-inicio__der { position: static; order: -1; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .lg-inicio__der > .lg-caja:not(.lg-duelos) { display: none; }
  .lg-liga__cuerpo, .lg-liga__cuerpo--marcador { grid-template-columns: minmax(0, 1fr); width: calc(100% - 32px); }
  .lg-liga__lado { position: static; }
  .lg-liga__cuerpo--muro .lg-liga__lado { order: -1; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .lg-liga__cuerpo--muro .lg-caja--fotos { display: none; }
  .lg-liga__cuerpo--gente .lg-liga__lado { order: -1; }
  .lg-hero__dentro, .lg-hero > .lg-pestanas, .lg-hero > .lg-juego { width: calc(100% - 32px); }
  .lg-juego__mitad b { font-size: 15px; }
  .lg-juego__mitad { padding: 10px 12px; }
  .lg-semana__cuerpo { grid-template-columns: minmax(0, 1fr); }
  .lg-abierta__caja { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 42%) minmax(0, 1fr); }
  .lg-visor { grid-template-columns: auto minmax(0, 420px) auto; justify-content: center; }
  .lg-visor__lado { display: none; }
}
@media (max-width: 700px) {
  /* En el móvil el podio va arriba, después el muro y al final el resto de cajas. */
  .lg-liga__cuerpo--muro .lg-liga__principal, .lg-liga__cuerpo--muro .lg-liga__lado { display: contents; }
  .lg-liga__cuerpo--muro .lg-liga__principal > * { order: 1; }
  .lg-liga__cuerpo--muro .lg-liga__lado > * { order: 2; }
  .lg-liga__cuerpo--muro .lg-liga__lado > .lg-caja--podio { order: 0; }
  .lg-liga__cuerpo--muro { gap: 20px; }
  .lg-marca span { display: none; }
  .lg-nav a span { display: none; }
  .lg-vuelta { display: none; }
  .lg-vuelta + .lg-cuenta { margin-left: auto; }
  .lg-cuenta__vuelta { display: flex !important; }
  .lg-nav a .pique-icon { display: inline-block; }
  .lg-nav a { width: 40px; padding: 0; justify-content: center; }
  .lg-buscar { flex: 1 1 auto; }
  .lg-buscar kbd { display: none; }
  .lg-buscar__lista { position: fixed; top: 60px; left: 8px; right: 8px; min-width: 0; }
  .lg-pagina { padding: 16px 16px 48px; }
  .lg-pagina--liga { padding: 0 0 48px; }
  .lg-hero__dentro { padding-top: 28px; }
  .lg-hero__caras { display: none; }
  .lg-tabla__entrenos, .lg-tabla__cambio { display: none; }
  .lg-tabla__persona .lg-cara { --size: 36px; }
  .lg-tabla td, .lg-tabla th { padding: 10px 6px; }
  .lg-tabla__puntos { font-size: 15px; }
  .lg-cifra-grande__valor { font-size: 32px; }
  .lg-cara-a-cara__fila { grid-template-columns: 54px 1fr 1fr 54px; }
  .lg-cara-a-cara__fila > .lg-muted { grid-column: 1 / -1; grid-row: 1; text-align: left; }
  .lg-constancia__cuerpo { grid-template-columns: minmax(0, 1fr); }
  .lg-ficha__cab .lg-cara--xg { --size: 64px; }
  .lg-ficha__titulos h2 { font-size: 22px; }
  .lg-factores { grid-template-columns: minmax(0, 1fr); }
  .lg-semana__nav { width: 100%; justify-content: space-between; }
  .lg-semana__ir, .lg-semana__hueco { padding: 9px 8px; font-size: 13px; }
  .lg-semana__grande { padding: 18px 12px; }
  .lg-podio--m { --alto: 110px; gap: 8px; }
  .lg-podio--m .lg-cara--g { --size: 52px; }
  .lg-podio--m .lg-podio__lugar { font-size: 24px; }
  .lg-podio--m .lg-podio__nombre { font-size: 15px; }
  .lg-cifras { gap: 8px; }
  .lg-cifra { padding: 12px 10px; }
  .lg-cifra b { font-size: 21px; }
  .lg-capa { padding: 0; }
  .lg-capa--publicacion { padding: 0; }
  .lg-abierta { grid-template-columns: minmax(0, 1fr); }
  .lg-abierta__caja { height: 100%; border-radius: 0; }
  .lg-visor { grid-template-columns: minmax(0, 1fr); height: 100%; max-height: none; }
  .lg-visor__flecha { display: none; }
  .lg-mom { height: 100%; border-radius: 0; }
  .lg-visor__ayuda { display: none; }
  .lg-listas__rejilla, .lg-listas__rejilla--gente { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 380px) {
  .lg-arriba { gap: 8px; padding: 0 10px; }
  .lg-nav a { width: 36px; }
  .lg-hero__acciones { width: 100%; }
}
@media (max-width: 960px) {
  .lg-org__cuerpo, .lg-editor__cuerpo { grid-template-columns: minmax(0, 1fr); }
  .lg-editor__vista { position: static; }
}
@media (max-width: 700px) {
  .lg-org__cifras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg-org__equipo { display: none; }
  .lg-aj__fila { flex-wrap: wrap; }
  .lg-aj__fila .lg-org__textos { flex: 1 1 60%; }
  .lg-eq__cols, .lg-eq__fuera { grid-template-columns: minmax(0, 1fr); }
  .lg-eq__pie .pique-button { flex: 1 1 auto; }
  .lg-org__tabla td, .lg-org__tabla th { white-space: nowrap; }
  .lg-componer .pique-segmented { justify-self: stretch; }
  .lg-componer .pique-segmented button { flex: 1; padding-inline: 8px; font-size: 14px; }
  .lg-componer__publicar { flex: 1 1 100%; }
  .lg-componer__cuenta { margin-left: 0; }
  .lg-editor__texto { min-height: 180px; }
  .lg-editor__acciones { width: 100%; }
  .lg-editor__publicar { flex: 1; }
  .lg-editor__atajo { display: none; }
  .lg-dudosa__botones { width: 100%; }
  .lg-dudosa__boton { flex: 1; }
}

/* ── Repaso de movimiento (Cristo, 19-11-2026): lo que llega, entra; lo que se toca, responde ── */
@media (prefers-reduced-motion: no-preference) {
  .lg-entra { animation: lg-entra var(--pique-motion-normal) var(--pique-ease-enter); }
  .lg-comentario--nuevo { animation: lg-comentario-entra var(--pique-motion-normal) var(--pique-ease-enter); }
  .lg-comentario--nuevo .lg-comentario__texto { border-radius: 10px; box-shadow: 0 0 0 6px transparent; animation: lg-comentario-realce var(--pique-motion-highlight) var(--pique-ease-exit) var(--pique-motion-fast) backwards; }
  .lg-comentar__enviar:not([hidden]) { animation: pique-abre var(--pique-motion-fast) var(--pique-ease-enter); }
  .lg-comentar__enviar, .lg-reaccion, .lg-momento__circulo, .lg-masligas, .lg-otrasligas__una { transition: transform var(--pique-motion-fast) var(--pique-ease-enter), background-color var(--pique-motion-fast), border-color var(--pique-motion-fast); }
  .lg-comentar__enviar:active, .lg-reaccion:active, .lg-momento:active .lg-momento__circulo, .lg-masligas:active { transform: scale(.94); }
  .lg-reaccion--nueva { animation: pique-abre var(--pique-motion-normal) var(--pique-ease-enter); }
  .lg-reaccion--salta .lg-reaccion__emoji { animation: lg-reaccion-toque var(--pique-motion-normal) var(--pique-ease-enter); }
  .lg-reaccion--salta .lg-reaccion__n { animation: lg-cifra-entra var(--pique-motion-normal) var(--pique-ease-enter); }
  .lg-mencionar:not([hidden]), .lg-abierta__respondiendo:not([hidden]) { animation: lg-cifra-entra var(--pique-motion-fast) var(--pique-ease-enter); }
  .lg-tarjeta--llega { animation: pique-sube var(--pique-motion-slow) var(--pique-ease-enter) calc(var(--i, 0) * 60ms) backwards; }
  .lg-otrasligas__una .pique-icon:last-child { transition: transform var(--pique-motion-fast) var(--pique-ease-enter); }
  .lg-otrasligas__una:hover .pique-icon:last-child { transform: translateX(3px); }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .lg-momento:hover .lg-momento__circulo { transform: scale(1.05); }
}
@keyframes lg-entra { from { opacity: 0; transform: translateY(6px); } }
@keyframes lg-comentario-entra { from { opacity: 0; transform: translateY(10px); } }
@keyframes lg-comentario-realce { from { background-color: var(--pique-accent-container); box-shadow: 0 0 0 6px var(--pique-accent-container); } }
@keyframes lg-reaccion-toque { from { transform: scale(1.45); } }
@keyframes lg-cifra-entra { from { opacity: 0; transform: translateY(4px); } }

/* Bucle con motivo (CLAUDE.md, «Bucles»): el punto de «En directo» del modo pantalla late despacio porque dice que está vivo. Sin conexión o con «reducir movimiento», quieto. */
@media (prefers-reduced-motion: no-preference) {
  .lg-tv__directo:not(.lg-tv__directo--sin) i { animation: lg-late 2s ease-out infinite; }
}
@keyframes lg-late { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pique-accent) 80%, transparent); } 75%, to { box-shadow: 0 0 0 12px transparent; } }

/* Más bucles con motivo: el primer momento sin ver llama, el bonus de hoy respira mientras dura y la llama de la racha se mueve. */
@media (prefers-reduced-motion: no-preference) {
  .lg-momento--late .lg-momento__circulo { animation: lg-late-aro 2s ease-out infinite; }
  .lg-bonus--hoy .lg-bonus__x { animation: lg-respira 1.8s ease-in-out infinite alternate; }
  .lg-tv__cifra--bonus { animation: lg-respira-tv 1.8s ease-in-out infinite alternate; }
  .lg-mom__llama { transform-origin: 50% 90%; animation: lg-llama 1.4s ease-in-out infinite alternate; }
}
@keyframes lg-late-aro {
  from { box-shadow: 0 0 0 2px var(--pique-background), 0 0 0 4px var(--pique-accent), 0 0 0 4px color-mix(in srgb, var(--pique-accent) 80%, transparent); }
  75%, to { box-shadow: 0 0 0 2px var(--pique-background), 0 0 0 4px var(--pique-accent), 0 0 0 15px transparent; }
}
@keyframes lg-respira { from { box-shadow: 0 0 0 0 transparent; } to { box-shadow: 0 0 22px 4px color-mix(in srgb, var(--pique-accent) 60%, transparent); } }
@keyframes lg-respira-tv { from { box-shadow: inset 0 0 0 1.5px var(--pique-accent-border), 0 0 0 0 transparent; } to { box-shadow: inset 0 0 0 1.5px var(--pique-accent-border), 0 0 28px 2px color-mix(in srgb, var(--pique-accent) 40%, transparent); } }
@keyframes lg-llama { from { transform: scale(.94) rotate(-3deg); } to { transform: scale(1.06) rotate(3deg); } }

/* La fila de momentos que no cabe: difuminado por el lado que sigue, flechas donde hay ratón y arrastre. */
.lg-momentos-caja { position: relative; min-width: 0; }
.lg-momentos--der { -webkit-mask-image: linear-gradient(to left, transparent 0, #000 56px); mask-image: linear-gradient(to left, transparent 0, #000 56px); }
.lg-momentos--izq { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 56px); mask-image: linear-gradient(to right, transparent 0, #000 56px); }
.lg-momentos--izq.lg-momentos--der { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%); }
.lg-momentos--arrastra { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.lg-momentos--arrastra .lg-momento { pointer-events: none; }
.lg-momentos__ir { position: absolute; top: 18px; z-index: 1; display: none; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--pique-border); border-radius: 50%; background: var(--pique-surface-high); color: var(--pique-text); cursor: pointer; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .7); }
.lg-momentos__ir--izq { left: -8px; }
.lg-momentos__ir--der { right: -8px; }
.lg-momentos__ir .pique-icon { width: 20px; height: 20px; font-size: 20px; }
@media (hover: hover) and (pointer: fine) { .lg-momentos__ir:not([hidden]) { display: grid; } }
@media (prefers-reduced-motion: no-preference) {
  .lg-momentos__ir { transition: transform var(--pique-motion-fast) var(--pique-ease-enter), background-color var(--pique-motion-fast); animation: pique-aparece var(--pique-motion-fast) var(--pique-ease-enter); }
  .lg-momentos__ir:active { transform: scale(.94); }
}

/* ── El recorrido de una salida (recorrido.js), como RouteHero en la app ── */
/* El mapa es siempre oscuro, también en el tema claro: los colores del trazado
   son los de la app en oscuro (azul de salida, lima de meta). */
.lg-recorrido { --rc-salida: #7CC8FF; --rc-meta: #C6F432; position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #14171c; color: #fff; isolation: isolate; }
.lg-recorrido__mapa { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; color: inherit; cursor: pointer; text-align: left;
  background: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 100% 12.5%, linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 7.03% 100%, #14171c; }
div.lg-recorrido__mapa { cursor: default; }
.lg-recorrido__escena { position: absolute; inset: 0; }
.lg-recorrido__escena[hidden], .lg-recorrido__fotos[hidden], .lg-recorrido__puntos[hidden], .lg-recorrido__ir[hidden] { display: none; }
.lg-recorrido__teselas, .lg-recorrido__trazado { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.lg-recorrido__halo { fill: none; stroke: var(--rc-meta); stroke-opacity: .22; stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.lg-recorrido__linea { fill: none; stroke: color-mix(in srgb, var(--rc-meta) calc(var(--k, 1) * 100%), var(--rc-salida)); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.lg-recorrido__salida { fill: #14171c; stroke: var(--rc-salida); stroke-width: 3; }
.lg-recorrido__meta { fill: var(--rc-meta); stroke: #fff; stroke-width: 2.5; }
.lg-recorrido__pines { position: absolute; inset: 0; pointer-events: none; }
.lg-recorrido__pin { position: absolute; left: var(--x); top: var(--y); width: 40px; height: 40px; margin: -20px 0 0 -20px; padding: 0; border: 0; border-radius: 50%; overflow: hidden; cursor: pointer; pointer-events: auto; background: #14171c; box-shadow: 0 0 0 2.5px var(--rc-meta), 0 6px 14px rgba(0, 0, 0, .55); }
.lg-recorrido__pin img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lg-recorrido__credito { position: absolute; right: 8px; top: 8px; z-index: 2; padding: 2px 6px; border-radius: 6px; background: rgba(0, 0, 0, .45); font-size: 10px; color: rgba(255, 255, 255, .8); pointer-events: none; }
.lg-recorrido--foto .lg-recorrido__credito { display: none; }
.lg-recorrido__corto { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 0 24px 48px; font-size: 14px; color: rgba(255, 255, 255, .7); text-align: center; }
.lg-recorrido__corto .pique-icon { width: 32px; height: 32px; font-size: 32px; color: var(--rc-salida); }
.lg-recorrido__fotos { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: #000; }
.lg-recorrido__fotos::-webkit-scrollbar { display: none; }
.lg-recorrido__foto { position: relative; flex: none; width: 100%; height: 100%; padding: 0; border: 0; background: #000; color: inherit; cursor: pointer; scroll-snap-align: start; scroll-snap-stop: always; }
div.lg-recorrido__foto { cursor: default; }
.lg-recorrido__foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lg-recorrido__km { position: absolute; right: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .55); font-size: 12px; font-weight: 700; }
.lg-recorrido__chapas { position: absolute; left: 12px; top: 12px; z-index: 2; display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(8px); }
.lg-recorrido__chapa { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: rgba(255, 255, 255, .8); font: 600 13px var(--pique-font-body, inherit); cursor: pointer; }
.lg-recorrido__chapa .pique-icon { width: 16px; height: 16px; font-size: 16px; }
.lg-recorrido__chapa[aria-pressed="true"] { background: rgba(255, 255, 255, .2); color: #fff; }
.lg-recorrido__puntos { position: absolute; left: 0; right: 0; top: 22px; z-index: 1; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.lg-recorrido__puntos i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.lg-recorrido__puntos .lg-recorrido__punto--ahora { background: #fff; }
.lg-recorrido__ir { position: absolute; top: 50%; z-index: 2; display: none; place-items: center; width: 36px; height: 36px; margin-top: -18px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; }
.lg-recorrido__ir--izq { left: 10px; }
.lg-recorrido__ir--der { right: 10px; }
@media (hover: hover) and (pointer: fine) { .lg-recorrido__ir:not([hidden]) { display: grid; } }
.lg-recorrido > .lg-tarjeta__sobre { z-index: 1; pointer-events: none; }
.lg-recorrido--foto .lg-recorrido__km { top: auto; bottom: 14px; right: auto; left: 50%; transform: translateX(-50%); }
/* En la publicación abierta ocupa todo el lado. */
.lg-abierta__foto--recorrido .lg-recorrido { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.lg-abierta__foto--recorrido .lg-recorrido__foto img { object-fit: contain; }
.lg-abierta__foto--recorrido .lg-abierta__sobre { z-index: 1; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .lg-recorrido__linea { stroke-dasharray: 1; stroke-dashoffset: 1; animation: lg-dibuja 140ms linear calc(200ms + var(--i, 0) * 130ms) forwards; }
  .lg-recorrido__meta, .lg-recorrido__pin { animation: pique-abre var(--pique-motion-normal) var(--pique-ease-enter) 1250ms backwards; }
  .lg-recorrido__pin { transition: transform var(--pique-motion-fast) var(--pique-ease-enter); }
  .lg-recorrido__teselas { transition: opacity var(--pique-motion-normal) var(--pique-ease-enter); }
  .lg-recorrido--espera .lg-recorrido__teselas { opacity: 0; }
  .lg-recorrido--quieto :is(.lg-recorrido__linea, .lg-recorrido__meta, .lg-recorrido__pin) { animation: none; stroke-dashoffset: 0; }
  .lg-recorrido--espera :is(.lg-recorrido__linea, .lg-recorrido__meta, .lg-recorrido__pin) { animation-play-state: paused; }
  .lg-recorrido__pin:active { transform: scale(.94); }
  .lg-recorrido__chapa { transition: background-color var(--pique-motion-fast), color var(--pique-motion-fast); }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) { .lg-recorrido__pin:hover { transform: scale(1.12); z-index: 1; } }

/* ─────────────────────────── Amigos y su chat (PIQ-564, PIQ-713, ADR 0110) ───
   Tres columnas en ancho (lista | chat | perfil), dos sin el perfil y una en el
   móvil, con el chat a pantalla completa. Gimnasio en lima, lo demás en azul. */
.lg-pagina--amigos { padding: 0; }
.lg-am, .lg-pagina--amigos > .pique-espera { --lg-otra: var(--pique-mobility); display: grid; grid-template-columns: 340px minmax(0, 1fr) 320px; height: calc(100dvh - 64px); width: min(1440px, 100%); margin: 0 auto; }
.lg-am__lista { display: flex; flex-direction: column; gap: 4px; min-height: 0; overflow-y: auto; padding: 20px 12px 24px; border-right: 1px solid var(--pique-line); }
.lg-am__cab { display: flex; align-items: center; gap: 4px; padding: 0 8px 8px; }
.lg-am__cab h1 { font: 800 24px var(--pique-font-display); font-stretch: var(--pique-wide); margin-right: auto; }
.lg-am__anadir { min-height: 40px; padding: 0 14px; font-size: 14px; }
.lg-am__puesto { padding: 0 8px 8px; color: var(--pique-text-soft); font-weight: 600; font-size: 14px; }
.lg-am__titulo { padding: 12px 8px 6px; }
.lg-am__solicitudes { display: grid; gap: 8px; margin: 4px 0 8px; padding: 14px; border-radius: var(--pique-radius-card); background: var(--pique-surface); }
.lg-am__solicitud { display: flex; align-items: center; gap: 10px; }
.lg-am__textos { display: grid; flex: 1; min-width: 0; text-align: left; }
.lg-am__textos > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-am__textos > span { color: var(--pique-text-muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-am__filas { display: grid; gap: 2px; }
.lg-am__fila { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 16px; text-decoration: none; }
.lg-am__fila:hover { background: var(--pique-surface); }
.lg-am__fila--sel, .lg-am__fila--sel:hover { background: var(--pique-surface-high); }
.lg-am__fila .lg-cara { --size: 48px; flex: none; }
.lg-am__fila .pique-espera__lineas { flex: 1; }
.lg-am__fila > .pique-hueso--circulo { width: 48px; height: 48px; }
.lg-am__nombre { display: flex; align-items: baseline; gap: 8px; color: var(--pique-text) !important; font-size: 15px !important; }
.lg-am__nombre b { overflow: hidden; text-overflow: ellipsis; }
.lg-am__nombre time { margin-left: auto; font-size: 12px; color: var(--pique-text-muted); font-weight: 500; }
.lg-am__racha { display: inline-flex; align-items: center; gap: 2px; color: var(--pique-accent-text); font: 800 13px var(--pique-font-display); }
.lg-am__racha .pique-icon { width: 14px; height: 14px; }
.lg-am__linea { display: flex !important; align-items: center; gap: 8px; }
.lg-am__semana { display: inline-flex; gap: 3px; flex: none; }
.lg-am__dia { width: 11px; height: 11px; border-radius: 3.5px; background: var(--pique-surface-higher); }
.lg-am__dia--futuro { background: none; box-shadow: inset 0 0 0 1px var(--pique-border); }
.lg-am__dia--gym { background: color-mix(in srgb, var(--pique-accent) 70%, var(--pique-surface)); }
.lg-am__dia--otra { background: color-mix(in srgb, var(--lg-otra) 70%, var(--pique-surface)); }
.lg-am__previa { color: var(--pique-text-soft) !important; }
.lg-am__fila--nuevo .lg-am__previa { color: var(--pique-text) !important; font-weight: 700; }
.lg-am__sinleer { flex: none; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: grid; place-items: center; background: var(--pique-accent); color: var(--pique-on-accent); font: 800 12px var(--pique-font-body); }
.lg-nav a { position: relative; }
.lg-nav__sinleer { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: grid; place-items: center; background: var(--pique-accent); color: var(--pique-on-accent); font: 800 11px var(--pique-font-body); }

.lg-am__chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.lg-am__chat > .lg-vacio { margin: auto; }
.lg-chat__cab { display: flex; align-items: center; gap: 6px; height: 68px; padding: 0 16px 0 20px; border-bottom: 1px solid var(--pique-line); flex: none; }
.lg-chat__volver { display: none; }
.lg-chat__quien { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-decoration: none; border-radius: 12px; }
.lg-chat__quien b { font-size: 17px; }
.lg-chat__cab .lg-menu__boton { background: none; }
.lg-chat__hilo { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 20px max(20px, calc((100% - 720px) / 2)); }
.lg-chat__hilo > :first-child { margin-top: auto; }
.lg-chat__dia { align-self: center; margin: 10px 0 2px; color: var(--pique-text-soft); font-size: 13px; }
.lg-chat__dia::first-letter { text-transform: uppercase; }
.lg-burbuja { display: grid; gap: 4px; justify-items: start; max-width: 100%; }
.lg-burbuja--mia { justify-items: end; }
.lg-burbuja__fila { display: flex; align-items: center; gap: 6px; max-width: min(78%, 520px); }
.lg-burbuja--mia .lg-burbuja__fila { flex-direction: row-reverse; }
.lg-burbuja__globo { display: grid; gap: 8px; padding: 11px 15px; border-radius: 20px 20px 20px 6px; background: var(--pique-surface); font-size: 15.5px; line-height: 1.4; min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.lg-burbuja--mia .lg-burbuja__globo { border-radius: 20px 20px 6px 20px; background: var(--pique-surface-higher); }
.lg-burbuja--medio .lg-burbuja__globo { padding: 5px; }
.lg-burbuja--medio .lg-burbuja__globo p { padding: 2px 10px 6px; }
.lg-burbuja__acciones { display: flex; opacity: 0; flex: none; }
.lg-burbuja__acciones .pique-icon-button, .lg-burbuja__acciones .lg-menu__boton { width: 32px; height: 32px; background: none; color: var(--pique-text-soft); }
.lg-burbuja__acciones .pique-icon { width: 18px; height: 18px; }
.lg-burbuja:hover .lg-burbuja__acciones, .lg-burbuja:focus-within .lg-burbuja__acciones, .lg-burbuja--ver .lg-burbuja__acciones { opacity: 1; }
.lg-burbuja__pie { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--pique-text-muted); }
.lg-burbuja__visto { display: inline-flex; color: var(--pique-text-muted); }
.lg-burbuja__visto .pique-icon { width: 16px; height: 16px; }
.lg-burbuja__visto--leido { color: var(--pique-accent-text); }
.lg-burbuja__cita { display: grid; padding: 6px 10px; border-left: 3px solid var(--pique-accent-text); border-radius: 8px; background: color-mix(in srgb, var(--pique-background) 45%, transparent); font-size: 13px; }
.lg-burbuja__cita span { color: var(--pique-text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-burbuja__ido { display: inline-flex; align-items: center; gap: 6px; color: var(--pique-text-muted); font-style: italic; }
.lg-burbuja__reacciones { display: flex; gap: 4px; margin-top: -10px; padding: 0 8px; z-index: 1; }
.lg-reaccion--chica { height: 26px; min-width: 0; padding: 0 8px; font-size: 13px; box-shadow: 0 0 0 2px var(--pique-background); }
.lg-voz { display: flex; align-items: center; gap: 10px; min-width: 250px; white-space: normal; }
.lg-voz__tocar { width: 38px; height: 38px; flex: none; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--pique-surface-higher); color: var(--pique-accent-text); cursor: pointer; }
.lg-voz__onda { display: flex; align-items: center; gap: 2px; height: 30px; flex: 1; }
.lg-voz__onda i { flex: 1; min-width: 2px; max-width: 3px; height: calc(var(--alto, 8) * 1px); border-radius: 2px; background: var(--pique-text-muted); }
.lg-voz__onda i.lg-voz__hecha { background: var(--pique-accent-text); }
.lg-voz__dura { font-size: 13px; color: var(--pique-text-soft); font-variant-numeric: tabular-nums; }
.lg-voz__nueva { width: 8px; height: 8px; border-radius: 50%; background: var(--pique-accent); }
.lg-foto { position: relative; display: block; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: var(--pique-surface-high); cursor: zoom-in; width: 300px; aspect-ratio: 4 / 3; }
.lg-foto--alta { width: 210px; aspect-ratio: 3 / 4; }
.lg-foto img, .lg-foto video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.lg-foto__play { position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; }
.lg-foto__play .pique-icon { width: 30px; height: 30px; }
.lg-foto__dura { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; font-weight: 600; }
.lg-burbuja--tarjeta { max-width: min(78%, 360px); width: 100%; }
.lg-plan { display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; width: 100%; padding: 16px; border: 1px solid var(--pique-border); border-radius: 20px; background: var(--pique-surface); }
.lg-plan__icono { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--pique-accent-container); color: var(--pique-accent-text); }
.lg-plan__icono--otra { background: color-mix(in srgb, var(--lg-otra) 18%, transparent); color: var(--lg-otra); }
.lg-plan__textos { display: grid; min-width: 0; }
.lg-plan__kicker { font-size: 13px; font-weight: 700; color: var(--pique-text-soft); }
.lg-plan__textos b { font: 800 18px var(--pique-font-display); }
.lg-plan__pie { grid-column: 1 / -1; display: flex; gap: 8px; }
.lg-chat__pie { flex: none; padding: 10px max(16px, calc((100% - 720px) / 2)) 16px; border-top: 1px solid var(--pique-line); display: grid; gap: 8px; }
.lg-chat__escribir { display: flex; align-items: flex-end; gap: 8px; }
.lg-chat__mas-caja .lg-menu__lista { right: auto; left: 0; top: auto; bottom: calc(100% + 6px); min-width: 250px; }
.lg-chat__mas { width: 48px; height: 48px; }
.lg-chat__mas .pique-icon { width: 26px; height: 26px; }
.lg-chat__campo { flex: 1; min-width: 0; min-height: 48px; max-height: 160px; padding: 12px 18px; border: 1px solid var(--pique-border); border-radius: 24px; background: var(--pique-surface); color: var(--pique-text); font: inherit; font-size: 15.5px; line-height: 1.4; resize: none; outline: none; }
.lg-chat__campo:focus { border-color: var(--pique-accent-text); }
.lg-chat__enviar { width: 48px; height: 48px; flex: none; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--pique-accent); color: var(--pique-on-accent); cursor: pointer; }
.lg-chat__respondiendo { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 14px; background: var(--pique-surface); border-left: 3px solid var(--pique-accent-text); }
.lg-chat__respondiendo[hidden] { display: none; }
.lg-chat__cerrado { text-align: center; color: var(--pique-text-soft); padding: 8px; }
.lg-chat__vacio { margin: auto; display: grid; justify-items: center; gap: 8px; text-align: center; }
.lg-chat__vacio h2 { font-size: 20px; }
.lg-chat__frases { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }

.lg-am__perfil { display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow-y: auto; padding: 28px 20px 24px; border-left: 1px solid var(--pique-line); }
.lg-perfil__arriba { display: none; }
.lg-perfil__cab { display: grid; justify-items: center; gap: 4px; text-align: center; }
.lg-perfil__cab h2 { font: 800 24px var(--pique-font-display); font-stretch: var(--pique-wide); margin-top: 8px; }
.lg-perfil__acciones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lg-perfil__acciones > .pique-hueso:first-child { grid-column: 1 / -1; }
.lg-perfil__acciones > .pique-hueso { width: 100%; }
.lg-perfil__acciones .pique-button { min-height: 44px; font-size: 15px; padding: 0 12px; text-decoration: none; }
.lg-perfil__ancho, .lg-perfil__mensaje { grid-column: 1 / -1; }
.lg-perfil__caja { gap: 12px; padding: 16px; }
.lg-perfil__numeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lg-perfil__numeros span { display: grid; font-size: 12.5px; color: var(--pique-text-soft); }
.lg-perfil__numeros b { font: 800 26px var(--pique-font-display); font-stretch: var(--pique-wide); color: var(--pique-text); }
.lg-perfil__numeros b.lg-perfil__lima { color: var(--pique-accent-text); }
.lg-perfil__semanas { display: grid; gap: 5px; }
.lg-am__semana--g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.lg-am__semana--g .lg-am__dia { width: auto; height: 22px; border-radius: 7px; }
.lg-perfil__letras { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; text-align: center; font-size: 11px; color: var(--pique-text-muted); }
.lg-perfil__letras i { font-style: normal; }
.lg-perfil__leyenda { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--pique-text-soft); }
.lg-perfil__leyenda i:not(:first-child) { margin-left: 10px; }
.lg-perfil__oculto { display: flex; grid-template-columns: none; align-items: center; gap: 12px; padding: 14px 16px; }
.lg-perfil__candado { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--pique-surface-higher); color: var(--pique-text-soft); }
.lg-perfil__liga { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--pique-text-soft); }
.lg-am__dialogo { width: min(480px, calc(100vw - 32px)); max-width: none; display: grid; gap: 18px; }
.lg-am__dialogo section { display: grid; gap: 8px; }
.lg-am__codigo { padding: 16px; border-radius: 18px; background: var(--pique-surface-high); justify-items: start; }
.lg-am__codigo-letras { font: 800 30px var(--pique-font-display); letter-spacing: .14em; color: var(--pique-text) !important; }
.lg-am__buscar { display: flex; gap: 8px; }
.lg-am__buscar .pique-field { flex: 1; min-width: 0; }
.lg-am__sugeridos { display: grid; gap: 10px; }

@media (max-width: 1180px) {
  .lg-am, .lg-pagina--amigos > .pique-espera { grid-template-columns: 300px minmax(0, 1fr); }
  .lg-am__perfil { display: none; }
}
@media (max-width: 960px) {
  .lg-am, .lg-pagina--amigos > .pique-espera { grid-template-columns: minmax(0, 1fr); height: calc(100dvh - 64px); }
  .lg-am__lista { border: 0; padding: 16px 8px 24px; }
  .lg-am:not(.lg-am--abierto) .lg-am__chat, .lg-pagina--amigos > .pique-espera:not(.lg-am--abierto) > :not(.lg-am__lista), .lg-pagina--amigos > .pique-espera.lg-am--abierto > .lg-am__perfil { display: none; }
  .lg-am--abierto .lg-am__lista { display: none; }
  /* Con un chat abierto, el chat es la pantalla: sin la barra de arriba. */
  .lg--chat .lg-arriba { display: none; }
  .lg--chat .lg-am { height: 100dvh; }
  .lg-chat__volver { display: grid; }
  .lg-chat__cab { padding: 0 8px 0 4px; height: 60px; }
  .lg-chat__cab > .pique-icon-button:not(.lg-chat__volver) { display: none; }
  .lg-chat__hilo { padding: 16px 12px; }
  .lg-chat__pie { padding: 8px 8px 12px; }
  .lg-burbuja__fila { max-width: 86%; }
  .lg-burbuja__acciones { display: none; }
  .lg-foto { width: 240px; }
  .lg-am--perfil .lg-am__chat { display: none; }
  .lg-am--perfil .lg-am__perfil { display: flex; border: 0; padding: 8px 16px 24px; }
  .lg-am--perfil .lg-perfil__arriba { display: flex; }
  .lg-am--perfil .lg-perfil__cab { justify-items: start; grid-template-columns: auto 1fr; column-gap: 16px; text-align: left; align-items: center; }
  .lg-am--perfil .lg-perfil__cab .lg-cara { grid-row: 1 / 3; --size: 64px; }
  .lg-am--perfil .lg-perfil__cab h2 { margin: 0; align-self: end; }
  .lg-am--perfil .lg-perfil__cab p { align-self: start; }
}
.lg-am__anadir { white-space: nowrap; }
.lg-am__gente { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 14px 12px; border-top: 1px solid var(--pique-line); text-decoration: none; color: var(--pique-text-soft); font-weight: 600; font-size: 14px; }
.lg-am__gente span { flex: 1; }
.lg-am__gente:hover { color: var(--pique-text); }
.lg-am__enviadas { width: 100%; border: 0; border-top: 1px solid var(--pique-line); background: none; font: inherit; font-weight: 600; font-size: 14px; text-align: left; cursor: pointer; }
.lg-am__enviadas + .lg-am__gente { margin-top: 0; }
.lg-am__mas { justify-self: start; }
.lg-am__filtro { margin-bottom: 4px; }
.lg-burbuja--tarjeta.lg-burbuja--mia { align-self: flex-end; }
.lg-perfil__oculto .lg-am__textos > b { white-space: normal; font-size: 14px; }
.lg-ficha__cab { grid-template-columns: auto 1fr auto; }
.lg-ficha__amigo { display: flex; align-items: center; gap: 8px; }
.lg-ficha__amigo:empty { display: none; }
.lg-ficha__amigo .pique-button { text-decoration: none; min-height: 44px; white-space: nowrap; }
@media (max-width: 700px) { .lg-ficha__cab { grid-template-columns: auto 1fr; } .lg-ficha__amigo { grid-column: 1 / -1; } }
@media (max-width: 700px) { .lg-nav a span.lg-nav__sinleer { display: grid; position: absolute; top: -2px; right: -4px; box-shadow: 0 0 0 2px var(--pique-navigation); } }
.lg-chat__pie { grid-template-columns: minmax(0, 1fr); }

/* Lo que se añade al prototipo aprobado: lo que faltaba por cablear. */
.lg-am__mini { min-height: 36px; padding: 0 14px; font-size: 14px; white-space: nowrap; text-decoration: none; }
.lg-am__textos--largo > b, .lg-am__textos--largo > span { white-space: normal; }
.lg-am__cara { position: relative; flex: none; display: grid; }
.lg-am__vivo { position: absolute; right: 0; bottom: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--pique-accent); outline: 3px solid var(--pique-background); }
.lg-am__linea--vivo { color: var(--pique-accent-text) !important; font-weight: 700; }
.lg-am__nombre > .pique-icon { width: 14px; height: 14px; color: var(--pique-text-muted); flex: none; align-self: center; }
.lg-am__aviso { text-decoration: none; color: var(--pique-text-soft); }
.lg-am__aviso .lg-plan__icono { width: 40px; height: 40px; flex: none; }
.lg-am__hallado:empty { display: none; }
.lg-am__codigo-botones { display: flex; flex-wrap: wrap; gap: 8px; }
.lg-am__codigo-botones .pique-button { min-height: 44px; font-size: 15px; }
.lg-chat__cab--sola { border: 0; }
.lg-chat__menu { display: grid; }
.lg-chat__mas-atras { align-self: center; min-height: 40px; font-size: 14px; }
.lg-chat__cuenta { justify-self: end; font-size: 12px; color: var(--pique-text-muted); font-variant-numeric: tabular-nums; }
.lg-chat__cuenta[hidden] { display: none; }
.lg-chat__enviar:disabled { background: var(--pique-surface-higher); color: var(--pique-text-muted); cursor: default; }
.lg-chat__cerrado { display: grid; justify-items: center; gap: 6px; }
.lg-chat__cerrado b { color: var(--pique-text); }
.lg-burbuja__cita { border-top: 0; border-right: 0; border-bottom: 0; color: inherit; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.lg-burbuja__entreno { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 8px; border-radius: 12px; background: color-mix(in srgb, var(--pique-background) 45%, transparent); white-space: normal; }
.lg-burbuja__entreno .lg-plan__icono { width: 36px; height: 36px; border-radius: 11px; flex: none; }
.lg-burbuja--senalada .lg-burbuja__globo { box-shadow: 0 0 0 2px var(--pique-accent-text); }
.lg-burbuja--fallo .lg-burbuja__globo { opacity: .6; }
.lg-burbuja--fallo .lg-burbuja__pie { color: var(--pique-rival); font-weight: 600; }
.lg-burbuja__reintentar { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 0 8px; border: 0; border-radius: 999px; background: var(--pique-surface-high); color: var(--pique-text); font: inherit; font-weight: 700; cursor: pointer; }
.lg-burbuja__reintentar .pique-icon { width: 14px; height: 14px; }
.lg-burbuja__reacciones .lg-reaccion { cursor: pointer; }
.lg-selector--chat { position: fixed; top: var(--arriba, 8px); left: var(--izquierda, 8px); bottom: auto; z-index: 60; max-width: min(372px, calc(100vw - 16px)); }
.lg-selector__emoji--mia { background: var(--pique-accent-container); box-shadow: inset 0 0 0 1.5px var(--pique-accent-border); }
.lg-plan__mensaje { margin-top: 4px; color: var(--pique-text); font-size: 14px; overflow-wrap: anywhere; }
.lg-plan__pie { flex-wrap: wrap; align-items: center; }
.lg-plan__textos b { overflow-wrap: anywhere; }
.lg-perfil__arriba { display: flex; align-items: center; justify-content: space-between; margin: -12px -6px -30px; }
.lg-perfil__arriba > :only-child { margin-left: auto; }
.lg-perfil__arriba .lg-menu__boton { background: none; }
.lg-perfil__vivo { display: inline-flex; align-items: center; gap: 6px; color: var(--pique-accent-text); font-weight: 700; font-size: 14px; }
.lg-vivo { width: 9px; height: 9px; border-radius: 50%; background: var(--pique-accent); }
.lg-perfil__record { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14px; }
.lg-perfil__record span { color: var(--pique-text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-perfil__record b { font: 800 15px var(--pique-font-display); white-space: nowrap; }
.lg-perfil__hueco { display: contents; }
button.lg-perfil__oculto { width: 100%; border: 0; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.lg-perfil__liga .lg-cuadro .pique-icon { width: 18px; height: 18px; }

/* Las hojas (añadir, privacidad, quedar, retar, cara a cara, denunciar…): el
   contenido se desplaza y los botones se quedan a la vista. */
.lg-hoja { width: min(480px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; overflow: hidden; }
.lg-hoja[open] { display: flex; flex-direction: column; }
.lg-hoja__cab { display: flex; align-items: center; gap: 8px; padding: 18px 12px 6px 24px; flex: none; }
.lg-hoja__cab h2 { flex: 1; min-width: 0; font-size: 20px; }
.lg-hoja__sub { padding: 0 24px 4px; flex: none; }
.lg-hoja__cuerpo { display: grid; gap: 18px; min-height: 0; overflow-y: auto; padding: 12px 24px 24px; align-content: start; }
.lg-hoja__cuerpo > section { display: grid; gap: 10px; }
.lg-hoja__pie { flex: none; margin: 0; padding: 12px 24px 18px; border-top: 1px solid var(--pique-line); }
.lg-hoja__pie:empty { display: none; }
.lg-hoja__espera { display: grid; gap: 12px; }
.lg-hoja__campo { display: grid; gap: 0; min-width: 0; }
.lg-hoja__campo[hidden] { display: none; }
.lg-hoja__campo > .lg-muted { margin-top: 8px; font-size: 13px; }
.lg-hoja__par { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lg-hoja__segmentado { display: flex; }
.lg-hoja__segmentado > button { flex: 1; min-width: 0; padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-hoja__radios { display: grid; gap: 4px; }
.lg-hoja__radio { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.lg-hoja__radio input { width: 20px; height: 20px; accent-color: var(--pique-accent-text); }
.lg-hoja__lista { display: grid; gap: 6px; }
.lg-hoja__opcion { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 16px; background: var(--pique-surface-high); color: var(--pique-text-soft); font: inherit; cursor: pointer; text-align: left; }
.lg-hoja__opcion:hover { background: var(--pique-surface-higher); }
.lg-hoja__opcion .lg-plan__icono { flex: none; }
.lg-hoja .lg-interruptor { flex-direction: row-reverse; justify-content: space-between; min-height: 52px; }
.lg-priv__dato { display: flex; align-items: center; gap: 12px; }
.lg-hoja select.pique-field { appearance: auto; }

/* El cara a cara: tu cifra, qué se mide y la suya; quien gana, en su color. */
.lg-cc { display: grid; gap: 10px; }
.lg-cc__titular { font: 800 20px var(--pique-font-display); text-align: center; }
.lg-cc__caras { display: grid; grid-template-columns: 1fr 1fr; justify-items: center; }
.lg-cc__caras span { display: grid; justify-items: center; gap: 4px; }
.lg-cc__fila { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 12px; padding: 12px 16px; border-radius: 14px; background: var(--pique-surface-high); }
.lg-cc__fila > span { color: var(--pique-text-soft); font-size: 13px; text-align: center; }
.lg-cc__fila > b { font: 800 22px var(--pique-font-display); font-variant-numeric: tabular-nums; }
.lg-cc__fila > b:last-child { text-align: right; }
.lg-cc__fila--texto > b { font-size: 15px; }
.lg-cc__gana { color: var(--pique-accent-text); }
.lg-cc__gana--rival { color: var(--pique-rival); }
.lg-cc__kicker { margin-top: 8px; }
.lg-cc__nota { text-align: center; font-size: 13px; }
.lg-cc__pro { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--pique-border); }

/* Una foto o un vídeo del chat, en grande. */
.lg-vermedio { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 16px; border: 0; background: rgba(0, 0, 0, .92); color: #fff; }
.lg-vermedio[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; align-items: center; gap: 12px; }
.lg-vermedio::backdrop { background: #000; }
.lg-vermedio img, .lg-vermedio video { max-width: 100%; max-height: 100%; min-height: 0; border-radius: 12px; object-fit: contain; }
.lg-vermedio__cerrar { position: absolute; top: 12px; right: 12px; z-index: 1; background: rgba(255, 255, 255, .14); color: #fff; }
.lg-vermedio__texto { max-width: 720px; text-align: center; overflow-wrap: anywhere; }

@media (max-width: 960px) {
  .lg-chat__atajo { display: none; }
  .lg-burbuja__acciones { display: none; }
  .lg-burbuja--ver .lg-burbuja__acciones { display: flex; opacity: 1; }
  .lg-am--perfil .lg-perfil__arriba { margin: 0 -8px; }
  .lg-hoja { width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
}
@media (max-width: 380px) {
  .lg-hoja__segmentado > button { padding: 0 4px; font-size: 14px; }
  .lg-hoja__par { grid-template-columns: 1fr; }
  .lg-hoja__cuerpo { padding: 12px 16px 20px; }
  .lg-hoja__cab { padding-left: 16px; }
  .lg-hoja__sub { padding: 0 16px 4px; }
  .lg-hoja__pie { padding: 12px 16px 16px; }
}
/* Movimiento: lo que llega entra con un fundido corto; «entrenando ahora» late
   despacio porque dice que alguien está entrenando en este momento. */
@media (prefers-reduced-motion: no-preference) {
  .lg-burbuja__acciones { transition: opacity var(--pique-motion-fast); }
  .lg-burbuja__globo { transition: box-shadow var(--pique-motion-normal); }
  .lg-hoja[open] { animation: pique-abre var(--pique-motion-normal) var(--pique-ease-enter); }
  .lg-am__vivo, .lg-vivo { animation: lg-vivo-late 2s ease-out infinite; }
}
@keyframes lg-vivo-late { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pique-accent) 70%, transparent); } 75%, to { box-shadow: 0 0 0 8px transparent; } }

/* ── Enviar notas de voz, fotos y vídeos por el chat (PIQ-713) ──────────────── */
/* Con el campo vacío, enviar es el micro: gris, porque el lima es para enviar. */
.lg-chat__enviar--micro { background: var(--pique-surface-higher); color: var(--pique-text); }
.lg-graba { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; border-radius: 24px; }
.lg-graba:focus-visible { outline: 2px solid var(--pique-accent-text); outline-offset: 2px; }
.lg-graba > button { flex: none; }
.lg-graba > .pique-icon-button { width: 48px; height: 48px; }
.lg-graba__barra { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 16px; border-radius: 24px; background: var(--pique-surface); }
.lg-graba__reloj { font-size: 16px; font-variant-numeric: tabular-nums; }
.lg-graba__reloj--poco { color: var(--pique-rival); }
.lg-graba__onda { flex: 1; min-width: 0; overflow: hidden; display: flex; }
.lg-graba__onda .lg-voz__onda i { background: var(--pique-text); }
.lg-voz__onda--cola { justify-content: flex-end; gap: 3px; }
.lg-voz__onda--cola i { flex: none; width: 3px; }
.lg-graba__punto { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--pique-rival); }
.lg-graba__punto--quieto { background: var(--pique-text-muted); }
.lg-graba--enviando { opacity: .7; }
.lg-hoja--medio { width: min(560px, calc(100vw - 24px)); }
.lg-hoja--medio .lg-hoja__cuerpo { gap: 12px; }
.lg-medio__vista { display: block; width: 100%; max-height: min(52dvh, 460px); border-radius: 16px; background: #000; object-fit: contain; }
.lg-medio__vista--espejo { transform: scaleX(-1); }
.lg-medio__vista--grabando { outline: 3px solid var(--pique-rival); outline-offset: -3px; }
.lg-medio__texto { width: 100%; resize: none; }
.lg-medio__avance { min-height: 20px; margin: 0; font-size: 13px; }
.lg-medio__avance:empty { display: none; }
.lg-hoja--medio .lg-graba__reloj { justify-self: center; }
@media (prefers-reduced-motion: no-preference) {
  /* Grabando: el punto late despacio mientras el micro está abierto. */
  .lg-graba__punto:not(.lg-graba__punto--quieto) { animation: lg-graba-late 1.4s ease-in-out infinite; }
}
@keyframes lg-graba-late { 50% { opacity: .35; } }
.lg-medio__texto { padding: 12px 14px; }

/* ── Foto de portada desde la web (PIQ-714) ─────────────────────────────── */
@media (min-width: 961px) { .lg-hoja--portada { width: min(680px, calc(100vw - 32px)); } }
.lg-portada__marco { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--pique-surface-high); }
.lg-portada__lienzo { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.lg-portada__lienzo:active { cursor: grabbing; }
.lg-portada__lienzo:focus-visible { outline: 2px solid var(--pique-accent-text); outline-offset: -2px; }
.lg-portada__guia { position: absolute; inset: 0; pointer-events: none; --fuera: calc((1 - var(--franja)) / 2 * 100%); background: linear-gradient(to bottom, rgb(0 0 0 / .45) var(--fuera), transparent var(--fuera), transparent calc(100% - var(--fuera)), rgb(0 0 0 / .45) calc(100% - var(--fuera))); }
.lg-portada__guia::before, .lg-portada__guia::after { content: ""; position: absolute; left: 0; right: 0; height: 0; border-top: 2px dashed rgb(255 255 255 / .9); filter: drop-shadow(0 1px 0 rgb(0 0 0 / .5)); }
.lg-portada__guia::before { top: var(--fuera); }
.lg-portada__guia::after { bottom: var(--fuera); }
.lg-portada__marco--vacio .lg-portada__lienzo, .lg-portada__marco--vacio .lg-portada__guia { display: none; }
.lg-portada__vacio { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; width: 100%; border: 2px dashed var(--pique-line); border-radius: 16px; background: none; color: var(--pique-text); font: 600 16px var(--pique-font-body, inherit); cursor: pointer; }
.lg-portada__vacio[hidden] { display: none; }
.lg-portada__vacio:hover { background: var(--pique-surface-higher); }
.lg-portada__vacio .pique-icon { width: 28px; height: 28px; }
.lg-portada__mandos { display: flex; align-items: center; gap: 12px; color: var(--pique-text-soft); }
.lg-portada__mandos[hidden], .lg-portada__pista[hidden] { display: none; }
.lg-portada__zoom { flex: 1; min-width: 0; accent-color: var(--pique-text); }
.lg-portada__pista { font-size: 14px; }
.lg-hoja--portada .lg-hoja__pie { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lg-portada__hueco { flex: 1; }
.lg-portada__quitar { color: var(--pique-rival); display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 520px) {
  .lg-hoja--portada .lg-hoja__pie { justify-content: flex-end; }
  .lg-portada__hueco { flex-basis: 100%; height: 0; }
}

/* ── El hilo con tu entrenador (PIQ-749, ADR 0111) ───────────────────────── */
.lg-he__franja { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px max(20px, calc((100% - 720px) / 2)); border-bottom: 1px solid var(--pique-line); background: var(--pique-surface); }
.lg-he__franja[hidden] { display: none; }
.lg-he__franja .lg-plan__icono { width: 36px; height: 36px; border-radius: 11px; flex: none; }
.lg-he__franja .lg-muted { font-size: 13px; }
.lg-he__espera { display: flex; flex-direction: column; gap: 12px; }
.lg-he__hueso { display: flex; }
.lg-he__hueso--mia { justify-content: flex-end; }
.lg-he__hueso .pique-hueso--campo-alto { height: 52px; border-radius: 20px; }
.lg-he__hueso-l { width: min(70%, 420px); }
.lg-he__hueso-m { width: min(48%, 300px); }
.lg-he__hueso-s { width: min(34%, 200px); }
.lg-he__hueso-dia { align-self: center; width: 110px; }
.lg-he__hueso-tarjeta { width: min(78%, 360px); height: 150px; border-radius: 20px; }
.lg-he__pide { display: grid; justify-items: start; gap: 6px; margin-top: 8px; font-size: 13px; }
.lg-he__expl { display: flex; align-items: center; gap: 12px; white-space: normal; min-width: min(280px, 100%); }
.lg-he__expl .lg-plan__icono { width: 40px; height: 40px; border-radius: 12px; flex: none; }
.lg-he__expl .lg-am__textos { flex: 1; min-width: 0; }
.lg-he__clip { display: grid; gap: 8px; white-space: normal; }
.lg-he__clip-video { display: block; width: min(320px, 100%); max-height: 420px; border-radius: 14px; background: #000; }
.lg-he__opciones { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.lg-he__comida-foto { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.lg-he__marco { padding: 0; }
.lg-he__marco[open] { display: block; }
.lg-he__marco iframe { display: block; width: 100%; height: 100%; border: 0; }
/* Las hojas */
.lg-he__pista { font-size: 13px; }
.lg-he__nota { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; margin-right: auto; }
.lg-he__nota .pique-icon { width: 16px; height: 16px; flex: none; }
.lg-hoja__pie .lg-plan__pie { grid-column: auto; justify-content: flex-end; }
.lg-he__segmentado { background: var(--pique-surface-high); justify-self: start; max-width: 100%; overflow-x: auto; }
.lg-he__zonas { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lg-he__otra { width: 150px; min-height: 36px; padding: 6px 12px; }
.lg-rutina__dia { margin-top: 12px; }
.lg-rutina__fila { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--pique-line); }
.lg-rutina__fila .lg-muted { flex: none; font-variant-numeric: tabular-nums; }
.lg-he__poses { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.lg-he__pose-col { display: grid; gap: 6px; justify-items: center; text-align: center; }
.lg-he__pose { width: 100%; aspect-ratio: 3 / 4; border: 1.5px dashed var(--pique-border); border-radius: var(--pique-radius-card); display: grid; place-items: center; overflow: hidden; color: var(--pique-text-soft); }
.lg-he__pose--hecha { border-style: solid; border-color: var(--pique-accent-border); }
.lg-he__pose img { width: 100%; height: 100%; object-fit: cover; }
.lg-he__pose-hueso { width: 100%; height: 100%; }
.lg-he__dos { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; align-items: center; }
.lg-he__video { border: 1.5px dashed var(--pique-border); border-radius: var(--pique-radius-card); padding: 28px 16px; display: grid; justify-items: center; gap: 8px; text-align: center; }
.lg-he__video--listo { border: 0; padding: 0; }
.lg-he__avance { width: 100%; accent-color: var(--pique-accent); }
.lg-he__avance[hidden] { display: none; }
.lg-he__comida { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--pique-line); }
.lg-he__comida-textos { display: grid; gap: 2px; min-width: 0; }
.lg-he__cuerpo { white-space: pre-line; }
.lg-he__macros { font-size: 13px; font-variant-numeric: tabular-nums; }
.lg-he__lado { display: grid; gap: 6px; justify-items: end; flex: none; }
.lg-he__cuando { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.lg-he__horas { display: grid; gap: 10px; }
.lg-he__hora { display: flex; align-items: flex-end; gap: 6px; }
.lg-he__hora .lg-hoja__campo { flex: 1; }
@media (max-width: 700px) {
  .lg-he__comida { flex-direction: column; }
  .lg-he__lado { justify-items: start; }
  .lg-he__franja { padding: 8px 12px; }
}
