@font-face { font-family: "Montserrat"; src: url("/Montserrat.ttf"); font-weight: 100 900; font-display: swap; }

:root {
  --fondo: #050506; --tinta: #ffffff; --tinta2: #a3a5aa; --tinta3: #6f7176;
  --cristal: rgba(255,255,255,.055); --cristal2: rgba(255,255,255,.09); --borde: rgba(255,255,255,.14);
  --radio: 26px; --radio-s: 16px; --fila: 44px;
  --morado: #b14dff; --rosa: #ff5fb2; --verde: #2fd66b; --ambar: #ffb224; --pitc: #4b6b8f;
  --blando: #ff3b30; --medio: #ffd60a; --duro: #f4f4f4; --inter: #30d158; --lluvia: #0a84ff;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body { font-family: "Montserrat", system-ui, sans-serif; background: var(--fondo); color: var(--tinta); font-size: 13px;
  font-variant-numeric: tabular-nums; overflow-x: hidden; padding: 14px; padding-top: calc(14px + env(safe-area-inset-top)); }
[hidden] { display: none !important; }

/* fondo: los dos círculos de las plantillas de parrilla */
.fondo { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.fondo i { position: absolute; border-radius: 50%; background: linear-gradient(135deg, #232323, #121212); border: 1px solid #4a4a4a; }
.fondo .c1 { width: 62vmax; height: 62vmax; left: -34vmax; top: -40vmax; }
.fondo .c2 { width: 70vmax; height: 70vmax; right: -38vmax; bottom: -46vmax; }

.cristal { background: var(--cristal); border: 1px solid var(--borde); border-radius: var(--radio);
  -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 10px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08); }

/* botones */
.btn { font: 600 12px "Montserrat", sans-serif; letter-spacing: .04em; color: var(--tinta); background: var(--cristal2);
  border: 1px solid var(--borde); border-radius: 999px; padding: 10px 18px; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background .2s ease, border-color .2s ease; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn:hover { background: rgba(255,255,255,.16); }
.btn:active { transform: scale(.96); }
.btn.primario, .btn.activo { background: #fff; color: #000; border-color: #fff; }
.btn.icono { padding: 10px 13px; min-width: 40px; }
.btn.mini { padding: 4px 11px; font-size: 14px; }
select.btn { appearance: none; padding-right: 18px; }
select.btn option { color: #000; }
.grupo { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* barra superior */
.barra { display: flex; align-items: center; gap: 18px; padding: 12px 18px; margin-bottom: 14px; flex-wrap: wrap; }
.marca { display: flex; align-items: center; gap: 12px; }
.marca img { height: 34px; }
.marca span { font-weight: 800; letter-spacing: .28em; font-size: 12px; line-height: 1.3; }
.marca small { display: block; font-weight: 500; letter-spacing: .34em; color: var(--tinta2); font-size: 9px; }
.sesion { flex: 1; min-width: 220px; }
.titulo { font-weight: 800; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; }
.chips { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.chip { font-weight: 700; font-size: 11px; letter-spacing: .08em; padding: 4px 11px; border-radius: 999px; background: var(--cristal2);
  border: 1px solid var(--borde); text-transform: uppercase; transition: background .4s ease, color .4s ease; }
.chip.tenue { color: var(--tinta2); font-weight: 600; }
.chip.p1 { background: #1f8f47; border-color: #2fd66b; } .chip.p2 { background: #c99700; color: #000; border-color: #ffd60a; }
.chip.p4, .chip.p6, .chip.p7 { background: #ff9f0a; color: #000; border-color: #ffb224; } .chip.p5 { background: #d20a12; border-color: #ff453a; }
/* alerta de bandera: ocupa todo el ancho de la barra superior */
.alerta { flex: 1 1 100%; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 12px 18px; border-radius: 18px;
  font-weight: 900; font-size: 22px; letter-spacing: .2em; text-transform: uppercase; text-align: center; animation: baja .35s cubic-bezier(.2,.8,.2,1); }
.alerta small { font-weight: 700; font-size: 12px; letter-spacing: .14em; opacity: .8; }
.alerta.a2 { background: #ffd60a; color: #000; }
.alerta.a4, .alerta.a6, .alerta.a7 { background: #ff9f0a; color: #000; }
.alerta.a5 { background: #e0101a; color: #fff; animation: baja .35s cubic-bezier(.2,.8,.2,1), late 1s ease-in-out infinite; }
.alerta.a1 { background: #1f8f47; color: #fff; }
@keyframes baja { from { opacity: 0; transform: translateY(-10px); } }
@keyframes late { 50% { background: #7a070c; box-shadow: 0 0 40px rgba(224,16,26,.7); } }
.barra { transition: border-color .4s ease, box-shadow .4s ease; }
.barra.a2 { border-color: #ffd60a; box-shadow: 0 0 34px rgba(255,214,10,.28); }
.barra.a4, .barra.a6, .barra.a7 { border-color: #ff9f0a; box-shadow: 0 0 34px rgba(255,159,10,.3); }
.barra.a5 { border-color: #ff453a; box-shadow: 0 0 44px rgba(224,16,26,.5); }
.mandos { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.aviso { margin-bottom: 14px; padding: 10px 18px; border-radius: var(--radio-s); background: rgba(255,178,36,.14);
  border: 1px solid rgba(255,178,36,.5); font-weight: 600; }
.aviso.error { background: rgba(210,10,18,.18); border-color: rgba(255,69,58,.6); }

/* rejilla principal */
main { display: grid; grid-template-columns: var(--tabla, minmax(0, max-content)) 12px minmax(300px, 1fr); gap: 4px; align-items: start; }
main.sin-lateral .divisor { display: none; }
.divisor { align-self: stretch; min-height: 120px; cursor: col-resize; border-radius: 6px; position: relative; touch-action: none; }
.divisor::after { content: ""; position: absolute; left: 4px; top: 40%; height: 20%; min-height: 60px; width: 4px; border-radius: 4px; background: rgba(255,255,255,.22); transition: background .2s; }
.divisor:hover::after, .divisor.activo::after { background: #fff; }
main.sin-lateral { grid-template-columns: minmax(0, 1fr); }
.lateral { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; align-content: start; min-width: 0; }
#t-mapa, #t-piloto { grid-column: 1 / -1; }
.tarjeta { padding: 14px; }
.tcab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 10px; }
h2 { font-size: 18px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h3 { font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--tinta2); }

/* tabla */
.tabla-tarjeta { padding: 8px; position: relative; min-height: 300px; }
.tabla-scroll { overflow-x: auto; overflow-y: hidden; border-radius: 20px; }
.tabla { min-width: 100%; width: max-content; }
.cab { display: grid; height: 36px; align-items: center; font-size: 10px; font-weight: 700; letter-spacing: .14em; color: var(--tinta2);
  text-transform: uppercase; border-bottom: 1px solid var(--borde); }
.cab > div { position: relative; padding: 0 10px; height: 100%; display: flex; align-items: center; cursor: grab; user-select: none; overflow: hidden; white-space: nowrap; }
.cab > div.sobre { background: rgba(255,255,255,.12); }
.cab .asa { position: absolute; right: 0; top: 6px; bottom: 6px; width: 9px; cursor: col-resize; border-right: 2px solid rgba(255,255,255,.14); }
.cab .asa:hover { border-right-color: #fff; }
.filas { position: relative; }
/* tiradores de la tabla: abajo estira o encoge las filas, arriba encoge la barra superior */
.asa-v { height: 14px; cursor: row-resize; position: relative; touch-action: none; border-radius: 6px; }
.asa-v::after { content: ""; position: absolute; left: 50%; top: 5px; width: 64px; margin-left: -32px; height: 4px; border-radius: 4px;
  background: rgba(255,255,255,.22); transition: background .2s; }
.asa-v:hover::after, .asa-v.activo::after { background: #fff; }
#asa-arriba { height: 10px; margin-top: -4px; } #asa-arriba::after { top: 2px; }
.tabla.redim .fila { transition: none; }
/* filas apretadas: el contenido se ajusta al alto para que no se monte una fila encima de otra */
.tabla.compacta .fila { border-radius: 9px; }
.tabla.compacta .escudo { height: 20px; min-width: 40px; font-size: 11px; border-radius: 7px; }
.tabla.compacta .rueda { width: 20px; height: 20px; font-size: 9.5px; border-width: 1.5px; }
.tabla.compacta .c.pos { font-size: 13px; }
.tabla.compacta .minis i { height: 11px; }
.tabla.compacta .pit { padding: 2px 7px; }
.tabla.mini .c { font-size: 11.5px; }
.tabla.mini .escudo { height: 17px; min-width: 36px; font-size: 10px; }
.tabla.mini .rueda { width: 17px; height: 17px; font-size: 8.5px; outline-width: 1px; }
.tabla.mini .piloto small { display: none; }
.tabla.mini .minis i { height: 9px; }
.tabla.mini .pit { padding: 1px 6px; font-size: 9px; }
.fila { position: absolute; left: 0; right: 0; height: var(--fila); display: grid; align-items: center;
  border-radius: 14px; transition: transform .55s cubic-bezier(.2,.8,.2,1), opacity .4s ease, box-shadow .4s ease;
  background: linear-gradient(90deg, var(--eq-a, transparent), transparent 46%); will-change: transform; }
.fila + .fila { }
.fila::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 1px; background: rgba(255,255,255,.06); }
.fila.fuera { opacity: .42; }
.fila.ko { opacity: .6; }
.fila.sube { box-shadow: inset 3px 0 0 var(--verde); } .fila.baja { box-shadow: inset 3px 0 0 #ff453a; }
.fila.destello-v { animation: dv 1.6s ease; } .fila.destello-m { animation: dm 1.6s ease; }
@keyframes dv { 0%, 40% { background-color: rgba(47,214,107,.34); } 100% { background-color: transparent; } }
@keyframes dm { 0%, 40% { background-color: rgba(177,77,255,.42); } 100% { background-color: transparent; } }
.c { padding: 0 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; }
.c.pos { font-weight: 800; font-size: 15px; text-align: center; }
.piloto { display: flex; align-items: center; gap: 9px; }
.escudo { min-width: 46px; height: 26px; padding: 0 8px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px; letter-spacing: .06em; border: 1px solid rgba(255,255,255,.22); }
.piloto small { color: var(--tinta2); font-weight: 500; font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.t-morado { color: var(--morado); } .t-verde { color: var(--verde); } .t-ambar { color: var(--ambar); } .t-ant { color: var(--tinta3); }
.tenue { color: var(--tinta2); font-weight: 500; }

/* neumático: rueda con su letra */
.neum { display: inline-flex; align-items: center; gap: 7px; }
.rueda { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle, #0c0c0d 0 52%, transparent 54%), var(--nc, #555);
  border: 2px solid #0c0c0d; outline: 1.5px solid var(--nc, #555); display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: var(--nc, #aaa); }
.rueda.S { --nc: var(--blando); } .rueda.M { --nc: var(--medio); } .rueda.H { --nc: var(--duro); } .rueda.I { --nc: var(--inter); } .rueda.W { --nc: var(--lluvia); }
.neum small { color: var(--tinta2); font-weight: 600; }

/* minisectores y sectores */
/* minisectores agrupados por sector, con su etiqueta */
.minis { display: flex; gap: 10px; align-items: center; }
.minis > span { display: flex; gap: 2px; align-items: center; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.22); }
.minis > span:first-child { padding-left: 0; border-left: 0; }
.minis b { font-size: 9px; font-weight: 800; letter-spacing: .06em; color: var(--tinta2); margin-right: 4px; }
.minis b, .minis i { flex: none; }
.minis i { width: 7px; height: 14px; border-radius: 3px; background: rgba(255,255,255,.10); transition: background .25s ease; }
.minis i.s2048 { background: var(--ambar); } .minis i.s2049 { background: var(--verde); } .minis i.s2051 { background: var(--rosa); } .minis i.s2064 { background: var(--pitc); }
.sects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sects span { text-align: right; }
.pit { display: inline-block; padding: 3px 9px; border-radius: 8px; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.pit.en { background: #fff; color: #000; } .pit.pista { background: var(--verde); color: #000; } .pit.out { background: #e0101a; color: #fff; }

.vacio { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; }
.vacio img { height: 70px; opacity: .9; }
.vacio p { color: var(--tinta2); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 12px; }

/* reproductor: la sesión se maneja como un vídeo */
.reproductor { flex: 1 1 100%; display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--borde); }
.reproductor .tiempo { font-weight: 700; font-size: 12px; min-width: 58px; text-align: center; color: var(--tinta2); }
.reproductor input[type=range] { flex: 1; min-width: 80px; height: 6px; accent-color: #fff; cursor: pointer; }
#b-sonido.suena { background: #fff; color: #000; transform: scale(1.15); }

/* radios de equipo */
.chips-radio { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.chips-radio button { font: 800 10.5px "Montserrat"; letter-spacing: .05em; padding: 5px 8px; border-radius: 8px; border: 1px solid rgba(255,255,255,.2);
  background: transparent; color: var(--tinta2); cursor: pointer; transition: all .15s ease; }
.chips-radio button.on { color: var(--eq-t, #fff); background: var(--eq, #fff); border-color: transparent; }
#radio-lista div { grid-template-columns: auto 1fr; align-items: center; }
#radio-lista button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--borde); background: var(--cristal2); color: #fff; cursor: pointer; }
#radio-lista div.sonando { outline: 1.5px solid #fff; }
#radio-lista div.sonando button { background: #fff; color: #000; }

.btn.directo { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.btn.directo i, .chip.vivo::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #e0101a; display: inline-block; animation: late-punto 1.2s ease-in-out infinite; }
.chip.vivo { color: #fff; border-color: #e0101a; display: inline-flex; align-items: center; gap: 7px; }
@keyframes late-punto { 50% { opacity: .25; } }

/* mapa */
.mapa { position: relative; height: 260px; min-height: 120px; }
.mapa svg { width: 100%; height: 100%; display: block; }
.mapa .sin { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--tinta3); font-weight: 600; }
.pista-b { fill: none; stroke: rgba(255,255,255,.16); stroke-linejoin: round; stroke-linecap: round; }
.pista-a { fill: none; stroke: #fff; stroke-linejoin: round; stroke-linecap: round; opacity: .85; }
.pista-a.e2, .pista-a.e4, .pista-a.e6, .pista-a.e7 { stroke: #ffb224; } .pista-a.e5 { stroke: #ff453a; }
.tramo { fill: none; stroke: #ffd60a; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(255,214,10,.9)); }
.tramo.doble { animation: parpadeo .7s steps(2) infinite; }
@keyframes parpadeo { 50% { opacity: .25; } }
.mapa .bandera { position: absolute; left: 8px; bottom: 6px; font-weight: 800; font-size: 11px; letter-spacing: .12em; color: #ffd60a; text-transform: uppercase; }
.coche { transition: transform .45s linear; }
#coches.estimado .coche { transition: none; }      /* en modo estimado la posición se recalcula en cada fotograma */
.coche text { font: 800 1px "Montserrat"; fill: #fff; paint-order: stroke; stroke: #000; }

/* pestañas Circuito | Radar */
.tabs { display: flex; gap: 4px; }
.tab { font: 700 11px "Montserrat", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--tinta2); background: transparent;
  border: 1px solid transparent; border-radius: 999px; padding: 7px 11px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: all .2s ease; }
.tab.activo { color: #fff; background: var(--cristal2); border-color: var(--borde); }
.tab i { width: 9px; height: 9px; border-radius: 50%; background: #0a84ff; animation: late-punto 1.2s ease-in-out infinite; box-shadow: 0 0 10px currentColor; }
.radar-caja { height: auto !important; aspect-ratio: 1; max-height: 760px; min-height: 0; }
.lateral > section { min-width: 0; }
#t-mapa .tcab > div:last-child { display: flex; gap: 4px; flex-wrap: nowrap; }
.radar-caja img { width: 100%; height: 100%; object-fit: contain; border-radius: 16px; display: block; }
.radar-mandos { display: flex; align-items: center; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.radar-mandos input[type=range] { flex: 1; min-width: 90px; accent-color: #fff; }
.radar-mandos .tiempo { font-weight: 700; color: var(--tinta2); min-width: 44px; text-align: center; }
.radar-mandos select.btn { padding: 6px 12px; font-size: 11px; max-width: 210px; }
.radar-nivel { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; margin-bottom: 10px; }
.radar-nivel p { font-weight: 600; line-height: 1.4; }
.radar-prev .barras { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; align-items: end; margin: 6px 0 10px; }
.radar-prev .barras div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; min-height: 66px; }
.radar-prev .barras i { width: 100%; border-radius: 4px 4px 2px 2px; background: var(--lluvia); }
.radar-prev .barras b { font-size: 9.5px; font-weight: 700; color: var(--tinta2); }
.radar-prev .barras small { font-size: 9px; color: var(--tinta3); height: 11px; white-space: nowrap; }
#radar-alertas a.btn, #radar-alertas button.btn { display: inline-block; margin-top: 6px; text-decoration: none; font-size: 11px; }
.lluvia-aviso { flex: 1 1 100%; padding: 10px 18px; border-radius: 16px; font-weight: 700; letter-spacing: .06em; cursor: pointer; text-align: center; animation: baja .35s cubic-bezier(.2,.8,.2,1); }
.lluvia-aviso small { font-weight: 600; opacity: .85; margin-left: 8px; }

/* cuenta atrás hasta la próxima sesión: grande y centrada en la barra superior, en una fila propia (no tapa la tabla) */
.cuenta-banner { flex: 1 1 100%; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  padding: 12px 8px 4px; border-top: 1px solid var(--borde); }
.cb-reloj { display: flex; justify-content: center; gap: clamp(8px, 2.4vw, 22px); }
.cb-reloj > div { min-width: clamp(58px, 17vw, 112px); padding: 8px 6px 7px; border-radius: 18px; background: rgba(0,0,0,.5); border: 1px solid var(--borde); }
.cb-reloj b { display: block; font-weight: 800; font-size: clamp(34px, 9.5vw, 68px); line-height: 1; letter-spacing: .02em; color: #fff; }
.cb-reloj small { display: block; margin-top: 5px; font-weight: 700; font-size: clamp(9px, 2.4vw, 11px); letter-spacing: .2em; text-transform: uppercase; color: var(--tinta2); }
.cb-pie { display: flex; flex-direction: column; gap: 2px; max-width: 100%; }
.cb-pie b { font-weight: 800; font-size: clamp(14px, 3.6vw, 18px); letter-spacing: .08em; text-transform: uppercase; overflow-wrap: anywhere; }
.cb-pie span { font-weight: 600; font-size: clamp(12px, 3.2vw, 14px); color: var(--tinta2); overflow-wrap: anywhere; }
.cb-vivo { display: inline-flex; align-items: center; gap: 14px; padding: 10px 26px; border-radius: 999px; background: #e0101a; color: #fff;
  font-weight: 900; font-size: clamp(22px, 6vw, 38px); letter-spacing: .18em; text-transform: uppercase; }
.cb-vivo i { width: .5em; height: .5em; border-radius: 50%; background: #fff; animation: late-punto 1.2s ease-in-out infinite; }
.cuenta-banner.vivo .cb-pie span { color: #fff; }

/* hoja «Sesiones»: la siguiente sesión destacada y, debajo, los grandes premios que vienen */
.prox-dest { font: inherit; color: #000; background: #fff; border: 0; border-radius: 20px; padding: 16px 18px; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 3px; width: 100%; transition: transform .15s ease; }
.prox-dest:active { transform: scale(.985); }
.prox-dest small { font-weight: 800; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: #5c5e63; display: flex; align-items: center; gap: 7px; }
.prox-dest small i { width: 9px; height: 9px; border-radius: 50%; background: #e0101a; animation: late-punto 1.2s ease-in-out infinite; }
.prox-dest h3 { color: #000; font-size: 26px; font-weight: 900; letter-spacing: .04em; line-height: 1.1; }
.prox-dest > b { font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.prox-dest span { font-weight: 600; color: #3a3c40; }
.prox-dest em { font-style: normal; font-weight: 800; color: #000; }
.prox-dest em::before { content: "· "; }
.prox-dest .cuando { margin-top: 6px; font-weight: 800; font-size: 15px; color: #000; }
.prox-dest .cuando::first-letter { text-transform: uppercase; }
.prox-dest .falta { font-weight: 700; }
.prox-gp { display: flex; flex-direction: column; gap: 4px; }
.prox-gp .nota { margin: 0 4px 4px; }
.prox-ses { font: 600 12.5px "Montserrat", sans-serif; color: var(--tinta); background: var(--cristal); border: 1px solid var(--borde); border-radius: 12px;
  padding: 9px 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; cursor: pointer; text-align: left; }
.prox-ses:hover { background: rgba(255,255,255,.13); }
.prox-ses b { font-weight: 700; }
.prox-ses span { color: var(--tinta2); text-align: right; white-space: nowrap; }
.gp-nombre.archivo { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--borde); color: var(--tinta2); }

/* piloto a seguir */
#piloto-sel { padding: 7px 14px; font-size: 11px; max-width: 230px; }
.pil-cab { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; margin-bottom: 10px; }
.pil-id { display: flex; align-items: center; gap: 12px; min-width: 190px; }
.pil-pos { min-width: 62px; height: 62px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 24px;
  border: 1px solid rgba(255,255,255,.22); padding: 0 8px; }
.pil-nom b { display: block; font-size: 16px; font-weight: 800; } .pil-nom small { color: var(--tinta2); font-weight: 600; }
.pil-datos { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 6px; margin-bottom: 10px; }
.pil-cab .pil-datos { margin-bottom: 0; }
.pil-datos > div { background: var(--cristal); border: 1px solid var(--borde); border-radius: 14px; padding: 8px 10px; min-width: 0; }
.pil-datos b { display: block; font-size: 15px; font-weight: 800; white-space: nowrap; }
.pil-datos small { color: var(--tinta2); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pil-datos .neum small { font-size: 11px; letter-spacing: 0; text-transform: none; }
.pil-vuelta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.pil-vuelta .pil-crono { flex: 1 1 110px; }
.pil-vuelta .pil-sect { flex: 3 1 230px; min-width: 0; }
.pil-crono { background: var(--cristal2); border: 1px solid var(--borde); border-radius: 16px; padding: 8px 14px; display: flex; flex-direction: column; justify-content: center; }
.pil-crono b { font-size: 28px; font-weight: 800; line-height: 1.1; }
.pil-crono small { color: var(--tinta2); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pil-sect { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pil-s { min-width: 0; border-radius: 14px; padding: 8px 9px; background: rgba(255,255,255,.07); border: 1px solid var(--borde); transition: background .3s ease; }
.pil-s small { display: block; font-size: 9px; font-weight: 800; letter-spacing: .14em; opacity: .8; }
.pil-s b { font-size: 15px; font-weight: 800; white-space: nowrap; }
.pil-s.morado { background: var(--morado); border-color: transparent; } .pil-s.verde { background: #1f9f4f; border-color: transparent; }
.pil-s.ambar { background: #e0a100; color: #000; border-color: transparent; } .pil-s.ant { opacity: .45; }
.t-rojo { color: #ff453a; }
/* telemetría del piloto a seguir: reloj de velocidad y revoluciones con la marcha, pedales y modos */
.pil-tel { display: grid; grid-template-columns: minmax(130px, 190px) auto; justify-content: space-evenly; gap: 12px; align-items: center; margin-bottom: 10px;
  padding: 12px; border-radius: 18px; background: var(--cristal); border: 1px solid var(--borde); min-width: 0; }
.pil-telcaja { container-type: inline-size; }
@container (min-width: 560px) { .pil-tel { grid-template-columns: minmax(150px, 190px) auto minmax(0, 1fr); justify-content: stretch; } .pil-tel .tel-modos { grid-column: auto; grid-template-columns: 1fr; } }
.pil-tel.sin > :not(.tel-nota) { opacity: .25; }
.tel-reloj { position: relative; aspect-ratio: 1; }
.tel-reloj svg { width: 100%; height: 100%; display: block; }
.tel-reloj path { fill: none; stroke-linecap: round; }
.tel-fondo { stroke: rgba(255,255,255,.1); stroke-width: 9; } .tel-fondo.fino { stroke-width: 4; }
.tel-vel { stroke: #fff; stroke-width: 9; stroke-dasharray: 100 100; stroke-dashoffset: 100; transition: stroke-dashoffset .12s linear; }
.tel-rpm { stroke: var(--eq, #fff); stroke-width: 4; stroke-dasharray: 100 100; stroke-dashoffset: 100; transition: stroke-dashoffset .12s linear; }
.tel-centro { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.tel-centro b { font-size: clamp(34px, 3.4vw, 46px); font-weight: 900; }
.tel-centro span { font-size: 18px; font-weight: 800; margin-top: 4px; }
.tel-centro small, .tel-rpm-txt { color: var(--tinta2); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.tel-rpm-txt { position: absolute; left: 0; right: 0; bottom: 4%; text-align: center; letter-spacing: .06em; }
.tel-pedales { display: flex; gap: 10px; height: 100%; min-height: 130px; }
.tel-pedal { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 44px; }
.tel-tubo { flex: 1; width: 16px; border-radius: 9px; background: rgba(255,255,255,.1); position: relative; overflow: hidden; }
.tel-tubo i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; border-radius: 9px; transition: height .12s linear; }
.tel-pedal.acel i { background: var(--verde); } .tel-pedal.freno i { background: #ff453a; }
.tel-pedal b { font-size: 12px; font-weight: 800; } .tel-pedal small { font-size: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tinta2); }
.tel-modos { display: grid; gap: 8px; min-width: 0; grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
.tel-modo { border-radius: 14px; padding: 8px 11px; background: rgba(255,255,255,.07); border: 1px solid var(--borde); min-width: 0; transition: background .3s ease, border-color .3s ease; }
.tel-modo small { display: block; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tinta2); }
.tel-modo b { display: block; font-size: 14px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.tel-modo span { display: block; font-size: 11px; font-weight: 600; color: var(--tinta2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tel-modo span:empty { display: none; }
.tel-modo.activo { background: rgba(10,132,255,.22); border-color: #0a84ff; } .tel-modo.activo b { color: #64b5ff; }
.tel-modo.despliegue { background: rgba(47,214,107,.16); border-color: rgba(47,214,107,.6); } .tel-modo.despliegue b { color: var(--verde); }
.tel-modo.clipping { background: rgba(255,178,36,.16); border-color: rgba(255,178,36,.6); } .tel-modo.clipping b { color: var(--ambar); }
.tel-modo.recarga { background: rgba(10,132,255,.14); border-color: rgba(10,132,255,.5); } .tel-modo.recarga b { color: #64b5ff; }
.tel-modo.apagado b { color: var(--tinta2); }
.tel-nota { grid-column: 1 / -1; font-size: 10px; font-weight: 500; color: var(--tinta3); line-height: 1.4; }
.pil-tel.estimada .tel-nota::before { content: "≈ "; font-weight: 800; color: var(--ambar); }
.pil-stints { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.pil-stint { display: inline-flex; align-items: center; gap: 7px; background: var(--cristal); border: 1px solid var(--borde); border-radius: 999px; padding: 4px 12px 4px 5px; }
.pil-stint b { font-weight: 700; } .pil-stint small { color: var(--tinta2); font-weight: 700; }
.pil-fila, .pil-hist > div { display: grid; grid-template-columns: 22px minmax(58px, 1.25fr) repeat(3, minmax(42px, 1fr)) minmax(40px, .9fr) minmax(0, 1.5fr); gap: 5px; align-items: center; padding: 5px 6px; font-weight: 600; font-size: 11.5px; white-space: nowrap; }
.pil-hist > div > span { overflow: hidden; text-overflow: ellipsis; }
.pil-hcab { font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tinta2); border-bottom: 1px solid var(--borde); }
.pil-hist { max-height: 264px; overflow-y: auto; }
.pil-hist > div { border-radius: 10px; }
.pil-hist > div:nth-child(odd) { background: rgba(255,255,255,.04); }
.pil-hist > div > span:first-child { color: var(--tinta2); font-weight: 800; }
.pil-hist small { color: var(--tinta2); margin-left: 5px; }
.rueda.mini { width: 20px; height: 20px; font-size: 9px; vertical-align: middle; }
.marcas { display: flex; gap: 4px; flex-wrap: wrap; }
.m { font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: .06em; padding: 2px 6px; border-radius: 6px; background: #fff; color: #000; white-space: nowrap; }
.m.e2 { background: #ffd60a; } .m.e4, .m.e6, .m.e7 { background: #ff9f0a; } .m.e5 { background: #e0101a; color: #fff; }

/* clima y dirección de carrera */
.clima { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.clima div { background: var(--cristal); border: 1px solid var(--borde); border-radius: var(--radio-s); padding: 9px 10px; }
.clima b { display: block; font-size: 17px; font-weight: 800; }
.clima small { color: var(--tinta2); font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.rc { max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.rc div { display: grid; grid-template-columns: 8px 1fr; gap: 9px; padding: 8px 10px; border-radius: 12px; background: var(--cristal); font-weight: 500; font-size: 11.5px; line-height: 1.35; }
/* dirección de carrera: texto más grande y claro, y el último mensaje resaltado */
#rc { max-height: 380px; }
#rc > div { grid-template-columns: 6px 1fr auto; padding: 9px 12px; font-weight: 600; font-size: 13px; line-height: 1.4; color: #fff; border: 1px solid transparent; overflow-wrap: anywhere; }
.rc-b { align-self: center; font: 700 10px "Montserrat", sans-serif; letter-spacing: .06em; padding: 6px 9px; border-radius: 9px; border: 1px solid var(--borde);
  background: var(--cristal2); color: #fff; cursor: pointer; white-space: nowrap; }
.rc-b:hover { background: rgba(255,255,255,.18); }
#rc-txt, #rc-copiar { font-size: 11px; }
#rc > div:first-child { background: var(--cristal2); border-color: var(--borde); }
#rc small { color: var(--tinta2); font-size: 11px; font-weight: 700; letter-spacing: .06em; margin-bottom: 2px; }
.rc i { width: 8px; border-radius: 4px; background: #555; }
.rc i.YELLOW, .rc i.DOUBLE { background: var(--medio); } .rc i.GREEN, .rc i.CLEAR { background: var(--verde); } .rc i.RED { background: var(--blando); }
.rc i.BLUE { background: var(--lluvia); } .rc i.CHEQUERED { background: #fff; }
.rc small { color: var(--tinta3); display: block; font-size: 10px; }

/* hojas (sesiones y ajustes) */
.velo { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 20; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.hoja { position: fixed; z-index: 21; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(620px, calc(100vw - 24px));
  max-height: min(84vh, 820px); overflow-y: auto; padding: 20px; background: rgba(20,20,22,.82); animation: entra .28s cubic-bezier(.2,.8,.2,1); }
@keyframes entra { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } }
.lista { display: flex; flex-direction: column; gap: 6px; }
.gp-nombre { margin: 12px 4px 4px; font-weight: 800; letter-spacing: .12em; font-size: 12px; text-transform: uppercase; }
.gp-ses { display: flex; gap: 6px; flex-wrap: wrap; }
.btn[disabled] { opacity: .35; cursor: default; }
.pestanas { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.nota { color: var(--tinta2); margin-bottom: 10px; font-weight: 500; line-height: 1.5; }
.linea { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 4px; flex-wrap: wrap; }
.item { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 14px; background: var(--cristal); margin-bottom: 6px; font-weight: 600; }
.item input[type=range] { width: 110px; accent-color: #fff; }
.item input[type=color] { width: 38px; height: 28px; border: 0; background: none; padding: 0; }
.campo { font: 600 13px "Montserrat"; color: #fff; background: var(--cristal2); border: 1px solid var(--borde); border-radius: 999px; padding: 10px 16px; flex: 1; min-width: 0; }
.interruptor { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; cursor: pointer; }
.interruptor input, .item input[type=checkbox] { width: 18px; height: 18px; accent-color: #fff; }
.panel .btn { margin-top: 8px; }
.leyenda { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.leyenda span { display: flex; align-items: center; gap: 8px; font-weight: 500; } .leyenda b { font-weight: 600; }
.p { width: 14px; height: 14px; border-radius: 5px; } .p.morado { background: var(--morado); } .p.rosa { background: var(--rosa); } .p.verde { background: var(--verde); } .p.ambar { background: var(--ambar); }

/* barra superior más pequeña (tirador de arriba de la tabla): b1 compacta, b2 lo justo en una línea */
.barra.b1 { gap: 10px; padding: 6px 12px; margin-bottom: 8px; }
.barra.b1 .marca img { height: 24px; }
.barra.b1 .marca span { font-size: 10px; } .barra.b1 .marca small { font-size: 8px; }
.barra.b1 .titulo { font-size: 14px; }
.barra.b1 .chips { margin-top: 3px; } .barra.b1 .chip { padding: 2px 9px; font-size: 10px; }
.barra.b1 .btn { padding: 6px 12px; } .barra.b1 .btn.icono { padding: 6px 10px; min-width: 34px; }
.barra.b1 .alerta { padding: 6px 14px; font-size: 16px; } .barra.b1 .lluvia-aviso { padding: 6px 14px; }
.barra.b1 .cuenta-banner { gap: 4px; padding: 6px 8px 2px; }
.barra.b1 .cb-reloj > div { min-width: clamp(44px, 12vw, 76px); padding: 4px 4px 3px; border-radius: 12px; }
.barra.b1 .cb-reloj b { font-size: clamp(20px, 5vw, 36px); } .barra.b1 .cb-reloj small { margin-top: 2px; font-size: 8px; }
.barra.b1 .cb-vivo { padding: 5px 16px; }
.barra.b1 .reproductor { padding-top: 5px; gap: 6px; }
.barra.b2 .reproductor { padding-top: 3px; border-top: 0; }
.barra.b2 { padding: 4px 10px; margin-bottom: 6px; }
.barra.b2 .marca span, .barra.b2 .cb-pie, .barra.b2 .alerta small { display: none; }
.barra.b2 .marca img { height: 20px; }
.barra.b2 .sesion { display: flex; align-items: center; gap: 10px; min-width: 0; }
.barra.b2 .titulo { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.barra.b2 .chips { margin-top: 0; flex-wrap: nowrap; }
.barra.b2 .btn { padding: 4px 10px; font-size: 11px; } .barra.b2 .btn.icono { padding: 4px 8px; min-width: 30px; }
.barra.b2 .alerta { padding: 4px 12px; font-size: 13px; }
.barra.b2 .cuenta-banner { flex-direction: row; justify-content: center; padding: 4px 6px 0; }
.barra.b2 .cb-reloj { gap: 6px; } .barra.b2 .cb-reloj > div { min-width: 40px; padding: 2px 4px; border-radius: 9px; }
.barra.b2 .cb-reloj b { font-size: 18px; } .barra.b2 .cb-reloj small { display: none; }
.barra.b2 .cb-vivo { padding: 3px 12px; }

/* móvil */
@media (max-width: 1020px) {
  body { padding: 10px; padding-top: calc(10px + env(safe-area-inset-top)); }
  main { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .divisor { display: none; }
  .reproductor { flex-wrap: wrap; }
  .reproductor input[type=range] { flex-basis: 100%; order: 9; }
  .barra { gap: 10px; padding: 12px; }
  .marca span { display: none; }
  .titulo { font-size: 14px; }
  .sesion { flex: 1 1 60%; min-width: 0; }
  .barra { overflow: hidden; }
  .btn { padding: 9px 13px; }
}
@media (prefers-reduced-motion: reduce) { .fila, .coche { transition: none; } .fila.destello-v, .fila.destello-m { animation: none; } }

/* bandera del país junto al nombre del gran premio: proporción 3:2, recortada sin deformar */
.bgp { display: inline-block; height: 1em; width: 1.5em; object-fit: cover; border-radius: .2em; vertical-align: -.14em; margin-right: .55em;
  box-shadow: 0 0 0 1px rgba(255,255,255,.28), 0 1px 4px rgba(0,0,0,.5); background: rgba(255,255,255,.08); }
.bgp.grande { height: 20px; width: 30px; border-radius: 4px; margin-right: 0; vertical-align: middle; }
.bgp[hidden] { display: none; }

/* ───────── cuentas (solo en la versión en internet) ───────── */
/* quien no es el administrador solo mira: sin descargas (TXT, PNG) ni textos para publicar */
.solo-ver .rc-b, .solo-ver #rc-txt, .solo-ver #rc-copiar, .solo-ver .btn.png, .solo-ver #radar-alertas a[download], .solo-ver #radar-alertas button[data-png], .solo-ver #radar-alertas button[data-ig],.solo-ver .resultado .cuerpo > div { display: none !important; }
.solo-ver .resultado .cuerpo { grid-template-columns: minmax(0, 560px); }
.cuenta-boton.dentro { border-color: rgba(255,255,255,.45); }
.cuenta-capa { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-start; justify-content: center; padding: max(16px, 6vh) 12px 16px; overflow: auto;
  background: rgba(0,0,0,.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cuenta-caja { width: min(440px, 100%); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.cuenta-form { display: flex; flex-direction: column; gap: 10px; }
.cuenta-campo { display: flex; flex-direction: column; gap: 5px; }
.cuenta-campo span { font-weight: 700; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--tinta2); padding-left: 6px; }
.cuenta-campo .campo { flex: none; width: 100%; border-radius: 14px; color-scheme: dark; }
.cuenta-campo .campo:focus { outline: 2px solid rgba(255,255,255,.55); outline-offset: 1px; }
.cuenta-form .btn.primario { align-self: stretch; padding: 12px; margin-top: 4px; }
.cuenta-form .btn[disabled] { opacity: .5; cursor: wait; }
.cuenta-error { margin: 0; padding: 9px 12px; border-radius: 12px; font-weight: 600; font-size: 12.5px; line-height: 1.4; background: rgba(224,16,26,.18); border: 1px solid rgba(224,16,26,.6); }
.cuenta-error.bien { background: rgba(31,143,71,.2); border-color: rgba(47,214,107,.6); }
.cuenta-error[hidden] { display: none; }
.cuenta-provs { display: flex; flex-direction: column; gap: 8px; }
.cuenta-prov { text-align: center; padding: 12px; text-decoration: none; font-size: 13px; }
.cuenta-prov.google { background: #fff; color: #1f1f1f; border-color: #fff; }
.cuenta-prov.apple { background: #000; color: #fff; border-color: rgba(255,255,255,.5); }
.cuenta-prov.microsoft { background: #2f2f2f; color: #fff; }
.cuenta-o { display: flex; align-items: center; gap: 10px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tinta2); }
.cuenta-o::before, .cuenta-o::after { content: ""; flex: 1; height: 1px; background: var(--borde); }
.cuenta-enlace { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: #fff; text-decoration: underline; cursor: pointer; }
.cuenta-acepta { display: flex; gap: 9px; align-items: flex-start; font-size: 11.5px; line-height: 1.45; color: var(--tinta2); }
.cuenta-acepta input { margin-top: 2px; flex: none; width: 16px; height: 16px; }
.cuenta-datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.cuenta-datos div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cuenta-datos small { font-weight: 700; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--tinta2); }
.cuenta-datos b { font-weight: 700; overflow-wrap: anywhere; }
.cuenta-fila { display: flex; gap: 8px; flex-wrap: wrap; }
.invitados { display: flex; flex-direction: column; gap: 8px; max-height: 40vh; overflow-y: auto; }
.invitado { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.invitado div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.invitado b { font-weight: 700; overflow-wrap: anywhere; }
.invitado small { color: var(--tinta2); font-weight: 600; font-size: 11.5px; }
.invitado small.bien { color: #2fd66b; }
.cuenta-caja details { border-top: 1px solid var(--borde); padding-top: 10px; }
.cuenta-caja summary { cursor: pointer; font-weight: 700; font-size: 12px; letter-spacing: .06em; margin-bottom: 8px; }

/* ───────── plan Gratis / Pro, anuncios y avisos legales (solo en la versión en internet) ───────── */
.plan-chip { font-weight: 800; font-size: 10px; letter-spacing: .16em; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--borde); color: var(--tinta2); }
.plan-chip.pro { color: #111; background: linear-gradient(135deg, #ffe08a, #f5b301); border-color: transparent; }
.btn.pro-cta { color: #111; background: linear-gradient(135deg, #ffe08a, #f5b301); border-color: transparent; font-weight: 800; }
.btn.pro-cta:hover { filter: brightness(1.08); }
.con-candado::after { content: " 🔒"; font-size: .85em; }
.pro-lista { list-style: none; display: flex; flex-direction: column; gap: 7px; margin: 0; padding: 0; text-align: left; }
.pro-lista li { position: relative; padding-left: 24px; font-weight: 600; line-height: 1.4; }
.pro-lista li::before { content: "✓"; position: absolute; left: 2px; font-weight: 900; color: #f5b301; }
.pro-planes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pro-plan { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 8px; border-radius: 16px; cursor: pointer; font-family: inherit;
  color: #fff; background: var(--cristal2); border: 1px solid var(--borde); transition: transform .12s ease, border-color .12s ease; }
.pro-plan:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.6); }
.pro-plan.destacado { border-color: #f5b301; box-shadow: 0 0 0 1px #f5b301 inset; }
.pro-plan small { font-weight: 700; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--tinta2); text-align: center; }
.pro-plan b { font-weight: 900; font-size: 26px; }
.pro-plan span { font-size: 11.5px; color: var(--tinta2); }
/* pantalla de bloqueo: vista previa difuminada del análisis, con el candado encima */
.pro-muro { position: relative; margin-top: 14px; min-height: min(78vh, 720px); border-radius: 22px; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 22px 14px; }
.pro-muro-fondo { position: absolute; inset: -30px; background: url("/pro-previa.jpg") center top / cover no-repeat; filter: blur(9px) saturate(.9); opacity: .55; }
.pro-muro::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(5,5,6,.35), rgba(5,5,6,.88)); }
.pro-muro-caja { position: relative; z-index: 1; width: min(460px, 100%); padding: 26px 22px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.pro-muro-caja h2 { font-size: 17px; letter-spacing: .1em; }
.pro-muro-caja p { margin: 0; color: var(--tinta2); line-height: 1.5; }
.pro-candado { font-size: 34px; line-height: 1; }
.pro-muro-caja .pro-cta { padding: 13px 34px; font-size: 13px; }
/* anuncios: huecos fijos, fuera de tablas y gráficos */
.anuncio { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 14px auto; width: 100%; max-width: 970px; min-height: 100px; padding: 6px;
  border-radius: 16px; border: 1px dashed var(--borde); overflow: hidden; }
.anuncio.lateral { max-width: none; min-height: 250px; margin: 0; }
.anuncio small { font-size: 9px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--tinta3, #8b8d91); }
.anuncio span { margin: auto; font-size: 11px; color: var(--tinta2); text-align: center; }
.anuncio ins { width: 100%; }
.pie-legal { margin: 18px auto 10px; padding: 0 12px; text-align: center; font-size: 11.5px; color: var(--tinta2); }
.pie-legal a, .pie-legal .cuenta-enlace { color: var(--tinta2); font-weight: 600; }
.cookies { position: fixed; z-index: 70; left: 12px; right: 12px; bottom: 12px; margin: 0 auto; max-width: 760px; padding: 14px 16px; display: flex; gap: 12px 16px; align-items: center; flex-wrap: wrap;
  background: rgba(14,15,17,.96); box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.cookies p { margin: 0; flex: 1 1 320px; font-size: 12.5px; line-height: 1.5; }
.cookies a { color: #fff; font-weight: 700; }
.cookies-botones { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
@media (max-width: 560px) { .pro-planes { grid-template-columns: 1fr; } .cookies-botones { width: 100%; } .cookies-botones .btn { flex: 1; } }
/* en pantallas estrechas la columna lateral va debajo de la tabla: ahí basta con el anuncio del pie */
@media (max-width: 980px) { .anuncio.lateral { display: none; } .anuncio { min-height: 70px; } }
.cuenta-acepta a { color: #fff; font-weight: 700; }

/* ───────── vistas gratuitas y paso de anuncio ───────── */
.pro-precio { margin: 0; font-weight: 800; font-size: 15px; color: #ffe08a; }
#libre { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.libre-bloque { padding: 16px; }
.libre-elegir { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; }
.libre-elegir select.btn { max-width: 100%; padding-right: 26px; }
.libre-fichas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.libre-ficha { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; text-align: left; padding: 14px; border-radius: 16px; cursor: pointer; font-family: inherit;
  color: #fff; background: var(--cristal2); border: 1px solid var(--borde); transition: transform .12s ease, border-color .12s ease; }
.libre-ficha:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.55); }
.libre-ficha b { font-weight: 800; font-size: 14px; letter-spacing: .03em; }
.libre-ficha span { font-size: 12px; color: var(--tinta2); line-height: 1.4; }
.libre-ficha small { margin-top: 4px; font-weight: 800; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: #2fd66b; }
.libre-ficha.pro { background: transparent; border-style: dashed; }
.libre-ficha.pro small { color: #f5b301; }
#libre-vista { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 12px; }
#libre-vista:empty { display: none; }
.libre-titulo { font-size: 16px; letter-spacing: .08em; text-transform: uppercase; margin: 6px 4px 0; }
.libre-res { max-width: 760px; }
.libre-res canvas { width: 100%; display: block; }
/* la pantalla intermedia del anuncio: el anuncio solo vive aquí, nunca encima del resultado */
.paso { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 14px; overflow: auto;
  background: rgba(0,0,0,.86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.paso-caja { width: min(520px, 100%); padding: 16px; display: flex; flex-direction: column; gap: 12px; align-items: stretch; text-align: center; }
.paso-rotulo { font-weight: 800; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--tinta2); }
.paso-anuncio { min-height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 14px; border: 1px dashed var(--borde); padding: 8px; overflow: hidden; }
.paso-anuncio ins { width: 100%; }
.paso-propio { display: flex; flex-direction: column; gap: 8px; padding: 22px 16px; }
.paso-propio b { font-size: 20px; font-weight: 900; letter-spacing: .06em; color: #ffe08a; }
.paso-propio span { color: var(--tinta2); line-height: 1.5; }
.paso-cookies p { margin: 0 0 10px; font-size: 12.5px; line-height: 1.5; }
.paso-cookies .cuenta-fila { justify-content: center; }
.paso-nota { margin: 0; }
.paso-pie { display: flex; align-items: center; justify-content: center; gap: 12px; }
.paso-reloj { width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); display: inline-flex; align-items: center; justify-content: center; }
.paso-reloj[hidden] { display: none; }
.paso-cuenta { font-weight: 900; font-size: 17px; }
.paso-pie .btn { padding: 12px 30px; }
.paso-pie .btn[disabled] { opacity: .35; cursor: not-allowed; }
@media (max-width: 560px) { .paso-anuncio { min-height: 200px; } .libre-bloque { padding: 12px; } }
/* redes sociales en el pie */
.redes { display: flex; gap: 10px; justify-content: center; margin: 0 0 10px; }
.redes a { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff;
  background: var(--cristal2); border: 1px solid var(--borde); transition: transform .12s ease, background .12s ease, color .12s ease; }
.redes a:hover { transform: translateY(-2px); background: #fff; color: #000; opacity: 1; }
.redes svg { width: 17px; height: 17px; display: block; }

/* ───────── «Elige tu plan»: comparativa Gratis / Pro ───────── */
.cuenta-caja.ancha { width: min(680px, 100%); }
.planes-lema { margin: 0; font-size: 14px; font-weight: 600; color: var(--tinta2); }
.planes-actual { margin: 0; padding: 10px 14px; border-radius: 12px; font-weight: 800; color: #111; background: linear-gradient(135deg, #ffe08a, #f5b301); }
table.planes { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
table.planes th, table.planes td { padding: 9px 8px; border-bottom: 1px solid var(--borde); text-align: center; vertical-align: middle; }
table.planes tbody th { text-align: left; font-weight: 600; line-height: 1.35; }
table.planes thead th { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--tinta2); border-bottom: 0; padding-bottom: 10px; }
table.planes td { width: 92px; font-weight: 900; font-size: 15px; }
table.planes td small { display: block; font-weight: 600; font-size: 9.5px; letter-spacing: .04em; color: var(--tinta2); margin-top: 1px; }
table.planes td.si { color: #2fd66b; }
table.planes td.no { font-size: 13px; opacity: .75; }
/* la columna Pro, destacada de arriba abajo */
table.planes .pro { background: rgba(245,179,1,.10); border-left: 1px solid #f5b301; border-right: 1px solid #f5b301; }
table.planes thead th.pro { position: relative; color: #ffe08a; font-size: 13px; border-top: 1px solid #f5b301; border-radius: 12px 12px 0 0; padding-top: 16px; }
table.planes tbody tr:last-child .pro { border-bottom: 1px solid #f5b301; border-radius: 0 0 12px 12px; }
table.planes td.pro.si { color: #ffe08a; }
.planes-rec { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 3px 9px; border-radius: 999px; font-size: 8.5px; letter-spacing: .12em; color: #111; background: linear-gradient(135deg, #ffe08a, #f5b301); white-space: nowrap; }
/* lo que solo tiene Pro, con acento */
table.planes tr.solo-pro th { color: #ffe08a; }
.planes-compra { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; padding: 12px 14px; border-radius: 16px; border: 1px solid #f5b301; background: rgba(245,179,1,.08); }
.planes-periodo { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--borde); background: rgba(0,0,0,.35); }
.planes-periodo button { font: 700 12px "Montserrat", sans-serif; color: var(--tinta2); background: transparent; border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.planes-periodo button.activo { color: #111; background: #fff; }
.planes-periodo em { font-style: normal; font-weight: 800; font-size: 10px; padding: 2px 6px; border-radius: 999px; color: #111; background: #f5b301; }
.planes-importe { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; margin-left: auto; }
.planes-precio { font-weight: 900; font-size: 30px; line-height: 1; color: #ffe08a; }
.planes-detalle { font-size: 11.5px; color: var(--tinta2); }
.planes-botones { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.planes-botones .btn { padding: 12px 20px; }
.planes-botones .pro-cta { padding: 13px 34px; font-size: 13px; }
@media (max-width: 560px) {
  table.planes { font-size: 11.5px; } table.planes td { width: 62px; font-size: 14px; } table.planes th, table.planes td { padding: 8px 5px; }
  .planes-importe { align-items: flex-start; margin-left: 0; } .planes-botones .btn { flex: 1 1 100%; } .planes-botones { flex-direction: column-reverse; }
}
