/* Bildi — estilos. Identidad: grafito + amarillo obra («Construimos relaciones humanas»).
   Los nombres de variables (--plum, --coral) se mantienen para no tocar el resto del código:
   --plum = grafito, --coral = amarillo. Un solo tema claro, con todos los colores definidos aquí. */
:root {
  --plum: #22252B; --plum-2: #3A3E47; --plum-3: #8A909B; --plum-soft: #EEF0F2; --plum-line: #D3D7DD;
  --coral: #FFC530; --coral-2: #8A6400; --coral-soft: #FFF1C7; --coral-ink: #22252B;
  --ink: #1E2026; --muted: #5B606B; --faint: #9AA0AA; --line: #E2E5EA; --bg: #F4F5F7; --white: #ffffff;
  --ok: #1f7a45; --ok-bg: #e2f4e8; --bad: #b8321f; --bad-bg: #fbe5e2; --gold: #FFC530; --gold-ink: #22252B;
  --f-d: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --f-b: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-m: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --r: 14px;
  --shadow: 0 1px 2px rgb(34 37 43 / .05), 0 8px 24px rgb(34 37 43 / .08);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--f-b); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--f-d); margin: 0; line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.mono { font-family: var(--f-m); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.eyebrow { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--muted); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--f-d); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; text-decoration: none; }
.logo svg { width: 32px; height: 32px; flex: none; }
.logo span { font-weight: 700; letter-spacing: -.05em; font-size: 1.5rem; line-height: 1; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 11px 18px; font-weight: 700; border: 1.5px solid transparent; text-decoration: none; transition: transform .08s, background .15s; }
.btn:active { transform: scale(.98); }
.btn.coral { background: var(--coral); color: var(--coral-ink); }
.btn.coral:hover { background: var(--coral-2); }
.btn.plum { background: var(--plum); color: #fff; }
.btn.plum:hover { background: var(--plum-2); }
.btn.ghost { background: var(--white); border-color: var(--line); }
.btn.ghost:hover { background: var(--plum-soft); }
.btn.link { background: none; padding: 6px 4px; color: var(--plum); text-decoration: underline; text-underline-offset: 3px; }
.btn.block { width: 100%; }
.btn.sm { padding: 7px 12px; font-size: .88rem; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Fichas */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; font-size: .82rem; font-weight: 600; background: var(--plum-soft); color: var(--plum); border: 0; white-space: nowrap; }
.chip.hit { background: var(--coral); color: var(--coral-ink); }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.gold { background: var(--gold); color: var(--gold-ink); }
.chip.solid { background: var(--plum); color: #fff; }
.chip button { background: none; border: 0; padding: 0 0 0 2px; font-weight: 800; color: inherit; opacity: .65; line-height: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ================= Landing ================= */
.land { display: grid; grid-template-columns: 1fr 1fr; position: relative; }
.land-nav { position: absolute; inset: 0 0 auto 0; display: flex; justify-content: space-between; align-items: center; padding: 20px clamp(16px, 4vw, 44px); z-index: 2; }
.land-nav .logo { color: #fff; }
.land-nav .btn { background: rgb(255 255 255 / .16); color: #fff; padding: 9px 16px; }
.door { padding: 116px clamp(16px, 5vw, 60px) 48px; display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden; min-height: 600px; text-decoration: none; }
.door.a { background: var(--plum); color: #fff; }
.door.b { background: var(--coral); color: var(--coral-ink); }
.door .who { font-family: var(--f-d); font-weight: 600; font-size: .92rem; text-transform: uppercase; letter-spacing: .14em; opacity: .82; }
.door h1 { font-size: clamp(3rem, 7vw, 4.6rem); font-weight: 800; letter-spacing: -.035em; line-height: .98; }
.door p { font-size: 1.12rem; max-width: 440px; opacity: .92; }
.door .tags { display: flex; flex-wrap: wrap; gap: 8px; max-width: 480px; }
.door .tags span { padding: 5px 12px; border-radius: 99px; font-size: .88rem; font-weight: 600; }
.door.a .tags span { background: rgb(255 255 255 / .12); }
.door.b .tags span { background: rgb(34 37 43 / .1); }
.door .cta { margin-top: auto; padding-top: 18px; }
.door .btn { font-size: 1.1rem; padding: 15px 24px; border-radius: 14px; }
.door.a .btn { background: var(--coral); color: var(--coral-ink); }
.door.b .btn { background: var(--plum); color: #fff; }
.door .ring { position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 34px solid currentColor; opacity: .07; top: -60px; pointer-events: none; }
.door.a .ring { right: -170px; } .door.b .ring { left: -170px; }
.door:hover .btn { transform: translateX(3px); }
.explica { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; padding: clamp(32px, 5vw, 56px) clamp(16px, 5vw, 60px); background: var(--bg); }
.explica .vid { position: relative; border-radius: 18px; overflow: hidden; background: var(--plum); box-shadow: 0 18px 50px rgb(34 37 43 / .22); aspect-ratio: 16 / 9; width: 100%; max-width: 1100px; justify-self: center; }
.explica video { display: block; width: 100%; height: 100%; object-fit: contain; background: #15171B; }
.vid-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 9%; gap: 10px; width: 100%; border: 0; background: rgb(34 37 43 / .28); color: #fff; font-weight: 700; font-size: clamp(.9rem, 2.4vw, 1.05rem); cursor: pointer; }
.vid-play .ico { width: clamp(64px, 12vw, 88px); height: clamp(64px, 12vw, 88px); border-radius: 50%; background: var(--coral); color: var(--coral-ink); display: grid; place-items: center; font-size: clamp(1.6rem, 4vw, 2.2rem); padding-left: 6px; box-shadow: 0 10px 30px rgb(0 0 0 / .35); transition: transform .15s; }
.vid-play:hover .ico { transform: scale(1.07); }
.vid-play span:last-child { background: rgb(0 0 0 / .45); padding: 5px 12px; border-radius: 99px; }
.vid.activo .vid-play { display: none; }
.vid:fullscreen, .vid.full, .vid.vertical:fullscreen { border-radius: 0; box-shadow: none; max-width: none; width: 100vw; height: 100vh; aspect-ratio: auto; background: #000; display: grid; place-items: center; }
.vid:fullscreen video, .vid.full video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.vid:-webkit-full-screen { width: 100vw; height: 100vh; background: #000; border-radius: 0; }
.explica .txt { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.explica h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.025em; color: var(--plum); }
.explica h2 em { font-style: normal; color: var(--coral-2); }
.explica p { font-size: 1.05rem; color: #3D424C; max-width: 52ch; }
.pasos { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: p; }
.pasos li { counter-increment: p; position: relative; padding-left: 40px; font-size: .96rem; color: #3D424C; }
.pasos li::before { content: counter(p); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%; background: var(--coral); color: var(--coral-ink); display: grid; place-items: center; font-family: var(--f-d); font-weight: 800; font-size: .9rem; }
.pasos b { color: var(--ink); }
@media (max-width: 860px) { .explica { grid-template-columns: minmax(0, 1fr); } }
/* Versión vertical (teléfono): 9:16, del ancho de la pantalla sin pasar el alto visible */
.explica .vid.vertical { aspect-ratio: 9 / 16; width: min(100%, calc(86svh * 9 / 16)); max-width: none; }
@media (max-width: 600px) { .explica .vid.vertical { border-radius: 14px; } }
.explica .vid.vertical:fullscreen, .explica .vid.vertical.full { width: 100vw; height: 100vh; aspect-ratio: auto; border-radius: 0; }
.howto { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding: 32px clamp(16px, 5vw, 60px) 36px; background: #fff; }
.howto div { display: flex; gap: 12px; align-items: flex-start; }
.howto .n { width: 34px; height: 34px; border-radius: 50%; background: var(--plum-soft); color: var(--plum); display: grid; place-items: center; font-family: var(--f-d); font-weight: 800; flex: none; }
.howto b { font-family: var(--f-d); font-size: 1.02rem; display: block; }
.howto p { font-size: .9rem; color: var(--muted); }
.land-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 18px clamp(16px, 5vw, 60px); font-size: .86rem; color: var(--muted); border-top: 1px solid var(--line); background: #fff; }
.land-foot a { color: var(--plum); font-weight: 600; }
@media (max-width: 860px) {
  .land { grid-template-columns: 1fr; }
  .door { min-height: 0; padding-top: 96px; }
  .door.b { padding-top: 44px; }
  .door.b .ring { display: none; }
  .howto { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) { .howto { grid-template-columns: 1fr; } }

/* ================= Formularios ================= */
.page { max-width: 600px; margin: 0 auto; padding: 22px 16px 60px; }
.topnav { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; max-width: 1100px; margin: 0 auto; }
.topnav .logo { color: var(--plum); }
.steps { display: flex; gap: 6px; }
.steps i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.steps i.on { background: var(--coral); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 480px) { .form { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span { font-size: .8rem; font-weight: 700; color: var(--muted); }
.field input, .field select, .field textarea { background: #fff; border: 1.5px solid var(--line); border-radius: 11px; padding: 10px 12px; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral-soft); }
.field textarea { resize: vertical; min-height: 78px; }
.hint { font-size: .78rem; color: var(--muted); }
.kwbox { background: #fff; border: 1.5px dashed var(--coral); border-radius: 12px; padding: 11px 12px; display: flex; flex-direction: column; gap: 9px; }
.kwbox .eyebrow { color: var(--coral-2); }
.kwadd { display: flex; gap: 6px; }
.kwadd input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 99px; padding: 5px 12px; font-size: .86rem; }
.error { background: var(--bad-bg); color: var(--bad); font-weight: 600; padding: 10px 12px; border-radius: 10px; font-size: .9rem; }
.card-soft { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }

/* Planes */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan { background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 13px; position: relative; text-align: left; }
.plan[aria-pressed="true"] { border: 2.5px solid var(--coral); box-shadow: 0 12px 30px rgb(255 197 48 / .35); }
.plan .tag { position: absolute; top: -12px; left: 22px; background: var(--coral); color: var(--coral-ink); font-size: .72rem; font-weight: 800; padding: 3px 10px; border-radius: 99px; }
.plan h3 { font-size: 1.5rem; }
.price { font-family: var(--f-d); font-weight: 800; font-size: 1.9rem; color: var(--plum); display: flex; align-items: baseline; gap: 6px; }
.price .blank { display: inline-block; width: 100px; border-bottom: 3px dashed var(--plum-line); height: 26px; }
.price small { font-family: var(--f-b); font-size: .84rem; font-weight: 600; color: var(--muted); }
.meter { display: flex; gap: 4px; align-items: center; font-size: .78rem; font-weight: 700; color: var(--muted); }
.meter i { width: 22px; height: 8px; border-radius: 2px; background: var(--line); }
.meter i.on { background: var(--coral); }
.plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: .92rem; }
.plan li { display: flex; gap: 8px; }
.plan li::before { content: "✓"; color: var(--ok); font-weight: 800; }
.plan li.no { color: var(--faint); } .plan li.no::before { content: "–"; color: var(--faint); }
.plan .pick { margin-top: auto; }
.plan[aria-pressed="true"] .pick { background: var(--coral); color: var(--coral-ink); border-color: var(--coral); }

/* ================= App (persona registrada) ================= */
.app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg); display: flex; flex-direction: column; position: relative; }
@media (min-width: 560px) { body.en-app { background: #E4E7EB; } .app { box-shadow: 0 0 40px rgb(34 37 43 / .1); } }
.appbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--plum); color: #fff; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.appbar .logo { font-size: 1.2rem; } .appbar .logo svg { width: 28px; height: 28px; }
.appbar h2 { font-size: 1.35rem; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .82rem; color: #fff; flex: none; font-family: var(--f-d); }
.avatar.lg { width: 72px; height: 72px; font-size: 1.6rem; }
.avatar.xl { width: 110px; height: 110px; font-size: 2.3rem; border: 5px solid #fff; }
.content { flex: 1; padding: 14px 16px 100px; display: flex; flex-direction: column; gap: 12px; }
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; display: flex; justify-content: space-around; padding: 8px 10px calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--line); z-index: 6; }
.tabbar button { background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .72rem; font-weight: 600; color: var(--muted); position: relative; padding: 4px 14px; }
.tabbar button[aria-current="page"] { color: var(--plum); }
.tabbar svg { width: 24px; height: 24px; }
.tabbar .dot { position: absolute; top: -2px; right: 6px; background: var(--coral); color: var(--coral-ink); font-size: .64rem; font-weight: 800; border-radius: 99px; padding: 0 5px; min-width: 17px; }

/* Filtros */
.filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.filters::-webkit-scrollbar { display: none; }
.filters button { white-space: nowrap; background: #fff; border: 1.5px solid var(--line); border-radius: 99px; padding: 5px 11px; font-size: .82rem; font-weight: 600; }
.filters button.on { background: var(--plum); border-color: var(--plum); color: #fff; }
.filters button.lock { color: var(--faint); }
.quota { font-size: .8rem; color: var(--muted); text-align: center; }

/* Mazo */
.deck { position: relative; height: min(560px, calc(100vh - 250px)); min-height: 440px; }
.card { position: absolute; inset: 0 0 84px 0; border-radius: 24px; background: #fff; box-shadow: 0 14px 34px rgb(34 37 43 / .16); overflow: hidden; display: flex; flex-direction: column; touch-action: pan-y; user-select: none; will-change: transform; }
.card.back { transform: scale(.94) translateY(16px); opacity: .55; box-shadow: none; pointer-events: none; }
.card.dragging { transition: none; cursor: grabbing; }
.card.fly { transition: transform .32s ease-in, opacity .32s; }
.card.snap { transition: transform .2s ease-out; }
.card .hero { min-height: 190px; position: relative; display: flex; align-items: flex-end; padding: 16px; color: #fff; flex: none; }
.card.t-adm .hero { background: linear-gradient(160deg, var(--plum-2), var(--plum)); }
.card.t-col .hero { background: linear-gradient(160deg, #FFD461, #F5B400); color: var(--coral-ink); }
.card .big { font-family: var(--f-d); font-weight: 800; font-size: 1.7rem; line-height: 1.04; }
.card .sub { font-size: .9rem; opacity: .9; margin-top: 4px; }
.card .aff { position: absolute; top: 14px; right: 14px; background: #fff; color: var(--plum); border-radius: 14px; padding: 6px 10px; text-align: center; font-weight: 800; font-family: var(--f-d); font-size: 1.35rem; line-height: 1; }
.card .aff small { display: block; font-family: var(--f-b); font-size: .6rem; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-top: 2px; }
.card .badges { position: absolute; top: 14px; left: 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.card .body { padding: 14px 16px; display: flex; flex-direction: column; gap: 11px; overflow: auto; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fact { background: var(--bg); border-radius: 12px; padding: 8px 10px; min-width: 0; }
.fact b { display: block; font-size: .95rem; overflow-wrap: anywhere; }
.fact span { font-size: .72rem; color: var(--muted); font-weight: 600; }
.quote { font-size: .92rem; font-style: italic; color: #3D424C; border-left: 3px solid var(--coral); padding-left: 10px; }
.stamp { position: absolute; top: 34px; z-index: 3; font-family: var(--f-d); font-weight: 800; font-size: 1.6rem; padding: 2px 12px; border-radius: 10px; background: rgb(255 255 255 / .9); opacity: 0; pointer-events: none; }
.stamp.yes { right: 22px; border: 4px solid var(--ok); color: var(--ok); transform: rotate(14deg); }
.stamp.no { left: 22px; border: 4px solid var(--bad); color: var(--bad); transform: rotate(-14deg); }
.actions { position: absolute; bottom: 4px; left: 0; right: 0; display: flex; justify-content: center; gap: 26px; align-items: center; }
.act { width: 64px; height: 64px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgb(34 37 43 / .15); font-size: 1.6rem; font-weight: 800; border: 0; color: var(--muted); }
.act.yes { width: 76px; height: 76px; background: var(--coral); color: var(--coral-ink); font-size: 2.2rem; line-height: 1; }
.act:hover { transform: scale(1.05); }
.empty { text-align: center; padding: 38px 18px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.empty .big-ico { font-size: 2.6rem; }
.empty h3 { font-size: 1.3rem; }

/* Match */
.overlay { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: rgb(18 20 24 / .6); padding: 16px; }
.matchov { width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: 28px; background: linear-gradient(170deg, var(--plum) 0%, #15171B 100%); color: #fff; display: flex; flex-direction: column; align-items: center; padding: 40px 22px 24px; text-align: center; gap: 12px; }
.matchov h2 { font-size: 3rem; font-weight: 800; color: var(--coral); letter-spacing: -.03em; line-height: .95; }
.duo { display: flex; align-items: center; margin: 8px 0 2px; }
.duo { position: relative; }
.duo .avatar + .trato + .avatar { margin-left: -24px; }
.duo .trato { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); z-index: 2; width: 62px; height: 62px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 2.1rem; box-shadow: 0 6px 18px rgb(0 0 0 / .3); }
.duo .avatar:last-child { position: relative; z-index: 1; }
.contact { background: rgb(255 255 255 / .08); border-radius: 16px; padding: 14px; width: 100%; text-align: left; display: flex; flex-direction: column; gap: 6px; font-size: .92rem; }
.contact .r { display: flex; justify-content: space-between; gap: 10px; }
.contact .r b { text-align: right; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: no-preference) { .matchov { animation: pop .35s cubic-bezier(.2, 1.4, .4, 1); } @keyframes pop { from { transform: scale(.85); opacity: 0; } } }

/* Hoja inferior (filtros) */
.sheet { position: fixed; inset: auto 0 0 0; margin: 0 auto; max-width: 480px; background: #fff; border-radius: 22px 22px 0 0; padding: 18px 18px calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 31; display: flex; flex-direction: column; gap: 12px; max-height: 85vh; overflow: auto; }
.lockrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--bg); border-radius: 10px; padding: 9px 12px; font-size: .88rem; color: var(--muted); }

/* Matches + notas */
.mrow { background: #fff; border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); }
.mhead { display: flex; gap: 12px; align-items: center; width: 100%; background: none; border: 0; padding: 0; text-align: left; }
.mhead h4 { font-size: 1.05rem; }
.notas { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.notas button { height: 42px; border-radius: 10px; font-family: var(--f-d); font-weight: 800; font-size: 1.05rem; background: var(--bg); border: 1.5px solid var(--line); color: var(--muted); padding: 0; }
.notas button:hover { border-color: var(--coral); }
.notas button[aria-pressed="true"] { background: var(--coral); border-color: var(--coral); color: var(--coral-ink); }
.scale { display: flex; justify-content: space-between; font-size: .7rem; font-weight: 700; color: var(--muted); }
.grade { font-family: var(--f-d); font-weight: 800; color: var(--plum); }
.grade-big { font-family: var(--f-d); font-weight: 800; font-size: 2.6rem; color: var(--plum); line-height: 1; }
.grade-big small { font-size: 1.1rem; color: var(--muted); }
.dist { display: flex; flex-direction: column; gap: 3px; font-size: .72rem; color: var(--muted); font-weight: 700; min-width: 130px; }
.dist div { display: grid; grid-template-columns: 12px 1fr 18px; gap: 6px; align-items: center; }
.dist i { display: block; height: 7px; border-radius: 3px; background: var(--plum); min-width: 2px; }
.dist .trk { background: var(--bg); border-radius: 3px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 12px; font-weight: 600; z-index: 40; box-shadow: var(--shadow); max-width: calc(100% - 32px); font-size: .92rem; }
.toast.err { background: var(--bad); }
.toast.match { background: var(--coral); color: var(--coral-ink); }

/* ================= Panel de administración ================= */
.adm { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--plum); color: #fff; padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.side .logo { margin: 0 6px 22px; color: #fff; }
.side button { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: .92rem; color: rgb(255 255 255 / .78); background: none; border: 0; text-align: left; }
.side button[aria-current="page"] { background: rgb(255 255 255 / .13); color: #fff; }
.side button .n { background: var(--coral); color: var(--coral-ink); border-radius: 99px; font-size: .7rem; font-weight: 800; padding: 1px 7px; }
.side .foot { margin-top: auto; font-size: .78rem; color: rgb(255 255 255 / .6); padding: 0 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.side .foot #adm-salir { padding: 4px 0; color: #fff; text-decoration: underline; font-size: .82rem; }
.main { padding: 24px clamp(16px, 3vw, 30px) 40px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (max-width: 900px) {
  .adm { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .side { position: sticky; top: 0; height: auto; flex-direction: row; overflow-x: auto; padding: 10px 12px; gap: 4px; z-index: 5; }
  .side .logo { margin: 0 10px 0 0; } .side .logo span { display: none; }
  .side button { white-space: nowrap; gap: 6px; }
  .side .foot { margin: 0 0 0 auto; padding: 0 4px; flex: none; justify-content: center; }
  .side .foot .quien, .side .foot a { display: none; }
  .side .foot #adm-salir { padding: 10px 8px; white-space: nowrap; }
}
.bell { position: relative; width: 42px; height: 42px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; font-size: 1.15rem; }
.bell b { position: absolute; top: -6px; right: -6px; background: var(--coral); color: var(--coral-ink); font-size: .7rem; border-radius: 99px; padding: 1px 6px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; }
.kpi .v { font-family: var(--f-d); font-weight: 800; font-size: 1.9rem; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: .8rem; color: var(--muted); }
.kpi .s b { color: var(--ok); }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); } }
.box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.box h3 { font-size: 1.05rem; }
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; font-size: .78rem; padding: 6px 9px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, -110%); }
.notif { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.notif:last-child { border-bottom: 0; }
.notif .t { margin-left: auto; font-size: .76rem; color: var(--muted); white-space: nowrap; }
.pill-new { background: var(--coral); color: var(--coral-ink); font-size: .66rem; font-weight: 800; border-radius: 99px; padding: 2px 7px; flex: none; }
.pill-seen { background: var(--plum-soft); color: var(--plum); font-size: .66rem; font-weight: 800; border-radius: 99px; padding: 2px 7px; flex: none; }
.stackbar { display: flex; height: 24px; border-radius: 7px; overflow: hidden; gap: 2px; background: var(--bg); }
.stackbar i { display: block; height: 100%; }
.legend { display: flex; gap: 14px; font-size: .78rem; color: var(--muted); font-weight: 600; flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.kwrow { display: grid; grid-template-columns: minmax(80px, 120px) 1fr 34px; align-items: center; gap: 8px; font-size: .86rem; }
.kwrow .track { height: 10px; border-radius: 5px; background: var(--bg); }
.kwrow .track i { display: block; height: 100%; border-radius: 5px; background: var(--plum); }
.kwrow.c .track i { background: var(--coral); }
.kwrow .v { font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; }
.tbl { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .86rem; }
th { text-align: left; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 9px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.pl { font-size: .7rem; font-weight: 800; padding: 2px 8px; border-radius: 99px; }
.pl.basico { background: var(--plum-soft); color: var(--plum); }
.pl.destacado { background: var(--plum-line); color: var(--plum); }
.pl.premium { background: var(--plum); color: #fff; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 5px 12px; font-size: .82rem; font-weight: 600; }
.seg button[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); color: #fff; }
.login-box { max-width: 420px; margin: 12vh auto; padding: 0 16px; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.jornadas .seg button { padding: 8px 18px; font-size: .92rem; }

.door .para { font-family: var(--f-d); font-weight: 600; font-size: 1.15rem; max-width: 460px; opacity: 1; }

/* ================= Chat ================= */
.chatrow { flex-direction: row; align-items: center; gap: 12px; text-align: left; width: 100%; cursor: pointer; font: inherit; color: inherit; }
.chatrow:hover { border-color: var(--plum-line); }
.cr-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cr-txt h4 { font-size: 1.02rem; }
.cr-sub, .cr-prev { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-prev { font-size: .88rem; color: var(--muted); }
.cr-prev.nuevo { color: var(--ink); font-weight: 700; }
.badge-n { background: var(--coral); color: var(--coral-ink); font-weight: 800; font-size: .74rem; border-radius: 99px; min-width: 22px; height: 22px; display: grid; place-items: center; padding: 0 6px; flex: none; }
.content.en-chat { padding-bottom: 92px; gap: 10px; }
.appbar .avatar { width: 38px; height: 38px; }
.chat-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.datos-card { background: var(--ok-bg); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.datos-card .eyebrow { color: var(--ok); }
.datos-card b { text-align: right; overflow-wrap: anywhere; }
.chat { display: flex; flex-direction: column; gap: 8px; min-height: 240px; }
.chat-aviso { align-self: center; text-align: center; background: var(--plum-soft); color: var(--plum); border-radius: 14px; padding: 10px 14px; font-size: .82rem; max-width: 92%; }
.chat-aviso span { color: var(--muted); font-size: .76rem; }
.msg { max-width: 80%; align-self: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 8px 12px; }
.msg.mio { align-self: flex-end; background: var(--plum); color: #fff; border-color: var(--plum); border-radius: 16px 16px 4px 16px; }
.msg p { margin: 0; overflow-wrap: anywhere; }
.msg time { display: block; font-size: .68rem; opacity: .65; margin-top: 2px; text-align: right; }
.msg-sis { align-self: center; font-size: .8rem; color: var(--ok); background: var(--ok-bg); border-radius: 99px; padding: 4px 12px; }
.evaluar { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.evaluar summary { cursor: pointer; font-weight: 700; font-size: .9rem; }
.evaluar[open] summary { margin-bottom: 10px; }
.composer { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; display: flex; gap: 8px; padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--line); z-index: 6; }
.composer textarea { flex: 1; min-width: 0; resize: none; border: 1.5px solid var(--line); border-radius: 18px; padding: 9px 14px; max-height: 120px; }
.composer textarea:focus { outline: none; border-color: var(--coral); }
.composer .btn { border-radius: 18px; padding: 9px 16px; }
/* Registro de conversaciones (panel) */
.log { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.log-row { display: grid; grid-template-columns: 150px 110px 170px 1fr; gap: 10px; align-items: baseline; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: .86rem; }
.log-row:last-child { border-bottom: 0; }
.log-row.datos { background: var(--ok-bg); }
.log-row time { color: var(--muted); font-size: .76rem; }
.log-row .txt { overflow-wrap: anywhere; }
@media (max-width: 760px) { .log-row { grid-template-columns: 1fr; gap: 2px; } }

/* ================= App en computador (pantallas anchas) ================= */
@media (max-width: 899px) { .tabbar.oculta-movil { display: none; } }
@media (min-width: 900px) {
  body.en-app { background: #EEF0F2; }
  .app { max-width: 1180px; display: grid; grid-template-columns: 220px minmax(0, 1fr); grid-template-rows: auto 1fr; box-shadow: none; background: transparent; }
  .appbar { grid-column: 1 / -1; top: 0; border-radius: 0 0 18px 18px; padding: 14px 24px; }
  .tabbar { grid-column: 1; grid-row: 2; position: sticky; top: 84px; left: auto; transform: none; max-width: none; width: auto; align-self: start; flex-direction: column; justify-content: flex-start; gap: 4px; margin: 20px 0 0 16px; padding: 10px; border: 1px solid var(--line); border-radius: 18px; }
  .tabbar button { flex-direction: row; gap: 10px; font-size: .95rem; padding: 10px 12px; border-radius: 12px; justify-content: flex-start; }
  .tabbar button[aria-current="page"] { background: var(--plum-soft); }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar .dot { position: static; margin-left: auto; font-size: .72rem; padding: 1px 7px; }
  .content { grid-column: 2; grid-row: 2; padding: 20px 24px 40px; width: 100%; max-width: 820px; margin: 0 auto; }
  .sec-descubrir .content { max-width: 560px; }
  .deck { height: min(620px, calc(100vh - 220px)); }
  .content.en-chat { padding-bottom: 20px; }
  .composer { position: sticky; bottom: 0; left: auto; transform: none; max-width: none; border: 1px solid var(--line); border-radius: 18px; margin-top: auto; }
  .sheet { bottom: 50%; transform: translateY(50%); border-radius: 22px; max-width: 520px; }
  .toast { bottom: 28px; }
}

/* ================= Comunas de interés (lista desplegable por región) ================= */
.chip.lugar { background: var(--plum-soft); color: var(--plum); }
.chip.lugar button, .chip.hit button { background: none; border: 0; padding: 0 0 0 2px; font-weight: 800; color: inherit; cursor: pointer; }
.comunas { position: relative; }
.comunas > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; cursor: pointer; font-weight: 600; }
.comunas > summary::-webkit-details-marker { display: none; }
.comunas[open] > summary { border-color: var(--coral); border-radius: 12px 12px 0 0; }
.comunas[open] > summary b { transform: rotate(180deg); }
.comunas > summary b { transition: transform .15s; color: var(--muted); }
.cm-panel { border: 1.5px solid var(--coral); border-top: 0; border-radius: 0 0 12px 12px; background: #fff; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.cm-panel input[type=search] { border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 12px; width: 100%; font: inherit; }
.cm-panel input[type=search]:focus { outline: none; border-color: var(--coral); }
.cm-lista { max-height: min(320px, 50vh); overflow: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 4px; }
.cm-reg { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px 8px; }
.cm-tit { grid-column: 1 / -1; position: sticky; top: 0; background: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--coral-2); padding: 8px 2px 4px; z-index: 1; }
.cm-op { display: flex; align-items: center; gap: 8px; padding: 6px 6px; border-radius: 8px; cursor: pointer; font-size: .92rem; }
.cm-op:hover { background: var(--bg); }
.cm-op input { width: 18px; height: 18px; accent-color: var(--coral); flex: none; }
.cm-pie { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
#cm-chips:empty { display: none; }

/* ================= Dar de baja / eliminar ================= */
.btn.peligro { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn.peligro:hover { filter: brightness(1.08); }
.btn.peligro-borde { background: #fff; color: var(--bad); border: 1.5px solid #e8b4ac; }
.btn.peligro-borde:hover { background: var(--bad-bg); border-color: var(--bad); }
.zona-baja { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.zona-baja .btn { white-space: normal; }
.confirmar { width: min(440px, 100%); text-align: center; align-items: center; gap: 10px; padding: 26px 22px 20px; }
.confirmar .cf-ico { font-size: 2.2rem; line-height: 1; }
.confirmar h3 { font-size: 1.3rem; line-height: 1.2; }
.confirmar p { color: var(--muted); font-size: .95rem; margin: 0; }
.cf-bot { display: flex; gap: 10px; width: 100%; margin-top: 8px; }
.cf-bot .btn { flex: 1; justify-content: center; }
@media (max-width: 380px) { .cf-bot { flex-direction: column-reverse; } }

/* ================= Bildi: contraste del amarillo =================
   El amarillo obra va en rellenos (botones, chips, barras). En bordes y focos sobre blanco
   se usa grafito con un halo amarillo, para que se vean bien. */
:focus-visible { outline-color: var(--ink); box-shadow: 0 0 0 5px var(--coral); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--coral); }
.kwbox { border-color: #E0A800; }
.plan[aria-pressed="true"] { border-color: var(--ink); }
.quote { border-left-color: var(--coral); }
.notas button:hover, .composer textarea:focus, .cm-panel input[type=search]:focus { border-color: var(--ink); }
.comunas[open] > summary, .cm-panel { border-color: var(--ink); }
.cm-op input { accent-color: var(--ink); }
.logo svg { border-radius: 22%; }
.land-nav .btn { background: #fff; color: var(--ink); }
.land-nav .btn:hover { background: var(--plum-soft); }
/* Crédito al pie de la portada, en gris tenue */
.powered { text-align: center; font-size: .78rem; color: #6E737D; background: #fff; padding: 0 16px 18px; }
.powered a { color: inherit; text-decoration: none; }
.powered a:hover { text-decoration: underline; }
.plan .chip.lanz { align-self: flex-start; margin-top: -4px; }

/* ---------- v1.3: un video bajo cada sección de la portada ---------- */
.land .col { display: flex; flex-direction: column; min-width: 0; }
.land .col .door { flex: none; min-height: 630px; }
.vbox { padding: 4px clamp(16px, 5vw, 60px) 52px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.col.a .vbox { background: var(--plum); color: #fff; }
.col.b .vbox { background: var(--coral); color: var(--coral-ink); }
.vbox .ey { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.vid2 { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; width: 100%; box-shadow: 0 16px 40px rgb(0 0 0 / .28); background: #15171B; }
.vid2 video { display: block; width: 100%; height: 100%; object-fit: cover; background: #15171B; }
.vid2.activo video { object-fit: contain; }
.vid2 .vid-play { flex-direction: row; justify-content: flex-end; align-items: flex-end; padding: 0 16px 16px 0; background: transparent; }
.vid2 .vid-play .ico { width: 58px; height: 58px; font-size: 1.5rem; }
.vid2.activo .vid-play { display: none; }
.vid2.vertical { aspect-ratio: 9 / 16; width: min(100%, calc(80svh * 9 / 16)); align-self: center; }
.vid2:fullscreen, .vid2.full { border-radius: 0; box-shadow: none; width: 100vw; height: 100vh; aspect-ratio: auto; background: #000; }
.vid2:fullscreen video, .vid2.full video { object-fit: contain; background: #000; }
.vid2:-webkit-full-screen { width: 100vw; height: 100vh; background: #000; border-radius: 0; }
@media (max-width: 860px) {
  .land .col .door { min-height: 0; }
  .col.b .door { padding-top: 44px; }
}
.explica.solo { grid-template-columns: minmax(0, 1fr); max-width: 980px; margin: 0 auto; }

/* ---------- v1.3: inscripción con validación de correo ---------- */
.req { color: #B8321F; font-weight: 700; }
.aviso-correo { display: flex; gap: 8px; align-items: flex-start; background: #FFF6D6; border: 1px solid #F0D36E; color: #4A3A00; border-radius: 10px; padding: 9px 12px; font-size: .86rem; font-style: normal; margin-top: 6px; }
.ok-banner { display: flex; gap: 10px; align-items: center; background: var(--ok-bg); color: var(--ok); border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.valida { max-width: 560px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 36px 28px; }
.valida .ico { width: 76px; height: 76px; border-radius: 50%; background: var(--coral); display: grid; place-items: center; }
.valida h2 { font-size: 1.8rem; }
.valida .mail { font-weight: 700; color: var(--ink); background: var(--plum-soft); padding: 4px 10px; border-radius: 8px; overflow-wrap: anywhere; }
.valida .tips { text-align: left; background: var(--bg); border-radius: 12px; padding: 12px 16px; font-size: .88rem; color: var(--muted); width: 100%; }
.valida .row { flex-wrap: wrap; }
@media (max-width: 480px) { .valida { padding: 28px 18px; } .valida .row .btn { flex: 1 1 100%; } }
.aviso-admin { background: #FFF6D6; border: 1px solid #F0D36E; color: #4A3A00; border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-size: .92rem; }
.aviso-admin.ok { background: var(--plum-soft); border-color: var(--line); color: var(--ink); }

/* ---------- v1.3: evaluación una semana después del match ---------- */
.evaluar.cerrada { font-size: .88rem; color: var(--muted); line-height: 1.45; }
.evaluar.cerrada b { color: var(--ink); }
.evalua .notas { width: 100%; }
.evalua .avatar.lg { width: 64px; height: 64px; font-size: 1.4rem; }
.nota-pill { display: inline-flex; align-items: baseline; gap: 3px; padding: 2px 8px; border-radius: 99px; background: #FFF3CC; color: #6B4E00; font-family: var(--f-d); font-weight: 700; font-size: .78rem; line-height: 1.4; white-space: nowrap; vertical-align: middle; letter-spacing: 0; }
.nota-pill small { font-weight: 500; opacity: .75; font-size: .9em; }
.nota-pill.nueva { background: var(--plum-soft); color: var(--muted); font-weight: 600; }
.nota-pill.claro { background: var(--coral); color: var(--coral-ink); }
.nota-pill.claro.nueva { background: rgb(255 255 255 / .18); color: #fff; }
.t-col .nota-pill.claro { background: var(--plum); color: #fff; }
.t-col .nota-pill.claro.nueva { background: rgb(34 37 43 / .14); color: var(--coral-ink); }

/* ---------- v1.3: Bildi en el teléfono ---------- */
.banda-app { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; padding: 26px clamp(16px, 5vw, 60px); background: var(--plum); color: #fff; }
.banda-app .eyebrow { color: #FFE08A; }
.banda-app h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 4px 0 6px; color: #fff; }
.banda-app p { max-width: 60ch; opacity: .9; margin: 0; }
.banda-app .ba-bot { display: flex; flex-direction: column; gap: 8px; max-width: 340px; }
.banda-app .ba-bot .small { color: #C8CCD3; }
.banda-app .btn { justify-content: center; }

/* ---------- v1.4: celular, avisos y turnos ---------- */
.tel { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px; }
.tel select { width: auto; padding-right: 26px; }
.hint.ok-tel { color: var(--ok); font-style: normal; font-weight: 600; }
.hint.mal-tel { color: var(--bad); font-style: normal; font-weight: 600; }
.avisos { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.avisos > b { font-family: var(--f-d); font-size: 1rem; }
.avisos .ops { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .avisos .ops { grid-template-columns: 1fr; } }
.av-op { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 12px; background: #fff; text-align: left; font: inherit; color: inherit; cursor: pointer; width: 100%; }
.av-op.on { border-color: var(--plum); background: var(--plum-soft); }
.av-op .ck, .turno .ck { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--plum-line); flex: none; display: grid; place-items: center; font-size: 14px; font-weight: 800; color: #fff; }
.av-op.on .ck, .turno.on .ck { background: var(--plum); border-color: var(--plum); }
.av-op b { display: block; font-size: .95rem; }
.av-op span span { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; font-weight: 400; }
.turnos { display: flex; flex-direction: column; gap: 8px; }
.turno { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 12px; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; }
.turno.on { border-color: var(--plum); background: var(--plum-soft); }
.turno .tg { display: flex; gap: 12px; align-items: center; background: none; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; min-width: 0; }
.turno .nom b { font-family: var(--f-d); font-size: 1rem; display: block; } .turno .nom span { display: block; font-size: .8rem; color: var(--muted); }
.turno .hor { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); }
.turno .hor select { width: auto; padding: 6px 24px 6px 8px; font-size: .88rem; }
.turno:not(.on) .hor { opacity: .55; }
.turno .dias { grid-column: 1 / -1; display: flex; gap: 5px; flex-wrap: wrap; padding-left: 34px; }
.turno .dias button { width: 36px; height: 32px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: .8rem; }
.turno .dias button[aria-pressed="true"] { background: var(--plum); color: #fff; border-color: var(--plum); }
.turno .dias button:disabled { opacity: .5; }
@media (max-width: 520px) { .turno { grid-template-columns: minmax(0, 1fr); } .turno .hor { padding-left: 34px; } }
.av-op b i.ic { font-style: normal; }

/* ---------- Varias ofertas (v1.5) ---------- */
.tabbar button { padding: 4px 8px; }
.chip.est-ok { background: var(--ok-bg); color: var(--ok); }
.chip.est-pausa { background: #FFF3CC; color: #7A5A00; }
.chip.est-cerrada { background: #ECEDEF; color: #5B6068; }
.oferta { gap: 10px; }
.oferta h4 { margin: 0; }
.of-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.of-stats span { background: var(--plum-soft, #F1F2F4); border-radius: 10px; padding: 6px 10px; font-size: .85rem; }
.of-stats b { font-family: var(--f-d); font-size: 1.05rem; margin-right: 2px; }
.buscando { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.buscando select { flex: 1; min-width: 0; font: inherit; font-weight: 700; color: var(--ink, #22252B); background: #fff; border: 2px solid var(--coral, #FFC530); border-radius: 12px; padding: 9px 12px; }
.of-match { background: rgb(255 255 255 / .12); border-radius: 12px; padding: 8px 12px; font-weight: 600; margin: -4px auto 10px; max-width: 100%; }

/* ---------- Panel «Bildi en vivo» (v1.7) ---------- */
.live-chip{display:inline-block;margin-left:8px;background:#FFC530;color:#22252B;font-size:.68rem;font-weight:700;border-radius:999px;padding:2px 7px;vertical-align:1px}
.ev-cab{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;flex-wrap:wrap;margin-bottom:16px}
.ev-ctl{display:flex;gap:8px;flex-wrap:wrap}
.ev-livechip{display:inline-flex;align-items:center;gap:6px;background:#E8F7EE;color:#137A3A;font-size:.75rem;font-weight:700;border-radius:999px;padding:3px 10px;margin-right:6px}
.ev-livechip.off{background:#FDECEC;color:#A31919}.ev-livechip.off .ev-dot{background:#D93636;animation:none}
.ev-dot{width:9px;height:9px;border-radius:50%;background:#1FA64A;flex:none;animation:evlat 1.6s ease-out infinite}
@keyframes evlat{0%{box-shadow:0 0 0 0 rgb(31 166 74 / .5)}100%{box-shadow:0 0 0 9px rgb(31 166 74 / 0)}}
.ev-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:12px}
.ev-k{background:#fff;border:1px solid var(--line,#E2E5EA);border-radius:16px;padding:14px 16px;min-width:0}
.ev-k .l{font-size:.7rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#5B606B}
.ev-k .v{font-family:var(--f-d);font-size:2.1rem;font-weight:700;margin-top:4px;display:flex;align-items:center;gap:10px}
.ev-k .s{font-size:.8rem;color:#5B606B}.ev-k .up{color:#137A3A}.ev-k .down{color:#A31919}
.ev-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:12px}
.ev-col{display:flex;flex-direction:column;gap:12px;min-width:0}
.ev-dos{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:12px}
.ev-box{background:#fff;border:1px solid var(--line,#E2E5EA);border-radius:16px;padding:16px 18px;min-width:0}
.ev-box h3{margin:0 0 2px;font-size:1.05rem}
.ev-row{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;flex-wrap:wrap}
.ev-leyenda{display:flex;gap:12px;font-size:.8rem;color:#3D424C}.ev-leyenda i{display:inline-block;width:11px;height:11px;border-radius:3px;margin-right:5px;vertical-align:-1px}
.ev-bar:hover rect:last-child{opacity:.8}
.ev-embudo{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:8px}
.ev-embudo div{background:#F4F5F7;border-radius:10px;padding:8px 12px}.ev-embudo b{display:block;font-family:var(--f-d);font-size:1.35rem}.ev-embudo span{font-size:.75rem;color:#5B606B}
.ev-dona{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:6px}
.ev-ley{display:grid;grid-template-columns:14px 1fr auto auto;gap:8px;align-items:center;font-size:.88rem;margin:6px 0}.ev-ley i{width:12px;height:12px;border-radius:3px}.ev-ley small{color:#8A8F98;min-width:28px;text-align:right}
.ev-zona{display:grid;grid-template-columns:minmax(90px,130px) 1fr 40px;gap:10px;align-items:center;font-size:.88rem;margin:6px 0}
.ev-zona .tr{height:11px;background:#EEF0F2;border-radius:4px}.ev-zona .tr i{display:block;height:11px;border-radius:4px;background:#F2B200}.ev-zona b{text-align:right}
.ev-zona span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ev-it{display:flex;gap:12px;padding:10px 0;border-top:1px solid #EEF0F2;align-items:flex-start}
.ev-it .small{color:#5B606B}.ev-it b{font-size:.9rem}
.ev-it.nuevo{background:#FFF6D6;border-radius:12px;padding:10px;margin:4px -6px 0;border-top:0;animation:evnuevo .6s ease-out}
@keyframes evnuevo{from{transform:translateY(-6px);opacity:0}to{transform:none;opacity:1}}
.ev-ic{width:34px;height:34px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:17px;flex:none}
.ev-h{margin-left:auto;font-size:.75rem;color:#8A8F98;white-space:nowrap}
.ev-toast-caja{position:fixed;right:24px;top:24px;z-index:60;width:min(380px,calc(100vw - 32px))}
.ev-toast{background:#22252B;color:#fff;border-radius:16px;padding:14px 16px;box-shadow:0 16px 40px rgb(0 0 0 / .25);display:flex;gap:12px;animation:evnuevo .4s ease-out}
.ev-toast .small{color:#C9CDD4}
.ev-pant{display:flex;justify-content:space-between;gap:12px;align-items:center;border:1px solid #E2E5EA;border-radius:12px;padding:10px 12px;flex-wrap:wrap}
@media (max-width:1100px){.ev-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.ev-grid,.ev-dos{grid-template-columns:minmax(0,1fr)}}
@media (max-width:520px){.ev-embudo{grid-template-columns:repeat(2,minmax(0,1fr))}.ev-k .v{font-size:1.7rem}}

/* ---------- Pantalla para streamer (Infolan CMS) ---------- */
body.en-pantalla{background:#16181D}
.pant{min-height:100vh;background:#16181D;color:#fff;padding:2vw 2.4vw;box-sizing:border-box;display:flex;flex-direction:column;gap:1.2vw;font-size:clamp(14px,1vw,22px)}
.pant-cab{display:flex;justify-content:space-between;align-items:center}
.pant-marca{display:flex;align-items:center;gap:16px}.pant-marca .logo{font-size:2.2em}.pant-marca .logo svg rect:first-child{fill:#16181D}
.pant-sep{width:2px;height:1.8em;background:#3A3E46}.pant-titulo{font-family:var(--f-d);font-size:1.8em;font-weight:700;color:#FFC530}
.pant-der{display:flex;align-items:center;gap:16px}.pant-reloj{font-family:var(--f-d);font-size:1.8em;font-weight:700}
.pant .ev-livechip{background:#1F3A2A;color:#7EE2A2;font-size:.9em}
.pant .ev-k,.pant .ev-box{background:#22252B;border-color:#30343C;color:#fff}
.pant .ev-k .l,.pant .ev-k .s,.pant .small,.pant .muted{color:#9AA0AA}
.pant .ev-k .v{font-size:2.8em}
.pant .ev-box h3{font-size:1.25em;color:#fff}
.pant .ev-embudo div{background:#2C3038}.pant .ev-embudo span{color:#9AA0AA}
.pant .ev-zona .tr{background:#30343C}.pant .ev-zona .tr i{background:#FFC530}.pant .ev-zona,.pant .ev-ley{font-size:1em}
.pant .ev-it{border-color:#30343C}.pant .ev-it b{font-size:1.05em;color:#fff}.pant .ev-it .small{color:#C9CDD4}
.pant .ev-it.nuevo{background:#3A3420}.pant .ev-leyenda{color:#C9CDD4}
.pant .ev-up,.pant .ev-k .up{color:#7EE2A2}
.pant-pie{margin-top:auto;display:flex;justify-content:space-between;align-items:center;color:#8A8F98;font-size:.95em}
.infolan-cms{display:inline-flex;align-items:center;gap:10px;color:#fff;font-family:var(--f-d);font-size:1.25em;font-weight:700;letter-spacing:-.02em}
.infolan-cms b{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:#A5B4FC;font-size:.8em}
.pant-toast-caja{position:fixed;left:50%;top:7vh;transform:translateX(-50%);z-index:20}
.pant-toast{display:flex;align-items:center;gap:20px;background:#fff;color:#22252B;border-radius:24px;padding:22px 34px;font-size:1.5em;box-shadow:0 30px 80px rgb(0 0 0 / .5);animation:evnuevo .5s ease-out}
.pant-toast.match{background:#FFC530}.pant-toast-ic{font-size:2em}
.pant-error{text-align:center;margin:20vh auto}
.pant{height:100vh;overflow:hidden}
#pant-cuerpo{flex:1;min-height:0;overflow:hidden}
.pant .ev-k .v{font-size:2.4em}
.pant .ev-box > svg{max-height:24vh;display:block;margin:0 auto}
.pant .ev-dona svg{width:min(180px,16vh);height:auto}

/* Pagos con Flow */
.pago-box { display: flex; flex-direction: column; gap: 8px; background: var(--bg); border-radius: 12px; padding: 12px 14px; }
.pago-box .btn { align-self: flex-start; }
.pago-box.mal { background: var(--bad-bg); color: var(--bad); }
.pago-box.mal .small { color: var(--ink); }
.pago-box.aviso { background: var(--coral-soft); }
.ok-t { color: var(--ok); }
.est-pago { display: inline-block; border-radius: 99px; padding: 2px 9px; font-size: .78rem; font-weight: 700; white-space: nowrap; background: var(--plum-soft); color: var(--muted); }
.est-pago.p { background: #E3EDFB; color: #1D5AA6; } .est-pago.a { background: var(--ok-bg); color: var(--ok); } .est-pago.x { background: var(--bad-bg); color: var(--bad); }
.sheet .big-ico { font-size: 2.6rem; }
