/* Viral Studio · mismo sistema de diseño que Orion: claro, neutro, tarjetas blancas flotantes.
   El lima de Blink solo marca lo importante (puntuación alta, botón principal). */
:root {
  --accent: #1C1C21;
  --accent-ink: #FFFFFF;
  --lima: #D6FC16;
  --lima-ink: #2B3300;
  --font-display: 'Urbanist', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Manrope', ui-sans-serif, system-ui, sans-serif;

  --bg: #F2F2F4;
  --surface: #FFFFFF;
  --surface-2: #F7F7F9;
  --surface-3: #EEEEF1;
  --border: rgba(20, 20, 30, 0.07);
  --border-strong: rgba(20, 20, 30, 0.13);
  --text: #141418;
  --text-2: #3A3A42;
  --muted: #71717B;
  --faint: #A3A3AD;
  --success: #15803D; --success-bg: #E7F6EC;
  --danger: #D92D35;  --danger-bg: #FDECEC;

  /* Alias que usa app.js */
  --surface2: var(--surface-2);
  --line: var(--border-strong);

  --radius-lg: 24px;
  --radius: 18px;
  --radius-sm: 11px;
  --shadow-sm: 0 1px 2px rgba(16, 16, 24, 0.05);
  --shadow: 0 1px 2px rgba(16, 16, 24, 0.04), 0 10px 30px -12px rgba(16, 16, 24, 0.10);
  --shadow-lg: 0 2px 6px rgba(16, 16, 24, 0.04), 0 30px 70px -20px rgba(16, 16, 24, 0.25);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; color: var(--text); font: 400 14px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; background: var(--bg); }
/* Lienzo de Orion: degradado muy suave + grano */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 600px at 8% -10%, color-mix(in srgb, var(--lima) 14%, transparent), transparent 65%),
    radial-gradient(800px 700px at 105% 15%, color-mix(in srgb, var(--accent) 5%, #FFFFFF 40%), transparent 60%),
    radial-gradient(1000px 700px at 50% 120%, #E9E9EE, transparent 70%);
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--text); text-underline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes slide { from { opacity: 0; transform: translateX(28px); } }

/* Botones y campos (los de Orion) */
.btn, .login button {
  height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px;
  border-radius: var(--radius-sm); border: 1px solid transparent; background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 13.5px; box-shadow: 0 1px 2px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.14);
  transition: transform .15s, filter .15s, box-shadow .2s;
}
.btn:hover, .login button:hover { filter: brightness(1.12); box-shadow: 0 8px 20px -8px rgba(28,28,33,.6); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .4; cursor: default; }
.btn.sec, button.sec {
  height: 40px; padding: 0 14px; border-radius: var(--radius-sm); background: var(--surface); color: var(--text-2);
  border: 1px solid var(--border-strong); font-weight: 700; font-size: 13.5px; box-shadow: none;
}
button.sec:hover { border-color: rgba(20,20,30,.22); box-shadow: var(--shadow-sm); }
.login input, dialog input, textarea, .campo input, .input {
  width: 100%; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 10px 13px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.login input:focus, dialog input:focus, textarea:focus, .campo input:focus, .input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(28,28,33,.10); }

/* Login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login form {
  width: min(380px, 100%); display: grid; gap: 12px; text-align: center; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 32px 28px; animation: rise .5s var(--ease);
}
.login h1 { font: 600 34px/1 var(--font-display); letter-spacing: -.03em; margin: 0; }
.login h1 span { color: var(--muted); font-weight: 300; }
.login p { color: var(--muted); margin: 0 0 10px; }
.login small { color: var(--danger); min-height: 1em; }

/* Cabecera */
.top { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 20px 24px 6px; }
.marca { display: flex; align-items: center; gap: 11px; font: 700 21px/1 var(--font-display); letter-spacing: -.02em; white-space: nowrap; }
.marca::before {
  content: 'V'; width: 36px; height: 36px; border-radius: 11px; background: var(--accent); color: var(--lima);
  display: grid; place-items: center; font: 800 17px/1 var(--font-display);
}
.marca span { color: var(--muted); font-weight: 400; }
.objetivo {
  display: grid; gap: 8px; max-width: 560px; cursor: pointer; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 16px; transition: box-shadow .2s;
}
.objetivo:hover { box-shadow: var(--shadow-lg); }
.objetivo .txt { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--muted); }
.objetivo .txt b { color: var(--text); font-weight: 800; }
.barra { height: 8px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.barra i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .8s var(--ease); }
.kpis { display: flex; gap: 10px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 16px; min-width: 130px; }
.kpi b { display: block; font: 300 30px/1.05 var(--font-display); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--muted); font-size: 12px; font-weight: 600; }
.kpi.ok { background: linear-gradient(160deg, #3a3a42, var(--accent)); border-color: transparent; }
.kpi.ok b, .kpi.ok small { color: var(--accent-ink); }
.kpi.mal b { color: var(--danger); }

.aviso {
  margin: 14px 24px 0; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255,255,255,.72);
  backdrop-filter: blur(18px); box-shadow: var(--shadow-sm); color: var(--text-2); display: flex; gap: 12px; align-items: center;
  justify-content: space-between; flex-wrap: wrap;
}
.aviso button { height: 34px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 9px; padding: 0 12px; font-weight: 700; font-size: 12.5px; }

/* Fases (pestañas en cápsula, solo en móvil) */
.fases { display: none; gap: 4px; margin: 14px 16px 0; padding: 4px; overflow-x: auto; background: var(--surface-3); border-radius: 99px; scrollbar-width: none; }
.fases::-webkit-scrollbar { display: none; }
.fases button { flex: none; background: none; border: 0; border-radius: 99px; padding: 8px 14px; color: var(--muted); font-weight: 700; font-size: 13px; }
.fases button.on { color: var(--text); background: var(--surface); box-shadow: var(--shadow-sm); }

/* Tablero */
.tablero { display: grid; grid-template-columns: repeat(6, minmax(272px, 1fr)); gap: 12px; padding: 18px 24px 40px; overflow-x: auto; align-items: start; }
.col {
  background: rgba(255,255,255,.55); backdrop-filter: blur(18px) saturate(1.4); border: 1px solid rgba(255,255,255,.85);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 12px; min-height: 240px; animation: rise .5s var(--ease) both;
}
.col:nth-child(2) { animation-delay: .04s; } .col:nth-child(3) { animation-delay: .08s; } .col:nth-child(4) { animation-delay: .12s; }
.col:nth-child(5) { animation-delay: .16s; } .col:nth-child(6) { animation-delay: .2s; }
.col header { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 12px; }
.col h2 { margin: 0; font: 600 19px/1 var(--font-display); letter-spacing: -.02em; }
.col h2 em { font-style: normal; font: 500 12.5px var(--font-body); color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.col .n { font-size: 11.5px; font-weight: 800; color: var(--text-2); background: var(--surface-3); border-radius: 99px; padding: 2px 9px; }
.col .vacio { color: var(--faint); font-size: 12.5px; padding: 22px 10px; text-align: center; border: 1px dashed var(--border-strong); border-radius: var(--radius); }

.tarjeta {
  display: block; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px 14px 12px; margin-bottom: 10px; transition: transform .25s var(--ease), box-shadow .25s;
}
.tarjeta:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.tarjeta .arriba { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.punt { font: 300 28px/1 var(--font-display); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.punt.alta { font-weight: 600; background: var(--lima); color: var(--lima-ink); border-radius: 9px; padding: 3px 8px 4px; font-size: 22px; }
.etq { font-size: 11px; font-weight: 700; color: var(--text-2); background: var(--surface-3); border-radius: 99px; padding: 3px 9px; white-space: nowrap; }
.etq.ej { color: var(--accent-ink); background: var(--accent); }
.tarjeta h3 { margin: 0 0 10px; font: 600 15px/1.3 var(--font-display); letter-spacing: -.01em; }
.tarjeta .datos { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.tarjeta .datos b { color: var(--text); font-weight: 800; }
.estrellas { color: var(--text); letter-spacing: 1px; font-size: 12px; }

/* Ficha lateral */
.ficha { position: fixed; inset: 0; z-index: 20; }
.ficha-fondo { position: absolute; inset: 0; background: rgba(20,20,30,.28); backdrop-filter: blur(3px); }
.ficha-panel {
  position: absolute; top: 12px; right: 12px; bottom: 12px; width: min(860px, calc(100% - 24px)); background: var(--bg);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow-y: auto; padding: 28px 32px 60px; animation: slide .45s var(--ease);
}
.cerrar { position: sticky; top: 0; float: right; z-index: 2; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 50%; width: 38px; height: 38px; font-size: 20px; box-shadow: var(--shadow-sm); }
.ficha h1 { font: 600 34px/1.08 var(--font-display); letter-spacing: -.03em; margin: 8px 0 12px; max-width: 90%; }
.meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.cifras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0; }
.cifra { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; }
.cifra b { display: block; font: 300 34px/1.05 var(--font-display); letter-spacing: -.035em; font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.cifra small { color: var(--muted); font-size: 12px; font-weight: 700; }
.cifra.key { background: linear-gradient(160deg, #3a3a42, var(--accent)); border-color: transparent; }
.cifra.key b { color: var(--lima); }
.cifra.key small { color: rgba(255,255,255,.75); }

.tabs { display: inline-flex; gap: 4px; padding: 4px; margin: 20px 0 18px; background: var(--surface-3); border-radius: 99px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { background: none; border: 0; border-radius: 99px; padding: 8px 14px; color: var(--muted); font-weight: 700; font-size: 13px; white-space: nowrap; }
.tabs button.on { color: var(--text); background: var(--surface); box-shadow: var(--shadow-sm); }

.bloque { margin-bottom: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 16px 18px; }
.bloque h4 { margin: 0 0 8px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--faint); }
.bloque p { margin: 0 0 8px; }
.bloque p:last-child { margin-bottom: 0; }
.bloque .cifras { margin: 6px 0 0; }
.gancho { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gancho > div { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.gancho > div.nuestro { background: var(--surface); border-color: var(--accent); box-shadow: var(--shadow); }
.gancho h5 { margin: 0 0 10px; font: 700 15px var(--font-display); }
.gancho .nuestro h5::after { content: 'tuyo'; margin-left: 8px; font: 800 10.5px var(--font-body); background: var(--lima); color: var(--lima-ink); border-radius: 99px; padding: 2px 8px; vertical-align: 2px; }
.gancho dl { margin: 0; display: grid; gap: 10px; }
.gancho dt { font-size: 10.5px; font-weight: 800; color: var(--faint); text-transform: uppercase; letter-spacing: .09em; }
.gancho dd { margin: 2px 0 0; }
.gancho dd.verbal { font: 500 16px/1.4 var(--font-display); color: var(--text); }

table.guion { width: 100%; border-collapse: collapse; font-size: 13px; }
table.guion th { text-align: left; font-size: 11px; font-weight: 800; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; padding: 8px; border-bottom: 1px solid var(--border-strong); }
table.guion td { padding: 11px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.guion tr:last-child td { border-bottom: 0; }
table.guion td.seg { font: 600 15px var(--font-display); white-space: nowrap; font-variant-numeric: tabular-nums; }
table.guion td.dice { font-weight: 600; color: var(--text); }
.bloque table.guion { margin: -4px 0; }
.nota-mano { color: var(--muted); font-size: 12.5px; }

.checklist { display: grid; gap: 8px; }
.checklist div { display: flex; gap: 10px; align-items: center; }
.checklist span:first-child { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }
.checklist .si { background: var(--success-bg); color: var(--success); }
.checklist .no { background: var(--surface-3); color: var(--faint); }

.puntuar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin: 6px 0 4px; display: grid; gap: 10px; }
.puntuar .stars { display: flex; gap: 6px; }
.puntuar .stars button { background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 12px; width: 48px; height: 48px; font: 600 20px var(--font-display); transition: all .15s; }
.puntuar .stars button:hover { border-color: var(--accent); }
.puntuar .stars button.on { background: var(--accent); color: var(--lima); border-color: var(--accent); }
.puntuar small { color: var(--muted); }
.acciones { display: flex; gap: 8px; flex-wrap: wrap; }

.hilo { display: grid; gap: 10px; margin-bottom: 12px; }
.msg { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 12px 14px; max-width: 88%; }
.msg.javi { justify-self: end; background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.msg.javi small { color: rgba(255,255,255,.65); }
.msg small { color: var(--muted); display: block; margin-bottom: 4px; font-size: 11px; font-weight: 700; }
textarea { min-height: 96px; resize: vertical; }
.campo { display: grid; gap: 6px; margin-bottom: 12px; }
.campo label { font-size: 12.5px; font-weight: 700; color: var(--text-2); }

/* Teleprompter (claro) */
.prompter { position: fixed; inset: 0; z-index: 40; background: var(--bg); }
.prompter-texto { height: 100%; overflow-y: scroll; padding: 45vh 8vw; font: 600 clamp(30px, 5.2vw, 64px)/1.3 var(--font-display); letter-spacing: -.02em; color: var(--text); scrollbar-width: none; }
.prompter-texto::-webkit-scrollbar { display: none; }
.prompter-texto p { margin: 0 0 .6em; }
.prompter-texto strong { background: var(--lima); color: var(--lima-ink); border-radius: 8px; padding: 0 .15em; font-weight: 800; }
.prompter-texto .pausa { color: var(--faint); font-weight: 300; }
.prompter.espejo .prompter-texto { transform: scaleX(-1); }
.prompter::before { content: ''; position: absolute; left: 0; right: 0; top: 42vh; height: 2px; background: var(--accent); opacity: .15; pointer-events: none; }
.prompter-mandos { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; gap: 6px; align-items: center; background: rgba(255,255,255,.85); backdrop-filter: blur(18px); border: 1px solid var(--border); box-shadow: var(--shadow-lg); border-radius: 99px; padding: 6px; }
.prompter-mandos button { background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 99px; min-width: 42px; height: 42px; padding: 0 14px; font-weight: 700; }
.prompter-mandos button#prompter-play { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.prompter-mandos span { color: var(--muted); font-size: 12px; font-weight: 700; padding: 0 6px; }

dialog { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 24px; width: min(420px, calc(100% - 32px)); }
dialog::backdrop { background: rgba(20,20,30,.28); backdrop-filter: blur(3px); }
dialog h2 { font: 600 24px var(--font-display); margin: 0 0 14px; letter-spacing: -.02em; }
dialog label { display: grid; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--text-2); margin-bottom: 10px; }
dialog .fila { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
dialog button[value="ok"] { height: 40px; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: var(--radius-sm); padding: 0 16px; font-weight: 700; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--accent); color: var(--accent-ink); padding: 11px 18px; border-radius: 99px; font-weight: 700; box-shadow: var(--shadow-lg); z-index: 60; animation: rise .4s var(--ease); }

/* Móvil: una fase cada vez */
@media (max-width: 900px) {
  .top { grid-template-columns: 1fr; padding: 16px 16px 4px; gap: 10px; }
  .objetivo { max-width: none; }
  .kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .kpi { min-width: 0; padding: 10px 12px; }
  .kpi b { font-size: 24px; }
  .kpi small { font-size: 11px; line-height: 1.3; display: block; }
  .fases { display: flex; }
  .tablero { display: block; padding: 14px 16px 40px; }
  .col { display: none; border: 0; background: none; box-shadow: none; backdrop-filter: none; padding: 0; }
  .col.on { display: block; }
  .col header { display: none; }
  .ficha-panel { top: 0; right: 0; bottom: 0; width: 100%; border-radius: 0; padding: 20px 16px 60px; }
  .ficha h1 { font-size: 27px; }
  .cifras { grid-template-columns: repeat(2, 1fr); }
  .gancho { grid-template-columns: 1fr; }
  table.guion { font-size: 12px; }
  table.guion .opc { display: none; }
  .aviso { margin: 12px 16px 0; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Capa «estilo Apple» de Orion (la misma que css/apple.css): fondo gris liso,
   tarjetas blancas sin borde muy redondeadas, botones en píldora, fuente del sistema
   y las cifras clave en degradado. Nada de tarjetas oscuras.
   ═══════════════════════════════════════════════════════════════════════ */
:root {
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --bg: #F5F5F7; --surface: #FFFFFF; --surface-2: #F5F5F7; --surface-3: #E8E8ED;
  --border: rgba(0, 0, 0, .06); --border-strong: rgba(0, 0, 0, .11);
  --text: #1D1D1F; --text-2: #424245; --muted: #6E6E73; --faint: #A1A1A6;
  --radius-lg: 28px; --radius: 22px; --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04);
  --shadow: 0 2px 6px rgba(0, 0, 0, .02), 0 12px 32px -14px rgba(0, 0, 0, .10);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, .04), 0 32px 80px -24px rgba(0, 0, 0, .24);
  --grad: linear-gradient(90deg, #0071E3 0%, #00A3B4 52%, #29B866 100%);
  --glass-strong: rgba(255, 255, 255, .78);
  --glass-blur: blur(28px) saturate(1.9);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(255, 255, 255, .55), inset 0 -1px 1px rgba(0, 0, 0, .04);
  --ctl: 36px;
}
body { background: var(--bg); letter-spacing: -.003em; }
body::before { background: none; }
body::after { display: none; }
.grad-txt { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Botones en píldora, pequeños */
.btn, .login button, .btn.sec, button.sec, dialog button[value="ok"], .aviso button {
  height: var(--ctl); padding: 0 15px; border-radius: 99px; font-weight: 500; font-size: 13.5px; letter-spacing: -.01em; box-shadow: none;
}
.btn:hover, .login button:hover { box-shadow: none; filter: brightness(1.15); }

/* Tarjetas: sin borde, más redondeadas */
.objetivo, .kpi, .tarjeta, .cifra, .bloque, .puntuar, .msg, .login form, dialog { border: 0; }
.objetivo, .kpi { border-radius: var(--radius-lg); }
.kpi { padding: 12px 18px; }
.kpi b, .cifra b { font-weight: 600; letter-spacing: -.04em; }
.kpi.ok { background: var(--surface); }
.kpi.ok small { color: var(--muted); }
.kpi.ok b, .cifra.key b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cifra.key { background: var(--surface); }
.cifra.key small { color: var(--muted); }
.barra i { background: var(--grad); }
.col { background: rgba(255, 255, 255, .45); border: 0; box-shadow: none; }
.tarjeta { box-shadow: var(--shadow); }
.punt.alta { background: none; padding: 0; font-size: 28px; font-weight: 700; }
.punt.alta { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.etq { font-weight: 600; }
.etq.ej { background: var(--surface-3); color: var(--text-2); }
.gancho > div.nuestro { border: 1px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; }
.gancho .nuestro h5::after { background: var(--grad); color: #fff; }
.puntuar .stars button.on { background: var(--accent); color: #fff; }
.marca::before { border-radius: 12px; }
.ficha-panel { background: var(--bg); }

/* Cristal en lo que flota (como la barra y los modales de Orion) */
.aviso, .prompter-mandos, .toast { backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
.aviso { background: var(--glass-strong); border: 0; box-shadow: var(--glass-edge), var(--shadow-sm); }
.prompter-mandos { background: var(--glass-strong); border: 0; box-shadow: var(--glass-edge), var(--shadow-lg); }

/* Teleprompter: la palabra a remarcar en degradado */
.prompter-texto strong { background: none; padding: 0; }
.prompter-texto strong { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.ajustes-btn { align-self: center; }
.error { color: var(--danger); font-size: 12.5px; display: block; min-height: 1em; }
dialog label .nota-mano { font-weight: 500; }
.top { grid-template-columns: auto 1fr auto auto; }
@media (max-width: 900px) { .top { grid-template-columns: 1fr; } .ajustes-btn { justify-self: start; } }

/* Cabecera: marca · objetivo · Ajustes arriba; las cifras en su propia fila */
.top { grid-template-columns: auto 1fr auto; grid-template-areas: "marca objetivo ajustes" "kpis kpis kpis"; row-gap: 12px; }
.marca { grid-area: marca; } .objetivo { grid-area: objetivo; max-width: none; } .ajustes-btn { grid-area: ajustes; } .kpis { grid-area: kpis; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 900px) {
  .top { grid-template-columns: 1fr auto; grid-template-areas: "marca ajustes" "objetivo objetivo" "kpis kpis"; }
  .kpis { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .ajustes-btn { justify-self: end; }
}
