/* ============================================================
   PULSO · estilos (marca propia)
   Estética de tablet de gimnasio: azul noche, letra condensada,
   tarjetas con franja de color y botones grandes con brillo.
   ============================================================ */
@font-face { font-family: 'Barlow Condensed'; font-weight: 400; font-display: swap; src: url('../fonts/barlow-condensed-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url('../fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 900; font-display: swap; src: url('../fonts/barlow-condensed-latin-900-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url('../fonts/barlow-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url('../fonts/barlow-latin-600-normal.woff2') format('woff2'); }

:root {
  --noche: #0E1726;
  --hondo: #0A1120;
  --tarj: #17223B;
  --tarj-2: #22304F;
  --coral: #FF5A36;
  --lima: #C6F432;
  --ambar: #FFB020;
  --azul: #5B8CFF;
  --hueso: #F5F3EE;
  --gris: rgba(245, 243, 238, .66);
  --tenue: rgba(245, 243, 238, .40);
  --borde: rgba(245, 243, 238, .12);
  --peligro: #FF4D6D;
  --c-prep: var(--ambar);
  --c-trabajo: var(--coral);
  --c-descanso: var(--lima);
  --c-calma: var(--azul);
  --tinta: #0E1726;
  --radio: 18px;
  --radio-s: 12px;
  --toque: 54px;
  --cond: 'Barlow Condensed', 'Arial Narrow', Impact, system-ui, sans-serif;
  --letra: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--noche); color: var(--hueso); font-family: var(--letra); }
body { min-height: 100vh; line-height: 1.45; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
a { color: var(--lima); }
h1, h2, h3 { font-family: var(--cond); font-weight: 900; line-height: 1.05; margin: 0 0 .5em; letter-spacing: .02em; text-transform: uppercase; }
h1 { font-size: clamp(2rem, 5.4vw, 3.2rem); font-style: italic; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
button { font-family: inherit; touch-action: manipulation; }
.apagado { color: var(--gris); }
.oculto, [hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--lima); outline-offset: 3px; }

/* ---------- cabecera ---------- */
.cabecera { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px;
  padding: 10px clamp(14px, 3vw, 40px); background: rgba(14, 23, 38, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--borde); }
.marca { display: inline-flex; align-items: center; gap: 10px; color: var(--hueso); text-decoration: none;
  font-family: var(--cond); font-weight: 900; font-style: italic; font-size: 1.7rem; letter-spacing: .06em; text-transform: uppercase; }
.marca small { font-style: normal; font-weight: 700; color: var(--coral); font-size: .95rem; letter-spacing: .12em; }
.nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--gris); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-family: var(--cond);
  font-weight: 700; font-size: 1.08rem; letter-spacing: .06em; text-transform: uppercase; }
.nav a:hover, .nav a.activo { color: var(--hueso); background: var(--tarj); }
select.idioma { width: auto; padding: 6px 10px; border-radius: 999px; font-size: .9rem; background: var(--tarj); border: 1px solid var(--borde); }

main { max-width: 1500px; margin: 0 auto; padding: clamp(14px, 2.4vh, 28px) clamp(14px, 3vw, 40px) 60px; }

/* ---------- botones ---------- */
.boton { appearance: none; border: 0; cursor: pointer; font-family: var(--cond); font-weight: 800; font-size: 1.2rem; letter-spacing: .08em;
  text-transform: uppercase; padding: 13px 24px; min-height: 48px; border-radius: 999px; background: var(--coral); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  transition: transform .09s, filter .15s, box-shadow .15s; }
.boton:hover { filter: brightness(1.07); }
.boton:active { transform: scale(.95); }
.boton[disabled] { opacity: .5; cursor: not-allowed; }
.boton.lima { background: var(--lima); color: var(--tinta); }
.boton.fantasma { background: var(--tarj); color: var(--hueso); box-shadow: inset 0 0 0 1.5px var(--borde); }
.boton.fantasma:hover { box-shadow: inset 0 0 0 1.5px var(--coral); }
.boton.peligro { color: var(--peligro); }
.boton.chico { padding: 7px 14px; min-height: 38px; font-size: 1rem; }
.boton.grande { padding: 0 clamp(28px, 3.5vw, 52px); min-height: 72px; font-size: clamp(1.5rem, 3.4vh, 2rem); font-weight: 900; letter-spacing: .1em;
  box-shadow: 0 0 40px rgba(255, 90, 54, .38); }
.acciones { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 16px 0; }

/* ---------- tarjetas y listas ---------- */
.rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tarjeta { background: var(--tarj); border: 1px solid var(--borde); border-radius: var(--radio); padding: 18px; }
button.tarjeta, a.tarjeta { text-align: left; color: inherit; font: inherit; cursor: pointer; text-decoration: none; display: block; width: 100%;
  transition: transform .1s, border-color .15s; }
button.tarjeta:hover, a.tarjeta:hover { border-color: var(--coral); transform: translateY(-2px); }
.tarjeta .emoji { font-size: 1.6rem; }
.tarjeta strong { display: block; font-family: var(--cond); font-weight: 800; font-size: 1.35rem; letter-spacing: .04em; text-transform: uppercase; margin: 6px 0 2px; }
.tarjeta span { color: var(--gris); font-size: .93rem; }
.seccion { margin: 34px 0; }
.lista { display: grid; gap: 10px; }
.item { display: flex; align-items: center; gap: 12px; background: var(--tarj); border: 1px solid var(--borde); border-radius: 14px; padding: 12px 14px; }
.item .crece { flex: 1; min-width: 0; }
.item .crece strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item small { color: var(--gris); }
.pastilla { display: inline-block; padding: 3px 11px; border-radius: 999px; font-family: var(--cond); font-size: .95rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; background: var(--tarj-2); color: var(--hueso); }
.pastilla.coral { background: var(--coral); color: #fff; }
.pastilla.lima { background: var(--lima); color: var(--tinta); }

/* ---------- formularios ---------- */
.campo { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; color: var(--gris); font-weight: 600; min-width: 140px; }
.campo.ancho { width: 100%; }
input, textarea, select { font: inherit; color: var(--hueso); background: var(--hondo); border: 2px solid var(--tarj-2); border-radius: var(--radio-s); padding: 12px 14px; width: 100%; }
input:focus, textarea:focus, select:focus { border-color: var(--lima); outline: none; }
textarea { min-height: 90px; resize: vertical; }
.fila-campos { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0; }
.paso { display: flex; align-items: stretch; }
.paso input { text-align: center; border-radius: 0; width: 92px; font-family: var(--cond); font-size: 1.35rem; font-variant-numeric: tabular-nums; font-weight: 800; }
.paso button { width: 46px; border: 2px solid var(--tarj-2); background: var(--tarj-2); color: var(--coral); font-size: 1.4rem; cursor: pointer; }
.paso button:first-child { border-radius: var(--radio-s) 0 0 var(--radio-s); }
.paso button:last-child { border-radius: 0 var(--radio-s) var(--radio-s) 0; }
.check { display: flex; gap: 10px; align-items: center; color: var(--gris); margin: 8px 0; }
.check input { width: 22px; height: 22px; accent-color: var(--coral); }
fieldset.bloque { border: 1px solid var(--borde); border-radius: var(--radio); margin: 14px 0; padding: 6px 16px 14px; background: var(--tarj); }
fieldset.bloque legend { padding: 0 8px; color: var(--coral); font-family: var(--cond); font-weight: 900; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .06em; }
.acciones-bloque { display: flex; gap: 8px; flex-wrap: wrap; }
.duracion { margin-top: 14px; color: var(--gris); }
.duracion strong { color: var(--lima); font-family: var(--cond); font-size: 1.3rem; }
.formulario { max-width: 440px; display: grid; gap: 14px; }
.ia-caja { background: linear-gradient(135deg, rgba(255, 90, 54, .13), rgba(198, 244, 50, .07)); border: 1px solid var(--borde); border-radius: var(--radio); padding: 18px; }
.ia-caja h2::before { content: '✦ '; color: var(--lima); }

/* aviso flotante */
.aviso { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 160%); background: var(--hueso); color: var(--tinta); padding: 12px 22px;
  border-radius: 999px; font-weight: 700; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); z-index: 200; transition: transform .25s; max-width: 92vw; text-align: center; }
.aviso.visible { transform: translate(-50%, 0); }
.aviso.error { background: var(--peligro); color: #fff; }

/* ============================================================
   PORTADA: configurar e iniciar
   ============================================================ */
.setup { position: relative; display: flex; flex-direction: column; gap: clamp(12px, 2.2vh, 24px); padding-bottom: 8px; }
.setup::before { content: ''; position: absolute; top: -12vh; right: -10vw; width: 70vw; height: 60vh; pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse, rgba(255, 90, 54, .09) 0%, transparent 65%); }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { min-height: 46px; padding: 0 18px; border-radius: 999px; background: var(--tarj); border: 1.5px solid var(--borde); color: var(--gris); cursor: pointer;
  font-family: var(--cond); font-weight: 700; font-size: 1.15rem; letter-spacing: .05em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px;
  transition: transform .09s, border-color .15s; }
.chip small { font-weight: 400; color: var(--tenue); font-size: 1rem; text-transform: none; }
.chip.activo { background: var(--coral); border-color: var(--coral); color: #fff; }
.chip.activo small { color: rgba(255, 255, 255, .8); }
.chip:active { transform: scale(.94); }
.config { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); }
.ccard { position: relative; overflow: hidden; background: var(--tarj); border: 1px solid var(--borde); border-radius: var(--radio);
  padding: clamp(14px, 2.2vh, 24px) 10px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: clamp(10px, 1.6vh, 16px); min-width: 0; }
.ccard::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--franja, transparent); }
.ccard[data-f="prep"] { --franja: var(--c-prep); }
.ccard[data-f="trabajo"] { --franja: var(--c-trabajo); }
.ccard[data-f="descanso"] { --franja: var(--c-descanso); }
.ccard-t { display: flex; align-items: center; gap: 8px; font-family: var(--cond); font-weight: 700; font-size: clamp(1.05rem, 2.4vh, 1.35rem);
  letter-spacing: .12em; text-transform: uppercase; color: var(--gris); text-align: center; }
.ccard-t i { width: 12px; height: 12px; border-radius: 50%; background: var(--franja); }
.cval { font-family: var(--cond); font-weight: 900; line-height: 1; font-size: clamp(3rem, 8vh, 5.2rem); font-variant-numeric: tabular-nums;
  background: none; border: 0; color: var(--hueso); text-align: center; width: 100%; padding: 0; }
.cval:focus { outline: none; color: var(--lima); }
.pasos { display: flex; flex-direction: column; gap: 8px; align-items: center; width: 100%; }
.pasito { display: flex; align-items: center; justify-content: center; gap: 14px; }
.pasito span { font-family: var(--cond); font-weight: 700; font-size: 1rem; letter-spacing: .1em; color: var(--tenue); width: 3.4ch; text-align: center; }
.pbtn { width: var(--toque); height: var(--toque); flex: none; border-radius: var(--radio-s); background: var(--tarj-2); border: 1px solid var(--borde);
  color: var(--coral); font-size: 1.9rem; font-weight: 600; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .09s; }
.pbtn:active { transform: scale(.92); background: var(--coral); color: #fff; }
.pbtn.gordo { width: 64px; height: 64px; border-radius: 50%; font-size: 2.2rem; }
.contador { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.contador .cval { flex-basis: 100%; }
.setup-pie { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: clamp(10px, 1.6vh, 18px); border-top: 1px solid var(--borde); }
.total small { display: block; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); }
.total strong { font-family: var(--cond); font-weight: 900; font-size: clamp(2rem, 5vh, 2.9rem); color: var(--coral); line-height: 1; }
.setup-enlaces { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
@media (hover: hover) and (pointer: fine) {
  .pbtn:hover { border-color: var(--coral); background: rgba(255, 90, 54, .14); }
  .chip:hover:not(.activo) { border-color: rgba(255, 90, 54, .55); color: var(--hueso); }
  .boton.grande:hover { box-shadow: 0 0 60px rgba(255, 90, 54, .55); }
}
@media (max-width: 1000px) {
  .config { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ccard[data-f] { grid-column: span 2; }
  .ccard.cnt { grid-column: span 3; }
}
@media (max-width: 560px) {
  .config { grid-template-columns: 1fr; gap: 8px; }
  .ccard[data-f], .ccard.cnt { grid-column: auto; flex-direction: row; flex-wrap: wrap; padding: 12px 14px 12px 18px; justify-content: space-between; }
  .ccard::before { top: 0; bottom: 0; right: auto; width: 5px; height: auto; }
  .ccard-t { width: 100%; justify-content: flex-start; font-size: 1rem; }
  .cval { width: auto; font-size: 2.8rem; text-align: left; flex: 1; min-width: 0; }
  .pasos { width: auto; flex-direction: row; gap: 6px; }
  .pasito { gap: 8px; }
  .pasito .pbtn { width: 52px; height: 52px; border-radius: 50%; font-size: 1.8rem; }
  .contador { flex-wrap: nowrap; width: auto; }
  .contador .cval { flex-basis: auto; width: 2.4ch; text-align: center; }
  .pbtn.gordo { width: 52px; height: 52px; }
  .setup-pie { flex-direction: column; align-items: stretch; text-align: center; }
  .setup-pie .boton.grande { width: 100%; }
  .setup-enlaces { justify-content: center; }
  .rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tarjeta { padding: 14px; }
  .tarjeta strong { font-size: 1.15rem; }
  .tarjeta span { font-size: .85rem; }
  .nav a { padding: 6px 8px; font-size: .98rem; }
  .cabecera { flex-wrap: wrap; }
  .paso input { width: 78px; }
}

/* ---------- planes ---------- */
.planes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.plan { background: var(--tarj); border: 1px solid var(--borde); border-radius: var(--radio); padding: 22px 20px 20px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.plan::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--franja, var(--tarj-2)); }
.plan.p-cuenta { --franja: var(--ambar); }
.plan.p-personal { --franja: var(--lima); }
.plan.p-gym { --franja: var(--coral); }
.plan h3 { margin: 0; }
.plan .precio { font-family: var(--cond); font-weight: 900; font-size: 2.6rem; line-height: 1; }
.plan .precio small { font-size: 1.1rem; color: var(--gris); font-weight: 700; }
.plan ul { margin: 0; padding-left: 1.1em; color: var(--gris); }
.plan li { margin: 4px 0; }
.plan .boton { margin-top: auto; }

/* ---------- anuncios ---------- */
.anuncio { margin: 22px auto; text-align: center; min-height: 100px; max-width: 970px; }
.anuncio small { display: block; color: var(--tenue); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }

/* ============================================================
   TEMPORIZADOR (anillo + panel lateral)
   ============================================================ */
.pt { --fase: var(--c-trabajo); position: relative; background: var(--hondo); color: var(--hueso); overflow: hidden; }
.pt.f-prep { --fase: var(--c-prep); }
.pt.f-trabajo { --fase: var(--c-trabajo); }
.pt.f-descanso { --fase: var(--c-descanso); }
.pt.f-calma { --fase: var(--c-calma); }
.pt.f-espera { --fase: var(--tenue); }
.pt-fondo { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 35% 55%, color-mix(in srgb, var(--fase) 26%, transparent) 0%, transparent 70%),
              linear-gradient(180deg, color-mix(in srgb, var(--fase) 10%, var(--hondo)) 0%, var(--hondo) 100%); transition: background .5s; }
.pt.final3 .pt-fondo { animation: destello 1s ease-out infinite; }
@keyframes destello { 0% { box-shadow: inset 0 0 0 100vmax color-mix(in srgb, var(--fase) 30%, transparent); } 100% { box-shadow: inset 0 0 0 100vmax transparent; } }
.pt-capa { position: relative; z-index: 1; width: 100%; height: 100%; display: flex; flex-direction: column;
  padding: calc(clamp(10px, 2vh, 22px) + env(safe-area-inset-top)) clamp(14px, 2.5vw, 36px) calc(clamp(10px, 2vh, 22px) + env(safe-area-inset-bottom)); gap: clamp(8px, 1.5vh, 16px); }
.pt-arriba { display: flex; align-items: center; gap: 14px; flex: none; min-height: 56px; }
.pt-logo img { height: clamp(30px, 5vh, 54px); width: auto; display: block; }
.pt-logo span { font-family: var(--cond); font-weight: 900; font-style: italic; font-size: clamp(1.3rem, 3.4vh, 2.2rem); letter-spacing: .05em; text-transform: uppercase; }
.pt-pildoras { flex: 1; display: flex; gap: 5px; justify-content: flex-end; flex-wrap: wrap; align-items: center; min-width: 0; }
.pil { height: 12px; flex: 1 1 0; min-width: 8px; max-width: 40px; border-radius: 99px; background: rgba(245, 243, 238, .14); transition: background .3s; }
.pil.hecha { background: rgba(245, 243, 238, .55); }
.pil.actual { background: var(--fase); box-shadow: 0 0 10px var(--fase); }
.pt-pil-txt { font-family: var(--cond); font-weight: 700; font-size: 1.4rem; color: var(--gris); }
.pt-main { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: clamp(20px, 4vw, 64px); }
.pt-anillo { --anillo: min(calc(100vh - 160px), 56vw); position: relative; width: var(--anillo); height: var(--anillo); flex: none; }
.pt-anillo svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.pt-pista { fill: none; stroke: rgba(245, 243, 238, .1); stroke-width: 8; }
.pt-progreso { fill: none; stroke: var(--fase); stroke-width: 14; stroke-linecap: round; transition: stroke .4s; }
.pt-centro { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pt-num { font-family: var(--cond); font-weight: 900; line-height: .9; font-size: calc(var(--anillo) * .46); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.pt-num.medio { font-size: calc(var(--anillo) * .36); }
.pt-num.largo { font-size: calc(var(--anillo) * .27); }
.pt.final3 .pt-num { color: var(--fase); }
.pt-pausa { font-family: var(--cond); font-weight: 900; letter-spacing: .2em; font-size: calc(var(--anillo) * .06); color: var(--gris); visibility: hidden; text-transform: uppercase; }
.pt.pausado .pt-pausa { visibility: visible; animation: parpadeo 1.2s steps(1) infinite; }
.pt.pausado .pt-progreso { opacity: .45; }
@keyframes parpadeo { 50% { opacity: .25; } }
.pt-lado { display: flex; flex-direction: column; justify-content: center; gap: clamp(14px, 3.2vh, 34px); width: clamp(280px, 34vw, 500px); min-width: 0; }
.pt-info { display: flex; flex-direction: column; gap: 6px; }
.pt-fase { font-family: var(--cond); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(2.4rem, 7.5vh, 5rem); line-height: 1; letter-spacing: .03em; color: var(--fase); }
.pt-nombre { font-family: var(--cond); font-weight: 900; text-transform: uppercase; font-size: clamp(1.8rem, 5.4vh, 3.6rem); line-height: 1; overflow-wrap: anywhere; }
.pt-nombre:empty { display: none; }
.pt-meta { font-family: var(--cond); font-weight: 700; font-size: clamp(1.5rem, 4vh, 2.5rem); letter-spacing: .05em; }
.pt-prox { display: flex; flex-direction: column; gap: 8px; }
.pt-prox-t { font-family: var(--cond); font-weight: 700; font-size: 1.05rem; letter-spacing: .16em; text-transform: uppercase; color: var(--tenue); }
.pt-chips { display: flex; flex-direction: column; gap: 8px; }
.pt-chip { display: flex; justify-content: space-between; gap: 12px; font-family: var(--cond); font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  font-size: clamp(1.2rem, 3vh, 1.6rem); padding: 6px 16px; border-radius: 12px; background: rgba(245, 243, 238, .05); border-left: 6px solid var(--chip, var(--tenue)); color: var(--gris); }
.pt-chip:first-child { font-size: clamp(1.5rem, 4vh, 2.1rem); color: var(--hueso); background: rgba(245, 243, 238, .09); padding: 10px 16px; }
.pt-chip .t { font-variant-numeric: tabular-nums; }
.pt-chip.c-prep { --chip: var(--c-prep); } .pt-chip.c-trabajo { --chip: var(--c-trabajo); } .pt-chip.c-descanso { --chip: var(--c-descanso); }
.pt-chip.c-calma { --chip: var(--c-calma); } .pt-chip.c-fin { --chip: var(--hueso); }
.pt-controles { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); }
.pt-controles:empty { display: none; }
.rbtn { display: flex; align-items: center; justify-content: center; border-radius: 50%; flex: none; cursor: pointer; border: 1.5px solid var(--borde);
  width: 76px; height: 76px; background: rgba(245, 243, 238, .07); color: var(--hueso); transition: transform .09s; }
.rbtn:active { transform: scale(.92); }
.rbtn.principal { width: 110px; height: 110px; border: 0; background: var(--fase); color: var(--tinta); box-shadow: 0 0 40px color-mix(in srgb, var(--fase) 45%, transparent); }
.rbtn.apagado-x { opacity: .45; }
.ibtn { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: rgba(245, 243, 238, .06); border: 1.5px solid var(--borde); color: var(--gris); flex: none; }
@media (hover: hover) and (pointer: fine) { .rbtn:not(.principal):hover, .ibtn:hover { border-color: var(--fase); color: var(--fase); } }
/* fin */
.pt-fin { position: absolute; inset: 0; z-index: 3; background: var(--noche); display: none; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(16px, 3vh, 32px); text-align: center; padding: 6vw; overflow-y: auto; }
.pt.terminado .pt-fin { display: flex; }
.pt-fin h2 { font-style: italic; font-size: clamp(2.4rem, 7vh, 5rem); color: var(--coral); margin: 0; animation: pop .6s cubic-bezier(.34, 1.56, .64, 1); }
.pt-fin-res { font-size: clamp(1.2rem, 3vh, 1.7rem); color: var(--gris); }
.pt-fin-logo:empty { display: none; }
.pt-fin-logo img { max-height: 16vh; max-width: 60vw; }
.pt-fin-acciones { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@media (orientation: portrait) {
  .pt-main { flex-direction: column; gap: clamp(12px, 2.4vh, 30px); }
  .pt-anillo { --anillo: min(84vw, calc(100vh - 480px)); }
  .pt-lado { width: 100%; max-width: 720px; align-items: center; gap: clamp(10px, 2vh, 24px); }
  .pt-info { align-items: center; text-align: center; }
  .pt-prox { width: 100%; align-items: center; }
  .pt-chips { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .pt-chip:nth-child(n+3) { display: none; }
  .pt-controles { justify-content: center; }
}
@media (orientation: landscape) and (max-height: 640px) {
  .rbtn.principal { width: 88px; height: 88px; } .rbtn { width: 64px; height: 64px; }
  .pt-chip:nth-child(n+3) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pt.final3 .pt-fondo, .pt-fin h2 { animation: none; } }

/* el temporizador del móvil a pantalla completa */
.vista-timer { position: fixed; inset: 0; z-index: 50; }
.vista-timer .pt { position: absolute; inset: 0; }

/* ============================================================
   PULSO GYM: tele
   ============================================================ */
body.tele { overflow: hidden; cursor: none; }
body.tele.raton { cursor: auto; }
.tele #reloj { position: fixed; inset: 0; }
.tele .pt-anillo { --anillo: min(calc(100vh - 170px), 56vw); }
.tele-capa { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 5vh 5vw; }
.codigo { font-family: var(--cond); font-size: clamp(5rem, 28vmin, 24rem); font-weight: 900; letter-spacing: .12em; color: var(--lima); font-variant-numeric: tabular-nums; line-height: 1; margin: 3vh 0; }
.tele-capa h1 { font-size: clamp(1.8rem, 5.5vmin, 4.4rem); }
.tele-capa p { font-size: clamp(1rem, 2.8vmin, 2rem); color: var(--gris); max-width: 70ch; }
.espera-logo img { max-height: 26vh; max-width: 60vw; object-fit: contain; }
.espera-nombre { font-family: var(--cond); font-style: italic; text-transform: uppercase; font-size: clamp(2.4rem, 9vmin, 8rem); font-weight: 900; margin: 2vh 0; }
.espera-frase { font-family: var(--cond); text-transform: uppercase; font-size: clamp(1.6rem, 5.4vmin, 4.8rem); font-weight: 900; color: var(--hueso); max-width: 85vw; min-height: 2.2em; transition: opacity .5s; }
.espera-hora { position: fixed; bottom: 3vh; right: 4vw; font-family: var(--cond); font-size: clamp(1.2rem, 3.4vmin, 2.8rem); font-weight: 900; color: var(--gris); font-variant-numeric: tabular-nums; }
.publi { position: fixed; inset: 0; z-index: 30; background: #000; display: flex; align-items: center; justify-content: center; }
.publi video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.publi-reloj { position: fixed; z-index: 31; right: 2.5vw; top: 2.5vh; padding: 1.4vh 2.6vw; border-radius: 3vmin; background: var(--c-descanso); color: var(--tinta);
  font-family: var(--cond); font-weight: 900; font-size: clamp(2.6rem, 13vmin, 12rem); font-variant-numeric: tabular-nums; line-height: 1; box-shadow: 0 1vmin 4vmin rgba(0, 0, 0, .4); text-align: center; }
.publi-reloj small { display: block; font-size: .26em; letter-spacing: .08em; text-transform: uppercase; }
.tocar { position: fixed; left: 50%; bottom: 3vh; transform: translateX(-50%); z-index: 40; background: var(--hueso); color: var(--tinta); padding: 12px 22px;
  border-radius: 999px; cursor: pointer; border: 0; font-family: var(--cond); font-weight: 800; font-size: 1.2rem; letter-spacing: .05em; text-transform: uppercase; }
.tele-botones { position: fixed; z-index: 40; bottom: 2vh; left: 2vw; display: none; gap: 8px; }
body.tele.raton .tele-botones { display: flex; }
.estado-red { position: fixed; z-index: 41; top: 1vh; right: 1vw; width: 12px; height: 12px; border-radius: 50%; background: var(--peligro); display: none; }
.estado-red.caido { display: block; }

/* ---------- mando y panel ---------- */
.mini { border-radius: var(--radio); height: 340px; }
.mini .pt-anillo { --anillo: 250px; }
.mini .pt-arriba { min-height: 24px; }
.mini .pt-fase { font-size: 2.3rem; } .mini .pt-nombre { font-size: 1.7rem; } .mini .pt-meta { font-size: 1.3rem; }
.mini .pt-chip { font-size: 1.05rem; } .mini .pt-chip:first-child { font-size: 1.25rem; }
.mini .pt-chip:nth-child(n+3) { display: none; }
.mini .pt-fin h2 { font-size: 2.2rem; }
@media (max-width: 700px) { .mini { height: 300px; } .mini .pt-anillo { --anillo: 210px; } .mini .pt-lado { display: none; } .mini .pt-main { flex-direction: row; } }
.mando-botones { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 14px 0; }
.mando-botones .boton { padding: 18px 6px; font-size: 1.5rem; }
.colores { display: flex; gap: 16px; flex-wrap: wrap; }
.colores input[type=color] { width: 72px; height: 48px; padding: 4px; }
.logo-prev { max-height: 90px; max-width: 240px; background: var(--hondo); border-radius: 12px; padding: 8px; }
.tabla { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tabla th, .tabla td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--borde); vertical-align: middle; }
.tabla th { color: var(--gris); font-weight: 700; }
.desliza { overflow-x: auto; }
.barra-subida { height: 8px; background: var(--tarj-2); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.barra-subida i { display: block; height: 100%; width: 0; background: var(--lima); }
.pie { max-width: 1500px; margin: 0 auto; padding: 20px clamp(14px, 3vw, 40px) 40px; color: var(--tenue); font-size: .85rem; display: flex; gap: 16px; flex-wrap: wrap; }
.pie a { color: var(--gris); }
.legal { max-width: 760px; } .legal h2 { margin-top: 1.4em; }
