/*
 * Panel de Spartan · "Línea con banda" (DESIGN.md §6). Celular primero; escritorio desde 960 px.
 * Usa estilos/tokens.css (se carga antes). Reglas: radios 0, sin sombras, filas de 56 px,
 * toques de 48 px (56 en Cobrar), cifras tabulares a la derecha, estados con palabra e ícono,
 * el rojo de la marca nunca rellena (raya, pestaña activa y subrayado).
 */
:root {
  --lateral: 248px;
  --barra: 56px;
  --tabbar: 64px;
  --totalbar: 88px;
  --ancho: 1180px;
  --tenue: #5a5a5a; /* comparación y días por venir */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { background: var(--fondo); color: var(--texto); font-family: var(--letra); font-size: 16px; -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; }
body { background: var(--fondo); min-height: 100vh; line-height: 1.5; }
::selection { background: var(--texto); color: var(--fondo); }
:focus-visible { outline: 2px solid var(--texto); outline-offset: 4px; }
button, input, select, textarea { font: inherit; color: inherit; border-radius: 0; }
button { cursor: pointer; }
input, textarea { caret-color: var(--marca-rojo); }
a { color: inherit; }
img, svg { flex: none; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.cifra, .num, time { font-variant-numeric: tabular-nums lining-nums; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: -999px; top: 0; z-index: 30; background: var(--accion); color: var(--accion-texto); padding: 12px 16px; }
.saltar:focus { left: 8px; }
* { scrollbar-color: var(--linea-fuerte) var(--fondo); }

/* ───── Marca ───── */
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 48px; }
.logo { display: block; width: 44px; aspect-ratio: 735 / 425; position: relative; overflow: hidden; }
.logo img { position: absolute; width: 130.6%; height: auto; left: -10.9%; top: -58.8%; filter: contrast(1.25); mix-blend-mode: lighten; }
.logo--grande { width: 120px; margin: 0 auto; }
.letrero { font-family: var(--letrero); font-size: 12px; letter-spacing: 0.06em; white-space: nowrap; }
.letrero b { font-weight: 400; color: var(--marca-rojo); }
.letrero--grande { font-size: 18px; margin-top: 16px; }

/* ───── Cascarón ───── */
.barra { position: sticky; top: 0; z-index: 8; display: flex; align-items: center; justify-content: space-between; gap: 8px; height: var(--barra); padding: 0 16px; background: var(--fondo); border-bottom: 1px solid var(--linea); }
.perfil { width: 48px; height: 48px; flex: none; border-radius: 50%; border: 1px solid var(--linea-fuerte); display: grid; place-items: center; font-weight: 700; font-size: 15px; font-stretch: 87.5%; text-decoration: none; }
.contenido { padding: 24px 16px calc(var(--tabbar) + 40px + env(safe-area-inset-bottom)); min-width: 0; }
.con-total .contenido { padding-bottom: calc(var(--totalbar) + 32px + env(safe-area-inset-bottom)); }
.lateral { display: none; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--fondo); border-top: 1px solid var(--linea); }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--texto-2); text-decoration: none; font-size: 13px; font-weight: 600; font-stretch: 87.5%; letter-spacing: 0.04em; }
.tabbar .ico { width: 22px; height: 22px; }
.tabbar [aria-current] { color: var(--texto); }
.tabbar [aria-current]::before { content: ""; position: absolute; top: -1px; width: 28px; height: var(--raya); background: var(--marca-rojo); }
.con-total .tabbar { display: none; }

@media (min-width: 960px) {
  .app { display: grid; grid-template-columns: var(--lateral) minmax(0, 1fr); }
  .barra, .tabbar { display: none; }
  .lateral { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 0; height: 100vh; padding: 20px 16px; border-right: 1px solid var(--linea); overflow-y: auto; }
  .lateral .logo { width: 52px; }
  .lateral__sede { display: flex; align-items: center; gap: 8px; color: var(--texto-2); font-size: 14px; padding: 0 12px; }
  .lateral__sede .ico { width: 16px; height: 16px; }
  .lateral__nav { display: grid; gap: 2px; margin-top: 8px; }
  .lateral__nav a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; color: var(--texto-2); text-decoration: none; font-weight: 500; }
  .lateral__nav a:hover { background: var(--capa); color: var(--texto); }
  .lateral__nav a[aria-current] { background: var(--capa-2); color: var(--texto); font-weight: 600; }
  .lateral__nav a[aria-current] span { text-decoration: underline; text-decoration-color: var(--marca-rojo); text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
  .lateral__pie { margin-top: auto; display: grid; gap: 4px; padding-top: 16px; border-top: 1px solid var(--linea); }
  .contenido { padding: 40px 48px 64px; max-width: var(--ancho); width: 100%; }
  .con-total .contenido { padding-bottom: calc(var(--totalbar) + 48px); }
}

/* ───── Encabezado y secciones ───── */
.encabezado { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.encabezado h1 { font-size: 2.5rem; line-height: 1; font-stretch: 62.5%; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; }
.encabezado--raya h1::after { content: ""; display: block; width: 32px; height: var(--raya); background: var(--marca-rojo); margin-top: 12px; }
.encabezado__nota { color: var(--texto-2); font-size: 15px; margin-top: 8px; }
.sedes { display: flex; margin: 0 0 16px; border-bottom: 1px solid var(--linea); }
.sedes a { flex: 1; display: grid; place-items: center; min-height: 48px; color: var(--texto-2); text-decoration: none; font-weight: 600; font-stretch: 87.5%; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.sedes [aria-current] { color: var(--texto); border-bottom-color: var(--texto); }

.sec { margin-top: 40px; }
.sec-cab { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 4px 16px; padding-bottom: 12px; border-bottom: 1px solid var(--linea); }
.sec-tit { font-size: 1.5rem; line-height: 1.1; font-stretch: 75%; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.sec-cifra { grid-column: 2; grid-row: 1 / 3; align-self: end; font-size: 2rem; line-height: 1; font-stretch: 75%; font-weight: 700; white-space: nowrap; }
.sec-nota { grid-column: 1; color: var(--texto-2); font-size: 14px; }
.sec--aviso .sec-cab { border-top: var(--raya) solid var(--aviso); padding-top: 12px; }
.sec--aviso .sec-cifra { color: var(--aviso-t); }

/* ───── Listas y filas ───── */
.lista { list-style: none; padding: 0; }
.fila { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; column-gap: 12px; min-height: 56px; padding: 8px 0; border-bottom: 1px solid var(--linea); text-decoration: none; }
a.fila:hover, a.f-cuerpo:hover .f-nombre, .editable summary:hover .f-nombre { text-decoration: underline; text-decoration-color: var(--marca-rojo); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.fila > time { grid-column: 1; grid-row: 1 / 3; color: var(--texto-2); font-size: 15px; white-space: nowrap; }
.f-nombre { grid-column: 2; font-size: 17px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.f-meta { grid-column: 2; display: block; color: var(--texto-2); font-size: 14px; line-height: 1.4; }
.fila > .chip { grid-column: 3; grid-row: 1 / 3; }
.fila--accion { grid-template-columns: minmax(0, 1fr) auto; }
.fila--simple { grid-template-columns: minmax(0, 1fr); }
.fila--simple > * { grid-column: 1; }
.fila--mov { grid-template-columns: minmax(0, 1fr) auto; }
.fila--mov .f-nombre, .fila--mov .f-meta { grid-column: 1; }
.fila--mov .l-precio { grid-column: 2; grid-row: 1 / 3; }
.f-cuerpo { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; min-width: 0; text-decoration: none; }
.f-cuerpo .chip { margin-top: 4px; }
.fila-enlace { display: flex; align-items: center; gap: 12px; min-height: 56px; border-bottom: 1px solid var(--linea); text-decoration: none; font-size: 17px; font-weight: 500; }
.ico--fin { margin-left: auto; color: var(--texto-2); }
.vacio { color: var(--texto-2); padding: 16px 0; }
.pie-lista { color: var(--texto-3); font-size: 14px; margin-top: 12px; }
.avisado { display: inline-flex; align-items: center; gap: 6px; color: var(--texto-2); font-size: 14px; min-height: 48px; white-space: nowrap; }
.avisado .ico { width: 16px; height: 16px; color: var(--ok-t); }
.pocos { display: inline-flex; align-items: center; gap: 4px; color: var(--aviso-t); }
.pocos .ico { width: 14px; height: 14px; }

/* ───── Estados: chip (raya + ícono + palabra) y placa (solo en la ficha) ───── */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-stretch: 87.5%; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; line-height: 1.2; }
.chip::before { content: ""; width: 12px; height: var(--raya); background: currentColor; flex: none; }
.chip .ico { width: 16px; height: 16px; stroke-width: 2.25; }
.chip--ok { color: var(--ok-t); }
.chip--aviso { color: var(--aviso-t); }
.chip--vencido { color: var(--vencido-t); }
.chip--frio { color: var(--frio-t); }
.chip--neutro { color: var(--texto-2); }
.placa { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; font-size: 17px; font-stretch: 87.5%; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.placa .ico { stroke-width: 2.5; }
.placa--ok { background: var(--ok); color: var(--ok-sobre); }
.placa--aviso { background: var(--aviso); color: var(--aviso-sobre); }
.placa--vencido { background: var(--vencido); color: var(--vencido-sobre); }
.placa--frio { background: var(--frio); color: var(--frio-sobre); }
.placa--neutro { border: 1.5px solid var(--linea-fuerte); color: var(--texto-2); }

/* ───── Botones y enlaces ───── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--toque); padding: 0 20px; border: 1.5px solid transparent; background: none; font-size: 16px; font-stretch: 87.5%; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; white-space: nowrap; line-height: 1.1; }
.btn--pri { background: var(--accion); color: var(--accion-texto); border-color: var(--accion); }
.btn--pri:hover { background: #e2e2e2; border-color: #e2e2e2; }
.btn--sec { border-color: var(--texto); color: var(--texto); }
.btn--sec:hover { background: var(--capa-2); }
.btn--texto { padding: 0 8px; color: var(--texto); text-decoration: underline; text-decoration-color: var(--marca-rojo); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.btn--peligro { border-color: var(--vencido-t); color: var(--vencido-t); }
.btn--peligro-lleno { background: var(--vencido); color: var(--vencido-sobre); border-color: var(--vencido); }
.btn--icono { width: 48px; padding: 0; }
.btn--ancho { width: 100%; }
.btn:disabled { background: none; border-color: var(--linea-fuerte); color: var(--texto-3); cursor: not-allowed; }
summary.btn { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary { list-style: none; }
.enlace { display: inline-flex; align-items: center; gap: 6px; min-height: var(--toque); color: var(--texto); font-size: 15px; text-decoration: underline; text-decoration-color: var(--marca-rojo); text-decoration-thickness: 2px; text-underline-offset: 0.3em; cursor: pointer; }
.enlace .ico { width: 16px; height: 16px; }
.enlace--vencido { color: var(--vencido-t); text-decoration-color: currentColor; font-weight: 600; min-height: 32px; }
.sec-nota .enlace { font-size: 14px; }
.volver { display: inline-flex; align-items: center; gap: 4px; min-height: 48px; color: var(--texto-2); text-decoration: none; margin: -12px 0 4px -6px; }
.acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.acciones > .btn, .acciones > form { flex: 1 1 auto; }
.acciones > form .btn { width: 100%; }

/* ───── Desgloses (dinero) ───── */
.desglose div { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; border-bottom: 1px solid var(--linea); }
.desglose dt { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.desglose dt .ico { color: var(--texto-2); }
.desglose dd { font-size: 20px; font-stretch: 87.5%; font-weight: 600; white-space: nowrap; text-align: right; }
.desglose dd small { color: var(--texto-2); font-size: 14px; font-weight: 400; font-stretch: 100%; margin-left: 8px; display: inline-block; min-width: 1.5em; }
.desglose .total { border-top: 2px solid var(--texto); border-bottom: 0; }
.desglose .total dt { font-weight: 700; }
.desglose .total dd { font-weight: 700; }
.desglose--tenue { margin-top: 8px; }
.desglose--tenue dt, .desglose--tenue dd { color: var(--texto-2); font-size: 15px; }
.sec .btn--ancho, .desplegable { margin-top: 16px; }

/* ───── Avisos ───── */
.aviso { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin: 0 0 16px; background: var(--capa); }
.aviso .ico { color: var(--ok-t); }
.aviso--error { border-top: 2px solid var(--vencido-filo); border-bottom: 2px solid var(--vencido-filo); }
.aviso--error .ico { color: var(--vencido-t); }
.mensaje { margin: 16px 0 24px; max-width: 60ch; color: var(--texto-2); }

/* Alerta en vivo: entró alguien vencido (sin relleno rojo: banda carbón con filos, como la recepción) */
.vivo { position: fixed; left: 0; right: 0; top: 0; z-index: 20; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 12px 16px; background: var(--vencido-banda); border-top: var(--raya) solid var(--vencido-filo); border-bottom: var(--raya) solid var(--vencido-filo); animation: fundido var(--fundido); }
.vivo > .ico { width: 28px; height: 28px; color: var(--vencido-t); stroke-width: 2.25; grid-row: 1 / 3; }
.vivo__palabra { color: var(--vencido-t); font-size: 14px; font-stretch: 87.5%; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.vivo__nombre { font-size: 18px; font-weight: 700; grid-column: 2; overflow-wrap: anywhere; }
.vivo__acciones { grid-column: 3; grid-row: 1 / 3; display: flex; gap: 8px; }
@media (max-width: 559px) { .vivo__acciones { grid-column: 1 / -1; grid-row: auto; } .vivo__acciones .btn { flex: 1; } }
@media (min-width: 960px) { .vivo { left: var(--lateral); } }
@keyframes fundido { from { opacity: 0; } }

/* ───── Búsqueda y filtros ───── */
.buscar { display: flex; align-items: center; gap: 8px; min-height: 48px; margin: 16px 0; padding-left: 12px; border: 1.5px solid var(--linea-fuerte); background: var(--capa); }
.buscar:focus-within { border-color: var(--texto); }
.buscar .ico { color: var(--texto-2); }
.buscar input { flex: 1; min-width: 0; min-height: 48px; background: none; border: 0; outline: none; font-size: 16px; }
.buscar input::placeholder { color: var(--texto-3); }
.buscar .btn { border: 0; border-left: 1.5px solid var(--linea-fuerte); min-height: 48px; }
.filtros { display: flex; gap: 4px; overflow-x: auto; margin: 0 -16px 8px; padding: 0 16px; scrollbar-width: none; }
.filtros::-webkit-scrollbar { display: none; }
.filtro { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 12px; white-space: nowrap; text-decoration: none; color: var(--texto-2); font-size: 14px; font-stretch: 87.5%; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 2px solid transparent; }
.filtro .ico { width: 16px; height: 16px; stroke-width: 2.25; }
.filtro .cifra { color: var(--texto-2); font-weight: 600; }
.filtro--ok::before, .filtro--aviso::before, .filtro--vencido::before, .filtro--frio::before, .filtro--neutro::before { content: ""; width: 12px; height: var(--raya); background: currentColor; }
.filtro--ok { color: var(--ok-t); } .filtro--aviso { color: var(--aviso-t); } .filtro--vencido { color: var(--vencido-t); } .filtro--frio { color: var(--frio-t); }
.filtro--activo { background: var(--capa-2); border-bottom-color: var(--texto); }
.filtro:hover { background: var(--capa); }
@media (min-width: 960px) { .filtros { margin: 0 0 8px; padding: 0; flex-wrap: wrap; } }

/* ───── Tablas ───── */
.tabla { width: 100%; border-collapse: collapse; margin-top: 4px; }
.tabla th { text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--texto-2); padding: 12px 12px 8px 0; border-bottom: 1px solid var(--linea-fuerte); position: sticky; top: var(--barra); background: var(--fondo); z-index: 1; }
.tabla td { height: 56px; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--linea); vertical-align: middle; }
.tabla th:last-child, .tabla td:last-child { padding-right: 0; }
.tabla .num, .tabla th.num { text-align: right; white-space: nowrap; }
.tabla .f-meta { display: block; }
.tabla tr.cancelada td { color: var(--texto-3); }
.t-nombre { font-size: 17px; font-weight: 600; text-decoration: none; }
.t-nombre:hover { text-decoration: underline; text-decoration-color: var(--marca-rojo); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.t-estado { text-align: right; }
.solo-escritorio { display: none; }
@media (min-width: 720px) { .solo-escritorio { display: table-cell; } .solo-movil { display: none; } }
@media (min-width: 960px) { .tabla th { top: 0; } }

/* ───── Rejillas de escritorio ───── */
@media (min-width: 1100px) {
  .hoy, .ficha, .caja { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 48px; align-items: start; }
  .reportes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 48px; align-items: start; }
  .sec--ancha { grid-column: 1 / -1; }
  .ficha__b > .sec:first-child { margin-top: 0; }
}

/* ───── Ficha del socio ───── */
.ficha-cab { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.ficha-nombre { font-size: 2.5rem; line-height: 1.05; font-stretch: 62.5%; font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; overflow-wrap: anywhere; }
.vigente { background: var(--capa); padding: 16px; }
.vigente__frase { font-size: 18px; font-weight: 500; }
.vigente__cifra { font-size: 3.5rem; line-height: 1; font-stretch: 75%; font-weight: 800; margin: 0 4px; vertical-align: -0.12em; }
.vigente--sin .vigente__frase { color: var(--texto-2); }
.datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 12px 16px; margin-top: 16px; }
.datos dt { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--texto-2); }
.datos dd { font-size: 16px; font-weight: 600; }
.datos--lista { grid-template-columns: 1fr; gap: 0; margin-top: 0; }
.datos--lista div { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; border-bottom: 1px solid var(--linea); }
.datos--lista dd { text-align: right; }
.congelar { margin-top: 16px; }
.congelar > p { display: flex; gap: 8px; align-items: flex-start; color: var(--frio-t); margin-bottom: 12px; }
.congelar form { background: var(--capa); padding: 16px; display: grid; gap: 12px; margin-top: 8px; }
.notas { margin-top: 16px; white-space: pre-line; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; list-style: none; padding: 0; margin-top: 16px; max-width: 420px; }
.cal__cab { text-align: center; font-size: 12px; font-weight: 600; color: var(--texto-2); }
.cal__dia { position: relative; aspect-ratio: 1; display: grid; place-items: center; font-size: 14px; color: var(--texto-2); border: 1px solid var(--linea); }
.cal__dia--ok { background: var(--texto); border-color: var(--texto); color: var(--fondo); font-weight: 700; }
.cal__dia--vencido { border: 1.5px solid var(--vencido-t); color: var(--vencido-t); font-weight: 700; }
.cal__dia i .ico { position: absolute; top: 2px; right: 2px; width: 11px; height: 11px; stroke-width: 2.5; }
.cal__dia--hoy { outline: 2px solid var(--texto); outline-offset: 2px; }
.cal__dia--futuro { border-color: transparent; color: var(--tenue); }
.mesnav { display: flex; justify-content: space-between; gap: 16px; margin-top: 8px; }

/* ───── Formularios ───── */
.form { display: grid; gap: 16px; margin-top: 16px; }
.form--angosto { max-width: 520px; }
.form--rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--capa); padding: 16px; margin: 0 0 8px; }
.form--rejilla > .btn { grid-column: 1 / -1; justify-self: start; }
.form--linea { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.campo--ancho { grid-column: 1 / -1; }
@media (min-width: 720px) { .form--rejilla { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.campo { display: grid; gap: 6px; min-width: 0; }
.campo > span, fieldset > legend { font-size: 14px; font-weight: 600; color: var(--texto-2); }
.campo input, .campo select, .campo textarea { width: 100%; min-height: 48px; padding: 10px 12px; background: var(--fondo); border: 1.5px solid var(--linea-fuerte); font-size: 16px; }
.form--rejilla .campo input, .form--rejilla .campo select { background: var(--fondo); }
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--texto); outline: none; }
.campo textarea { resize: vertical; line-height: 1.5; }
.campo--dinero input { font-size: 22px; font-stretch: 87.5%; font-weight: 600; font-variant-numeric: tabular-nums; }
.campo--grande input { font-size: 32px; min-height: 64px; }
fieldset { border: 0; padding: 0; min-width: 0; }
fieldset.campo, fieldset.saludo { display: flex; flex-wrap: wrap; gap: 8px; }
fieldset.campo > legend, fieldset.saludo > legend { width: 100%; margin-bottom: 6px; }
.opcion { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--linea-fuerte); cursor: pointer; }
.opcion input { accent-color: var(--texto); width: 18px; height: 18px; }
.opcion:has(input:checked) { border-color: var(--texto); background: var(--capa-2); }
.ayuda { font-size: 14px; color: var(--texto-2); }
.acciones--form { margin-top: 8px; }
.segmentado { display: grid; grid-template-columns: repeat(3, 1fr); }
.segmentado label { position: relative; }
.segmentado input { position: absolute; opacity: 0; inset: 0; }
.segmentado span { display: grid; place-items: center; min-height: 48px; border: 1.5px solid var(--linea-fuerte); margin-left: -1.5px; font-weight: 600; cursor: pointer; }
.segmentado input:checked + span { background: var(--texto); color: var(--fondo); border-color: var(--texto); }
.segmentado input:focus-visible + span { outline: 2px solid var(--texto); outline-offset: 3px; }
.editable summary { cursor: pointer; }
.editable summary.fila { grid-template-columns: minmax(0, 1fr) auto; }
.editable summary.fila > .f-nombre, .editable summary.fila > .f-meta { grid-column: 1; }
.editable summary.fila > .l-precio, .editable summary.fila > .chip { grid-column: 2; grid-row: 1 / 3; }
.editable details[open] > summary { border-bottom-color: transparent; }
.editable--inactivo .f-nombre { color: var(--texto-2); }
.combo-prod { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 8px; margin-bottom: 8px; }
.permisos-rejilla { display: grid; gap: 24px; }
@media (min-width: 720px) { .permisos-rejilla { grid-template-columns: 1fr 1fr; } }
.permisos > legend { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--texto); margin-bottom: 4px; }
.casilla { display: flex; gap: 12px; align-items: flex-start; min-height: 48px; padding: 10px 0; border-bottom: 1px solid var(--linea); cursor: pointer; }
.casilla input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--texto); flex: none; }
.casilla b { display: block; font-weight: 600; }
.casilla small { display: block; color: var(--texto-2); font-size: 13px; }
.casilla:has(input:disabled) { cursor: default; }

/* ───── Cobrar ───── */
.cobrar .btn { min-height: var(--toque-caja); }
.socio-sel { display: flex; align-items: center; gap: 12px; padding: 12px 0 16px; border-bottom: 1px solid var(--linea); }
.ini { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border: 1.5px solid var(--linea-fuerte); font-weight: 700; font-stretch: 87.5%; }
.socio-sel > div { flex: 1; min-width: 0; }
.socio-sel strong { display: block; font-size: 17px; font-weight: 600; }
.socio-sel .f-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.elegir-socio { padding: 4px 0 8px; border-bottom: 1px solid var(--linea); }
.resultado { width: 100%; background: none; border: 0; text-align: left; grid-template-columns: minmax(0, 1fr) auto; }
.resultado > .f-nombre, .resultado > .f-meta { grid-column: 1; }
.resultado > .chip { grid-column: 2; grid-row: 1 / 3; }
.resultado:hover { background: var(--capa); }
.bloque { margin-top: 32px; }
.bloque > h2 { font-size: 1.5rem; line-height: 1.1; font-stretch: 75%; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; padding-bottom: 12px; border-bottom: 1px solid var(--linea); margin-bottom: 12px; }
.mosaico { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.item { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 112px; padding: 12px; background: var(--capa); border: 2px solid transparent; text-align: left; }
.item:hover { border-color: var(--linea-fuerte); }
.i-nom { font-size: 17px; font-weight: 600; line-height: 1.25; padding-right: 32px; }
.i-tag { font-size: 13px; color: var(--texto-2); line-height: 1.35; }
.i-precio { margin-top: auto; font-size: 22px; font-stretch: 87.5%; font-weight: 700; }
.i-marca { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; display: none; place-items: center; background: var(--texto); color: var(--fondo); }
.i-marca .ico { width: 18px; height: 18px; stroke-width: 2.75; }
.item[aria-pressed="true"] { border-color: var(--texto); background: var(--capa-2); }
.item[aria-pressed="true"] .i-marca { display: grid; }
.item[hidden], .fila[hidden] { display: none; }
.fila--accion .l-precio { margin-right: 4px; }
.cobrar .fila--accion { grid-template-columns: minmax(0, 1fr) auto auto; }
.item-combo[aria-pressed="true"] { background: var(--texto); color: var(--fondo); }
.fila--producto { grid-template-columns: minmax(0, 1fr) auto auto; }
.l-precio { font-size: 20px; font-stretch: 87.5%; font-weight: 600; text-align: right; white-space: nowrap; }
.cant { display: inline-flex; align-items: center; }
.cant button { width: var(--toque-caja); height: var(--toque-caja); display: grid; place-items: center; background: none; border: 1.5px solid var(--linea-fuerte); }
.cant button:hover:not(:disabled) { border-color: var(--texto); }
.cant button:disabled { color: var(--tenue); border-color: var(--linea); cursor: not-allowed; }
.cant output { min-width: 40px; text-align: center; font-size: 20px; font-weight: 700; }
.fila--producto.con { }
.fila--producto.con output { color: var(--texto); }
.js-cuenta li:not(.vacio) { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linea); }
.js-cuenta strong { font-weight: 600; display: block; }
.aviso-cuenta { margin-top: 12px; color: var(--aviso-t); display: flex; gap: 8px; align-items: center; font-weight: 600; }
.totalbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; display: flex; align-items: center; gap: 16px; min-height: var(--totalbar); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--capa); border-top: 1px solid var(--linea); }
.t-res { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.1; }
.t-etq { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--texto-2); }
.t-etq::before { content: ""; display: block; width: 32px; height: var(--raya); background: var(--marca-rojo); margin-bottom: 6px; }
.t-res strong { font-size: 36px; font-stretch: 75%; font-weight: 700; margin: 2px 0; }
.t-res .f-meta { font-size: 13px; }
.btn--cobrar { flex: 0 0 50%; min-height: var(--toque-caja); font-size: 18px; font-weight: 700; padding: 0 12px; }
.hoja .btn--cobrar { flex: none; }
@media (min-width: 960px) {
  .totalbar { left: var(--lateral); padding: 12px 48px; }
  .btn--cobrar { flex: 0 0 320px; }
}
@media (min-width: 1100px) {
  .cobrar__cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 0 40px; align-items: start; }
  .cobrar__cuenta { position: sticky; top: 24px; margin-top: 16px; }
}
.hoja { position: fixed; inset: auto 0 0 0; margin: 0 auto; width: min(560px, 100%); max-width: 100%; max-height: 92vh; overflow: auto; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); background: var(--capa); color: var(--texto); border: 0; border-top: 1px solid var(--linea-fuerte); }
.hoja::backdrop { background: rgba(0, 0, 0, 0.72); }
.hoja[open] { animation: fundido var(--fundido); }
.hoja__cab { display: flex; align-items: center; gap: 12px; }
.hoja__cab h2 { font-size: 1.5rem; font-stretch: 75%; font-weight: 700; text-transform: uppercase; }
.hoja__total { margin-left: auto; font-size: 28px; font-stretch: 75%; font-weight: 700; }
.metodos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; }
.metodo { position: relative; display: flex; align-items: center; gap: 10px; min-height: var(--toque-caja); padding: 0 14px; border: 1.5px solid var(--linea-fuerte); font-weight: 600; cursor: pointer; }
.metodo input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.metodo:has(input:checked) { background: var(--texto); color: var(--fondo); border-color: var(--texto); }
.metodo:has(input:focus-visible) { outline: 2px solid var(--texto); outline-offset: 3px; }
.pago-mixto { display: grid; gap: 8px; margin-bottom: 12px; }
.pago-efectivo .campo input { background: var(--fondo); }
.rapidos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.rapidos button { min-height: var(--toque-caja); background: none; border: 1.5px solid var(--linea-fuerte); font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rapidos button:hover, .rapidos button[aria-pressed="true"] { border-color: var(--texto); }
.cambio { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 16px 0; padding-top: 12px; border-top: 1px solid var(--linea); }
.cambio > span { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--texto-2); }
.cambio strong { font-size: 56px; line-height: 1; font-stretch: 75%; font-weight: 800; }
.cambio--falta strong, .cambio--falta > span { color: var(--vencido-t); }

/* ───── Ticket ───── */
.ticket-pantalla { display: grid; gap: 24px; margin-top: 24px; }
@media (min-width: 960px) { .ticket-pantalla { grid-template-columns: minmax(0, 400px) minmax(0, 360px); gap: 48px; align-items: start; } }
.ticket { background: var(--capa); padding: 20px 16px; }
.ticket__cab { text-align: center; padding-bottom: 12px; border-bottom: 1px dashed var(--linea-fuerte); }
.ticket__cab .letrero { font-size: 14px; margin-bottom: 4px; }
.ticket__socio { font-weight: 700; margin-top: 8px; }
.t-linea { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linea); }
.t-linea strong { font-weight: 600; }
.cambio--ticket strong { font-size: 40px; }
.ticket__pie { text-align: center; color: var(--texto-2); margin-top: 16px; font-size: 14px; }
.ticket-acciones { display: grid; gap: 8px; align-content: start; }
.hecho { display: flex; gap: 8px; align-items: flex-start; color: var(--ok-t); font-weight: 600; padding: 4px 0 8px; }
.peligro { margin-top: 16px; }
.peligro .form { background: var(--capa); padding: 16px; }
@media print {
  @page { size: 58mm auto; margin: 2mm; }
  body { background: #fff; }
  body * { visibility: hidden; }
  .ticket, .ticket * { visibility: visible; color: #000 !important; }
  .ticket { position: absolute; left: 0; top: 0; width: 54mm; background: #fff; padding: 0; font-size: 11px; }
  .ticket .letrero b { color: #000 !important; }
  .ticket .desglose dd, .t-linea { font-size: 12px; }
  .cambio--ticket strong { font-size: 18px; }
}

/* ───── Caja ───── */
.corte-hecho { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: var(--capa); margin-top: 16px; }
.corte-hecho > .ico { color: var(--ok-t); width: 24px; height: 24px; }
.corte-hecho > div { flex: 1; }
.dif { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; }
.dif .ico { width: 18px; height: 18px; stroke-width: 2.25; }
.dif--ok { color: var(--ok-t); }
.dif--falta { color: var(--vencido-t); }
.corte { margin-top: 16px; }
.corte__dif { min-height: 32px; font-size: 22px; }
.confirmar { margin-top: 16px; padding: 16px; background: var(--capa); border-top: 2px solid var(--texto); display: grid; gap: 12px; }
.confirmar h3 { font-size: 1.25rem; font-stretch: 87.5%; font-weight: 700; }
.confirmar__dif { font-size: 26px; }
.confirmar .acciones { margin-top: 0; }

/* ───── Reportes ───── */
.grafica { margin: 24px 0 8px; }
.grafica__area { position: relative; height: 200px; border-bottom: 1px solid var(--linea-fuerte); }
.grafica svg { display: block; width: 100%; height: 100%; }
.grafica__barras rect { fill: var(--texto); }
.grafica__barras rect:hover { fill: var(--texto-2); }
.grafica__meta { stroke: var(--marca-rojo); stroke-width: 2; }
.grafica__guia { stroke: var(--linea); stroke-width: 1; }
.grafica__meta-etq, .grafica__guia-etq { position: absolute; transform: translateY(-110%); font-size: 12px; font-weight: 600; background: var(--fondo); padding: 0 4px; }
.grafica__meta-etq { right: 0; color: var(--texto); }
.grafica__guia-etq { left: 0; color: var(--texto-2); }
.grafica__x { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); font-size: 12px; color: var(--texto-2); margin-top: 4px; }
.grafica__x span { text-align: center; }
.desglose--fila { margin-top: 16px; }
@media (min-width: 720px) { .desglose--fila { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 24px; } }
.calor-marco { overflow-x: auto; margin-top: 16px; }
.calor { border-collapse: separate; border-spacing: 2px; width: 100%; min-width: 320px; }
.calor th { font-size: 12px; font-weight: 600; color: var(--texto-2); padding: 4px; }
.calor th[scope="row"] { text-align: right; white-space: nowrap; padding-right: 8px; font-weight: 500; }
.calor td { height: 28px; min-width: 34px; font-size: 12px; font-weight: 600; text-align: center; }
.leyenda { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--texto-2); margin-top: 8px; }
.leyenda i { width: 20px; height: 12px; display: inline-block; }
.leyenda span:first-child { margin-right: 4px; }
.leyenda span:last-child { margin-left: 4px; }

/* ───── Entrar, más ───── */
.entrar { min-height: 100vh; display: grid; align-content: center; justify-items: center; gap: 40px; padding: 40px 16px; }
.entrar__marca { text-align: center; }
.entrar__form { width: min(400px, 100%); display: grid; gap: 16px; }
.entrar__form h1 { font-size: 1.5rem; font-stretch: 75%; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.entrar__form h1::after { content: ""; display: block; width: 32px; height: var(--raya); background: var(--marca-rojo); margin-top: 12px; }
.entrar__nota { font-size: 14px; color: var(--texto-3); }
@media (min-width: 960px) {
  .entrar { grid-template-columns: 1fr 1fr; align-items: center; padding: 0; gap: 0; }
  .entrar__marca { align-self: stretch; display: grid; align-content: center; border-right: 1px solid var(--linea); padding: 48px; }
  .entrar__marca .logo--grande { width: 200px; }
  .entrar__marca .letrero--grande { font-size: 24px; }
}
.quien { display: flex; gap: 12px; align-items: center; }
.quien b { display: block; font-weight: 600; line-height: 1.3; }
.quien small { display: block; color: var(--texto-2); font-size: 13px; }
.quien--grande { margin: 24px 0 8px; }
.mas-salir { margin-top: 32px; }
.lateral__pie .btn--texto { justify-content: flex-start; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; } }

/* ───── Ajustes tras la primera ronda de capturas ───── */
.tabla td.cifra { white-space: nowrap; }
.rapidos { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.grafica__area { margin-left: 56px; }
.grafica__guia-etq { left: -56px; width: 52px; text-align: right; padding: 0; background: none; transform: translateY(-50%); }
.grafica__x { margin-left: 56px; }
.reportes .desplegable { margin-top: 8px; }
.reportes .desplegable > summary { display: inline-flex; }

/* ───── WOD (vistas-wod.mjs): semana, editor por partes, vista previa y el cronómetro de la TV ───── */
.barra__recepcion { min-height: 40px; padding: 0 12px; font-size: 14px; margin-left: auto; }
.barra__recepcion .ico { width: 18px; height: 18px; }
.lateral__recepcion { margin-top: 8px; justify-content: flex-start; }
.mas-recepcion { margin: 24px 0 8px; }

.pestanas { display: flex; margin: 16px 0 0; border-bottom: 1px solid var(--linea); }
.pestanas a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; color: var(--texto-2); text-decoration: none; font-weight: 700; font-stretch: 87.5%; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.pestanas a .ico { width: 18px; height: 18px; }
.pestanas [aria-current] { color: var(--texto); border-bottom-color: var(--texto); }
@media (min-width: 960px) { .pestanas { max-width: 520px; } }

.semana { display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; align-items: center; gap: 4px; margin-top: 16px; }
.semana__flecha { width: 36px; color: var(--texto-2); }
.semana__flecha--sig .ico { transform: scaleX(-1); }
.semana__dias { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; list-style: none; padding: 0; }
.dia { display: grid; justify-items: center; gap: 2px; padding: 6px 0 8px; min-height: 64px; text-decoration: none; color: var(--texto-2); border: 1px solid var(--linea); }
.dia span { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.dia b { font-size: 20px; line-height: 1; font-stretch: 75%; font-weight: 700; color: var(--texto); }
.dia--hoy { border-color: var(--linea-fuerte); }
.dia--hoy span { color: var(--texto); }
.dia[aria-current] { background: var(--texto); border-color: var(--texto); }
.dia[aria-current] span, .dia[aria-current] b { color: var(--fondo); }
.dia__marca { display: block; width: 16px; height: var(--raya); background: transparent; }
.dia__marca--pub { background: var(--ok-t); }
.dia__marca--borr { background: var(--linea-fuerte); }
.dia[aria-current] .dia__marca--pub { background: var(--ok); }
.dia[aria-current] .dia__marca--borr { background: #8c8c8c; }
.semana__ley { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 8px; color: var(--texto-2); font-size: 13px; }
.semana__ley span { display: inline-flex; align-items: center; gap: 6px; }
.semana__ley .enlace { margin-left: auto; min-height: 32px; font-size: 14px; }

.rapido { display: flex; gap: 8px; margin: 24px -16px 0; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.rapido::-webkit-scrollbar { display: none; }
.rapido .btn { padding: 0 14px; font-size: 14px; flex: none; }
.rapido .btn .ico { width: 18px; height: 18px; }
@media (min-width: 960px) { .rapido { margin: 24px 0 0; padding: 0; flex-wrap: wrap; } }

.wod-form { margin-top: 24px; gap: 20px; max-width: 720px; }
.partes-ed { display: grid; gap: 16px; }
.parte-ed { border: 0; padding: 16px; background: var(--capa); display: grid; gap: 12px; min-width: 0; }
.pe-cab { display: grid; grid-template-columns: 24px minmax(0, 1fr) 40px 40px 40px; align-items: center; gap: 4px; margin: -4px -8px 0 0; }
.pe-num { font-size: 22px; font-weight: 800; font-stretch: 62.5%; color: var(--texto-2); }
.pe-nombre select { width: 100%; min-height: 48px; padding: 0 8px; background: transparent; border: 0; border-bottom: 1.5px solid var(--linea-fuerte); font-size: 17px; font-weight: 700; font-stretch: 75%; text-transform: uppercase; letter-spacing: 0.02em; text-overflow: ellipsis; }
.pe-nombre select:focus { outline: none; border-bottom-color: var(--texto); }
.pe-nombre option { background: var(--capa); text-transform: none; }
.pe-cab .btn--icono { width: 40px; min-height: 48px; color: var(--texto-2); }
.pe-cab .btn--icono:not(:disabled):hover { color: var(--texto); background: var(--capa-2); }
.pe-cab .btn--icono:disabled { border-color: transparent; color: #4a4a4a; }
.pe-fila { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
.parte-ed[data-formato='rondas'] .pe-fila { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.8fr); }
.parte-ed .campo input, .parte-ed .campo select, .parte-ed .campo textarea { background: var(--fondo); }
.parte-ed textarea { font-size: 17px; line-height: 1.55; min-height: 148px; }
.campo--min input, .campo--rondas input { font-variant-numeric: tabular-nums; font-size: 20px; font-weight: 600; }
.pe-escalado summary { min-height: 40px; font-size: 14px; }
.pe-esc { display: grid; gap: 8px; margin-top: 4px; }

.previa { margin-top: 8px; }
.previa__marco { position: relative; aspect-ratio: 16 / 9; overflow: hidden; margin-top: 12px; background: var(--fondo); outline: 1px solid var(--linea-fuerte); }
.previa__marco iframe { position: absolute; top: 0; left: 0; width: 1920px; height: 1080px; border: 0; transform-origin: 0 0; transform: scale(0.18); pointer-events: none; }

.wod-acciones { position: sticky; bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); z-index: 5; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 8px; margin: 0 -16px; padding: 12px 16px; background: var(--fondo); border-top: 1px solid var(--linea); }
.wod-acciones .btn { min-height: var(--toque-caja); }
@media (min-width: 960px) { .wod-acciones { bottom: 0; margin: 0; padding: 16px 0; } }

.wod-lectura { margin-top: 24px; }
.wod-titulo { font-size: 1.5rem; font-weight: 800; font-stretch: 75%; text-transform: uppercase; }
.wod-parte { margin-top: 24px; }
.wod-parte h3 { font-size: 17px; text-transform: uppercase; letter-spacing: 0.04em; padding-bottom: 8px; border-bottom: 1px solid var(--linea-fuerte); }
.wod-parte h3 span { color: var(--texto-2); font-weight: 600; margin-left: 8px; }

/* El cronómetro en el celular: la misma cuenta que la TV */
.sec--primera { margin-top: 24px; }
.crono { scroll-margin-top: 72px; margin-top: 16px; padding: 20px 16px 16px; background: var(--capa); text-align: center; }
.crono__que { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--texto-2); }
.crono__cifra { font-size: 6rem; line-height: 1; font-weight: 800; font-stretch: 62.5%; margin: 8px 0 4px; white-space: nowrap; }
.crono__estado { font-size: 16px; font-weight: 600; min-height: 1.5em; }
.crono[data-fase='pausa'] .crono__cifra, .crono[data-fase='apagado'] .crono__cifra { color: var(--texto-2); }
.crono--ultimos .crono__cifra, .crono--ultimos .crono__estado { color: var(--aviso-t); }
.crono-mandos { display: flex; gap: 8px; margin-top: 8px; }
.crono-mandos .btn { flex: 1 1 0; }
.btn--grande { min-height: 64px; font-size: 18px; }
.vivo-error { margin-top: 8px; color: var(--vencido-t); font-weight: 600; }
.partes-crono { list-style: none; padding: 0; }
.parte-boton { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; width: 100%; min-height: 64px; padding: 8px 12px; background: none; border: 0; border-bottom: 1px solid var(--linea); text-align: left; }
.parte-boton .f-nombre, .parte-boton .f-meta { grid-column: 1; }
.parte-boton__ok { grid-column: 2; grid-row: 1 / 3; visibility: hidden; }
.parte-boton:hover { background: var(--capa); }
.parte-boton[aria-pressed='true'] { background: var(--capa-2); border-bottom: var(--raya) solid var(--texto); }
.parte-boton[aria-pressed='true'] .parte-boton__ok { visibility: visible; }
.campo--hora input { max-width: 180px; font-variant-numeric: tabular-nums; }
@media (min-width: 960px) { .crono, .crono-mandos { max-width: 560px; } }
.js-quitar-crono .btn { white-space: normal; text-align: left; margin-top: 8px; }
