/* Panel de la centralita con la marca de Microtecnic (microtecnic.es): lima #bfc200 y grafito
   #3f3f3e, en OKLCH, con los neutros teñidos hacia el lima (h 111). El lima es fondo de las acciones
   principales con texto grafito; para texto e indicadores sobre claro se usa su tono oliva, porque el
   lima sobre blanco no llega al contraste mínimo. Rojo para colgar, ámbar para espera. */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/fuentes/open-sans-latin.woff2') format('woff2'); /* servida aquí: sin llamadas a Google */
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --h: 111;
  --fondo: oklch(97.4% 0.004 var(--h));
  --superficie: oklch(99.4% 0.002 var(--h));
  --superficie-2: oklch(95.3% 0.006 var(--h));
  --linea: oklch(89.5% 0.006 var(--h));
  --linea-fuerte: oklch(80% 0.008 var(--h));
  --texto: oklch(29% 0.004 106);
  --texto-2: oklch(46% 0.006 106);
  --acento: oklch(78.5% 0.173 var(--h));          /* #bfc200, el lima de la marca */
  --acento-hover: oklch(72% 0.162 var(--h));
  --acento-texto: oklch(29% 0.01 106);            /* grafito sobre lima: 5,5:1 */
  --acento-tinta: oklch(48% 0.11 var(--h));       /* oliva: texto e indicadores sobre claro */
  --acento-suave: oklch(95.2% 0.055 var(--h));
  --acento-linea: oklch(84% 0.12 var(--h));
  --marca-fondo: oklch(36.7% 0.002 106);          /* #3f3f3e, la cabecera de microtecnic.es */
  --marca-texto: oklch(96% 0.004 106);
  --marca-tenue: oklch(80% 0.006 106);
  --marca-linea: oklch(48% 0.004 106);
  --peligro: oklch(51% 0.175 27);
  --peligro-hover: oklch(46% 0.175 27);
  --peligro-suave: oklch(95.5% 0.03 27);
  --peligro-texto: oklch(44% 0.15 27);
  --aviso-suave: oklch(95.5% 0.045 85);
  --aviso-texto: oklch(43% 0.1 70);
  --aviso-punto: oklch(70% 0.15 75);
  --foco: oklch(55% 0.12 var(--h));

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --t-xs: 0.75rem; --t-sm: 0.875rem; --t-base: 1rem; --t-md: 1.2rem; --t-lg: 1.44rem; --t-xl: 1.728rem; --t-2xl: 2.488rem;
  --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-pildora: 999px;
  --sombra: 0 1px 2px oklch(30% 0.01 106 / 0.06), 0 2px 8px oklch(30% 0.01 106 / 0.04);
  --ease: cubic-bezier(0.25, 1, 0.5, 1); /* ease-out-quart */
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fondo: oklch(20% 0.003 106);
    --superficie: oklch(24% 0.004 106);
    --superficie-2: oklch(27.5% 0.005 106);
    --linea: oklch(34% 0.005 106);
    --linea-fuerte: oklch(43% 0.006 106);
    --texto: oklch(94% 0.004 106);
    --texto-2: oklch(75% 0.006 106);
    --acento-hover: oklch(84% 0.165 var(--h));
    --acento-texto: oklch(22% 0.01 106);
    --acento-tinta: oklch(83% 0.16 var(--h));
    --acento-suave: oklch(32% 0.06 var(--h));
    --acento-linea: oklch(50% 0.1 var(--h));
    --marca-fondo: oklch(16% 0.003 106);
    --marca-linea: oklch(30% 0.004 106);
    --peligro: oklch(64% 0.17 27);
    --peligro-hover: oklch(69% 0.17 27);
    --peligro-suave: oklch(28% 0.05 27);
    --peligro-texto: oklch(78% 0.12 27);
    --aviso-suave: oklch(29% 0.05 80);
    --aviso-texto: oklch(84% 0.1 80);
    --foco: oklch(80% 0.15 var(--h));
    --sombra: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fondo); color: var(--texto);
  font: var(--t-base)/1.55 "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-kerning: normal;
}
h1, h2, h3 { margin: 0; line-height: 1.25; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
.oculto { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.tenue { color: var(--texto-2); }
kbd {
  font: 600 var(--t-xs)/1 ui-monospace, "Cascadia Mono", Consolas, monospace; padding: 2px 6px; border-radius: 4px;
  border: 1px solid currentColor; opacity: 0.75;
}
:focus-visible { outline: 2px solid var(--foco); outline-offset: 2px; }

/* Botones: un solo vocabulario en todo el panel */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 36px; padding: 0 var(--s4); border-radius: var(--r-pildora);
  border: 1px solid var(--linea-fuerte); background: var(--superficie); color: var(--texto);
  font-family: inherit; font-size: var(--t-sm); font-weight: 500; line-height: 1; cursor: pointer; white-space: nowrap;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease);
}
.btn:hover { background: var(--superficie-2); }
.btn:disabled, .btn[aria-busy="true"] { opacity: 0.55; cursor: default; }
.btn-pri { background: var(--acento); border-color: var(--acento); color: var(--acento-texto); }
.btn-pri:hover:not(:disabled) { background: var(--acento-hover); border-color: var(--acento-hover); }
.btn-peligro { background: var(--peligro); border-color: var(--peligro); color: oklch(98.5% 0.01 27); }
.btn-peligro:hover:not(:disabled) { background: var(--peligro-hover); border-color: var(--peligro-hover); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--texto-2); }
.btn-ghost:hover { color: var(--texto); background: var(--superficie-2); }
.btn-texto-peligro { color: var(--peligro-texto); }
.btn-lg { min-height: 52px; padding: 0 var(--s6); font-size: var(--t-base); font-weight: 600; border-radius: var(--r-pildora); }
.btn[aria-pressed="true"] { background: var(--aviso-suave); border-color: var(--aviso-punto); color: var(--aviso-texto); }

/* Campos */
input, select, textarea {
  font: inherit; font-size: var(--t-sm); color: var(--texto); background: var(--superficie);
  border: 1px solid var(--linea-fuerte); border-radius: var(--r-md); padding: 7px 10px; min-height: 36px; min-width: 0;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--foco); outline-offset: 0; border-color: var(--foco); }
select { height: 36px; padding-top: 0; padding-bottom: 0; }
input[type="checkbox"] { min-height: 0; width: 18px; height: 18px; accent-color: var(--acento); margin: 0; }
textarea { width: 100%; line-height: 1.5; resize: vertical; }
label.campo { display: grid; gap: var(--s1); font-size: var(--t-sm); color: var(--texto-2); }
label.campo > input, label.campo > select { color: var(--texto); }
::placeholder { color: var(--texto-2); opacity: 0.8; }

/* Inicio de sesión */
.login { max-width: 360px; margin: 12vh auto 0; padding: var(--s6); display: grid; gap: var(--s4); background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--r-lg); box-shadow: var(--sombra); }
.login h1 { font-size: var(--t-md); font-weight: 600; }
.login .logo { justify-self: start; margin-bottom: var(--s2); }
.login .logo img { height: 44px; width: auto; display: block; }
.login .btn { justify-self: stretch; }
.error { color: var(--peligro-texto); font-size: var(--t-sm); min-height: 1.3em; }

/* Barra y pestañas */
.barra {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: 0 var(--s5); min-height: 64px; background: var(--marca-fondo); color: var(--marca-texto);
}
.marca { display: flex; align-items: center; gap: var(--s4); text-decoration: none; }
.marca img { height: 34px; width: auto; display: block; }
.marca-centralita { display: grid; line-height: 1.25; padding-left: var(--s4); border-left: 1px solid var(--marca-linea); }
.marca-centralita span { font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--marca-tenue); }
.marca-centralita a { font-size: var(--t-sm); font-weight: 600; color: var(--acento); text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.marca-centralita a:hover { text-decoration: underline; }
.barra .agente { color: var(--marca-texto); }
.barra .btn { background: transparent; border-color: var(--marca-linea); color: var(--marca-texto); }
.barra .btn:hover { background: oklch(100% 0 0 / 0.08); }
.barra .btn-ghost { border-color: transparent; color: var(--marca-tenue); }
.barra .estado { background: oklch(100% 0 0 / 0.08); color: var(--marca-tenue); }
.barra .estado[data-tono="ok"] { background: oklch(78.5% 0.173 111 / 0.16); color: var(--acento); }
.barra .estado[data-tono="ok"] .punto { background: var(--acento); }
.barra .estado[data-tono="aviso"] { background: oklch(70% 0.15 75 / 0.2); color: oklch(88% 0.1 85); }
.barra .estado[data-tono="mal"] { background: oklch(64% 0.17 27 / 0.22); color: oklch(85% 0.09 27); }
/* Instancia de demo: que nadie la confunda con la de producción */
.marca-texto { font-size: var(--t-lg); font-weight: 700; letter-spacing: -0.01em; color: var(--marca-texto); line-height: 1; }
.login .marca-texto { color: var(--texto); font-size: var(--t-xl); }
.marca-demo { margin-left: var(--s2); padding: 1px 7px; border-radius: var(--r-pildora); font-weight: 650; background: oklch(70% 0.15 75 / 0.22); color: oklch(88% 0.1 85); }
.barra-der { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; justify-content: flex-end; }
.agente { font-size: var(--t-sm); font-weight: 550; }
.estado { display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--t-sm); font-weight: 550; padding: 5px 12px 5px 10px; border-radius: 999px; background: var(--superficie-2); color: var(--texto-2); }
.estado .punto { width: 8px; height: 8px; border-radius: 50%; background: var(--linea-fuerte); }
.estado[data-tono="ok"] { background: var(--acento-suave); color: var(--acento-tinta); }
.estado[data-tono="ok"] .punto { background: var(--acento); }
.estado[data-tono="aviso"] { background: var(--aviso-suave); color: var(--aviso-texto); }
.estado[data-tono="aviso"] .punto { background: var(--aviso-punto); }
.estado[data-tono="mal"] { background: var(--peligro-suave); color: var(--peligro-texto); }
.estado[data-tono="mal"] .punto { background: var(--peligro); }

.pestanas { display: flex; gap: var(--s1); padding: 0 var(--s5); background: var(--superficie); border-bottom: 1px solid var(--linea); overflow-x: auto; scrollbar-width: none; }
.pestanas a {
  display: inline-flex; align-items: center; gap: var(--s2); padding: var(--s4) var(--s3); font-size: var(--t-xs); font-weight: 650;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--texto-2); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
  transition: color 150ms var(--ease), border-color 150ms var(--ease);
}
.pestanas a:hover { color: var(--texto); }
.pestanas a[aria-current="page"] { color: var(--texto); border-bottom-color: var(--acento-tinta); }
.pestanas .separador { width: 1px; margin: var(--s3) var(--s2); background: var(--linea); flex: none; }
.contador { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--acento); color: var(--acento-texto); font-size: var(--t-xs); font-weight: 700; text-align: center; letter-spacing: 0; }

main { max-width: 1240px; margin: 0 auto; padding: var(--s5); }
.cabecera-pestana { display: grid; gap: var(--s1); margin-bottom: var(--s5); }
.cabecera-pestana h1 { font-size: var(--t-lg); font-weight: 650; }
.cabecera-pestana p { color: var(--texto-2); font-size: var(--t-sm); max-width: 70ch; }

/* Avisos globales y prueba de micrófono */
.franja { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s5); font-size: var(--t-sm); border-bottom: 1px solid var(--linea); }
.franja[data-tono="mal"] { background: var(--peligro-suave); color: var(--peligro-texto); }
.franja[data-tono="ok"] { background: var(--acento-suave); color: var(--acento-tinta); }
.franja[data-tono="aviso"], .franja:not([data-tono]) { background: var(--aviso-suave); color: var(--aviso-texto); }
.franja > span:not(.medidor) { flex: 1; }
.sin-audio { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s4); padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--aviso-suave); color: var(--aviso-texto); font-size: var(--t-sm); }
.sin-audio > span { flex: 1; min-width: 220px; }
.medidor { position: relative; width: 160px; height: 8px; border-radius: 999px; background: var(--linea); overflow: hidden; flex: none; }
.medidor > i { position: absolute; inset: 0; background: var(--acento); transform-origin: left; transform: scaleX(0); transition: transform 80ms linear; }

/* Atender */
.atender { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s5); align-items: start; }
.ahora { background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--r-lg); padding: var(--s6); box-shadow: var(--sombra); min-height: 320px; }
.ahora[data-modo="llamada"] { border-color: var(--acento-linea); }
.rotulo { font-size: var(--t-xs); font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--texto-2); }
.ahora .rotulo-fila { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.en-llamada-rotulo { color: var(--acento-tinta); display: inline-flex; align-items: center; gap: var(--s2); }
.en-llamada-rotulo::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--acento); }
.crono { font-size: var(--t-xl); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.siniestro-grande { font-size: var(--t-2xl); font-weight: 650; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; margin: var(--s3) 0 var(--s1); line-height: 1.1; }
.siniestro-grande.sin-numero { font-size: var(--t-xl); color: var(--texto-2); font-weight: 550; }
.dato-linea { color: var(--texto-2); font-size: var(--t-sm); }
.bill { margin-top: var(--s5); padding: var(--s4); background: var(--superficie-2); border-radius: var(--r-md); }
.bill p { margin-top: var(--s1); max-width: 70ch; }
.acciones { display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s6); align-items: center; }
.acciones .btn-lg { min-width: 180px; }
.acciones .pista { font-size: var(--t-xs); color: var(--texto-2); display: inline-flex; align-items: center; gap: var(--s1); }
.mi-micro { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s5); font-size: var(--t-sm); color: var(--texto-2); }
.participantes { margin-top: var(--s6); border-top: 1px solid var(--linea); padding-top: var(--s4); }
.participantes ul { list-style: none; margin: var(--s2) 0 0; padding: 0; }
.participantes li { display: grid; grid-template-columns: minmax(0, 1fr) 96px 148px 96px; align-items: center; gap: var(--s3); padding: var(--s2) 0; border-bottom: 1px solid var(--linea); min-height: 52px; }
.participantes li > span:first-child { font-weight: 550; }
.participantes li > .etiqueta { justify-self: start; }
.anadir { display: flex; gap: var(--s2); margin-top: var(--s4); flex-wrap: wrap; }
.anadir input { flex: 1; min-width: 180px; }
.vacio { display: grid; place-content: center; text-align: center; gap: var(--s3); min-height: 260px; }
.vacio h2 { font-size: var(--t-md); font-weight: 600; }
.vacio p { color: var(--texto-2); max-width: 46ch; }
.vacio .acciones { justify-content: center; margin-top: var(--s3); }

.cola { background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--r-lg); overflow: hidden; }
.cola h2 { font-size: var(--t-sm); font-weight: 650; padding: var(--s4) var(--s4) var(--s3); display: flex; justify-content: space-between; }
.cola ol { list-style: none; margin: 0; padding: 0; }
.cola li { display: grid; grid-template-columns: 28px 1fr auto; gap: var(--s1) var(--s3); padding: var(--s3) var(--s4); border-top: 1px solid var(--linea); align-items: baseline; }
.cola li:first-child { background: var(--acento-suave); }
.cola .pos { font-size: var(--t-xs); font-weight: 700; color: var(--texto-2); font-variant-numeric: tabular-nums; }
.cola .sin { font-weight: 600; font-variant-numeric: tabular-nums; }
.cola .espera { font-variant-numeric: tabular-nums; font-weight: 600; }
.cola .de { grid-column: 2 / 4; font-size: var(--t-xs); color: var(--texto-2); }
.cola .vacia { padding: var(--s4); border-top: 1px solid var(--linea); color: var(--texto-2); font-size: var(--t-sm); }

/* Tablas */
.marco { background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--r-lg); overflow: hidden; }
.desliza { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
th { text-align: left; font-weight: 600; color: var(--texto-2); padding: var(--s3) var(--s4); border-bottom: 1px solid var(--linea); background: var(--superficie-2); white-space: nowrap; }
td { padding: var(--s3) var(--s4); border-bottom: 1px solid var(--linea); vertical-align: middle; white-space: nowrap; }
td.envuelve { white-space: normal; }
tbody tr:last-child td { border-bottom: 0; }
tr.seleccionable { cursor: pointer; transition: background-color 150ms var(--ease); }
tr.seleccionable:hover { background: var(--superficie-2); }
tr.seleccionable[data-seleccionada="true"] { background: var(--acento-suave); }
.detalle h2:focus { outline: none; }
tr.inactivo td { color: var(--texto-2); }
.etiqueta { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: var(--t-xs); font-weight: 600; background: var(--superficie-2); color: var(--texto-2); white-space: nowrap; }
.etiqueta[data-tono="ok"] { background: var(--acento-suave); color: var(--acento-tinta); }
.etiqueta[data-tono="mal"] { background: var(--peligro-suave); color: var(--peligro-texto); }
.etiqueta[data-tono="aviso"] { background: var(--aviso-suave); color: var(--aviso-texto); }
.esqueleto td::after { content: ""; display: block; height: 10px; border-radius: 4px; background: var(--superficie-2); }
.pie-tabla { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); border-top: 1px solid var(--linea); font-size: var(--t-sm); color: var(--texto-2); }

/* Historial con detalle al lado */
.filtros { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: end; margin-bottom: var(--s4); }
.historial { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); align-items: start; }
.historial.con-detalle { grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); }
.detalle { background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--r-lg); padding: var(--s5); position: sticky; top: 72px; max-height: calc(100vh - 96px); overflow: auto; }
.detalle header { display: flex; justify-content: space-between; align-items: start; gap: var(--s3); }
.detalle h2 { font-size: var(--t-lg); font-weight: 650; font-variant-numeric: tabular-nums; }
.detalle dl { display: grid; grid-template-columns: auto 1fr; gap: var(--s1) var(--s4); margin: var(--s4) 0 0; font-size: var(--t-sm); }
.detalle dt { color: var(--texto-2); }
.detalle dd { margin: 0; }
.detalle h3 { font-size: var(--t-sm); font-weight: 650; margin: var(--s5) 0 var(--s2); }
.turnos { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); font-size: var(--t-sm); }
.turnos li { display: grid; grid-template-columns: 76px 1fr; gap: var(--s3); }
.turnos .quien { color: var(--texto-2); font-weight: 600; font-size: var(--t-xs); padding-top: 2px; }
.turnos li[data-quien="bot"] .quien { color: var(--acento-tinta); }
.transcripcion { font-size: var(--t-sm); white-space: pre-wrap; line-height: 1.6; }
.detalle audio { width: 100%; margin-top: var(--s2); }
.nota { font-size: var(--t-sm); color: var(--texto-2); padding: var(--s3); background: var(--superficie-2); border-radius: var(--r-md); }

/* Ajustes de admin */
.bloque { background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--r-lg); padding: var(--s5); margin-bottom: var(--s5); }
.bloque > h2 { font-size: var(--t-md); font-weight: 650; margin-bottom: var(--s1); }
.bloque > p.tenue { font-size: var(--t-sm); margin-bottom: var(--s4); max-width: 75ch; }
.fila { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.opciones { display: grid; gap: var(--s3); margin: var(--s3) 0 var(--s4); }
.opcion { display: grid; grid-template-columns: 18px 1fr; gap: var(--s3); align-items: start; cursor: pointer; }
.opcion input { margin-top: 3px; }
.opcion b { font-weight: 600; }
.opcion small { display: block; color: var(--texto-2); font-size: var(--t-sm); }
.guardado { font-size: var(--t-sm); color: var(--acento-tinta); }
.alta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s3); align-items: end; }
.acciones-fila { display: flex; gap: var(--s2); justify-content: flex-end; align-items: center; }
.herramientas { margin-bottom: var(--s4); }
.editor { scroll-margin-top: calc(64px + var(--s4)); } /* que la cabecera fija no tape el título al abrirlo */
.editor .codigo { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 0.8125rem; tab-size: 2; margin-bottom: var(--s1); }
.vacio-tabla { padding: var(--s6) var(--s4); text-align: center; color: var(--texto-2); }
.vacio-tabla p { max-width: 52ch; margin: 0 auto var(--s3); }
.confirmar { display: inline-flex; gap: var(--s2); align-items: center; font-size: var(--t-sm); }

@media (max-width: 880px) {
  .atender, .historial.con-detalle { grid-template-columns: minmax(0, 1fr); }
  .detalle { position: static; max-height: none; }
}
@media (max-width: 600px) {
  .barra { flex-wrap: wrap; row-gap: var(--s2); padding: var(--s3) var(--s4); }
  .barra-der { width: 100%; justify-content: flex-start; }
  .marca img { height: 28px; }
  .pestanas, main { padding-left: var(--s4); padding-right: var(--s4); }
  .ahora { padding: var(--s5); }
  .siniestro-grande { font-size: var(--t-xl); }
  .acciones .btn-lg { flex: 1; min-width: 0; }
  .participantes li { grid-template-columns: minmax(0, 1fr) auto; }
  .participantes li > .btn { grid-row: 2; }
  .participantes li > .btn:last-child { justify-self: end; }
  .agente { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
