/* TallerTrack · demo — dirección «Ficha técnica»
   El panel como el tablero de un taller: grafito, amarillo de seguridad (el color del taller), etiquetas en
   monoespaciada como una ficha técnica y matrículas grandes con aspecto de placa. Rótulos en Saira, datos en
   IBM Plex Mono. La página que ve el cliente es clara y tranquila: fondo claro, pasos visibles, sin ruido. */
:root {
  --brand: #ffb400;            /* color del taller (amarillo de seguridad por defecto); core.js calcula --on-brand */
  --on-brand: #141618;
  --bg: #17191b;
  --panel: #1f2225; --panel-2: #272b2f; --panel-3: #30353a;
  --borde: #363b41; --borde-2: #2b2f34;
  --txt: #ecebe6; --txt-2: #aeb2b5; --txt-3: #868c91;
  --campo: #141618;
  --ok: #3fbf6f; --peligro: #ff5a3c; --aviso: #f2b705; --wa: #25a35a;
  --radio: 4px;
  --sombra: none;
  --sombra-flota: 0 24px 60px rgba(0, 0, 0, .5);
  --sans: "Saira", "Arial Narrow", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --top: var(--erma-h, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --rayas: repeating-linear-gradient(-45deg, var(--brand) 0 7px, #141618 7px 14px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--sans); font-stretch: 100%;
  background: var(--bg); color: var(--txt); font-size: 15px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.sin-scroll { overflow: hidden; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; font-weight: 700; }
h2 { font-size: 1.35rem; font-stretch: 108%; letter-spacing: -.005em; }
h3 { font-size: 1.02rem; }
::selection { background: var(--brand); color: var(--on-brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.muted { color: var(--txt-2); } .tenue { color: var(--txt-3); font-size: .85rem; }
.oculto { display: none !important; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ─── Botones y formularios ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  font: inherit; font-weight: 600; font-size: .92rem; padding: .55em 1.05em; min-height: 40px;
  border-radius: var(--radio); border: 1px solid var(--borde); background: var(--panel-2); color: var(--txt);
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .08s;
}
.btn:hover { background: var(--panel-3); border-color: #4a5057; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primario { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn.primario:hover { background: color-mix(in srgb, var(--brand) 86%, #fff); border-color: color-mix(in srgb, var(--brand) 86%, #fff); }
.btn.peligro { color: var(--peligro); }
.btn.peligro:hover { border-color: var(--peligro); }
.btn.peligro.lleno { background: var(--peligro); color: #fff; border-color: var(--peligro); }
.btn.wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn.wa:hover { background: #1f8f4e; border-color: #1f8f4e; }
.btn.peq { min-height: 32px; padding: .3em .75em; font-size: .85rem; }
.btn.bloque { width: 100%; }
.btn svg { width: 16px; height: 16px; }
label.btn { font: 600 .85rem/1.2 var(--sans); text-transform: none; letter-spacing: 0; color: var(--txt); margin: 0; }
.btn-texto { background: none; border: 0; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

label { display: block; font: 500 .72rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--txt-3); margin-bottom: .4em; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--txt); background: var(--campo);
  border: 1px solid var(--borde); border-radius: var(--radio); padding: .55em .75em; min-height: 42px; transition: border-color .15s;
}
input:hover, select:hover, textarea:hover { border-color: #4a5057; }
textarea { min-height: 76px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; accent-color: var(--brand); box-shadow: none; }
input[type=color] { padding: 2px; width: 46px; height: 42px; }
.check { display: flex; align-items: center; gap: .55em; font: 500 .92rem/1.35 var(--sans); text-transform: none; letter-spacing: 0; color: var(--txt); margin: 0; cursor: pointer; }
.campo { margin-bottom: .9rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .8rem; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 .8rem; }
@media (max-width: 560px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.acciones { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; margin-top: 1rem; }
.error-txt { color: var(--peligro); font-size: .88rem; min-height: 1.2em; margin: .3rem 0; }
fieldset { border: 0; padding: 0; margin: 0 0 .6rem; }
legend { font: 600 .74rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin: .4rem 0 .9rem; padding: 0; }

/* ─── Matrícula con aspecto de placa ─── */
.matricula {
  display: inline-flex; align-items: stretch; border: 2px solid #111; border-radius: 4px; overflow: hidden;
  background: #fbfbf8; color: #111; font-family: var(--sans); font-stretch: 78%;
  font-weight: 700; letter-spacing: .05em; font-size: 1rem; line-height: 1; white-space: nowrap;
  box-shadow: inset 0 0 0 1px #d6d6d0;
}
.matricula::before { content: "E"; display: flex; align-items: flex-end; background: #1f4bb5; color: #fff; font: 600 .5em/1 var(--sans); font-stretch: 100%; padding: 0 .38em .35em; letter-spacing: 0; }
.matricula span { padding: .28em .5em .24em; }
.matricula.grande { font-size: 1.6rem; border-width: 2.5px; }

/* ─── Estructura del panel ─── */
.topbar {
  position: sticky; top: var(--top); z-index: 20; display: flex; align-items: stretch; gap: 1.2rem;
  padding: 0 1rem; min-height: 58px; background: #101214; border-bottom: 1px solid var(--borde-2);
}
.marca-app { display: flex; align-items: center; gap: .65rem; font-weight: 700; font-stretch: 112%; font-size: 1.05rem; letter-spacing: -.01em; min-width: 0; }
.marca-app .logo { width: 34px; height: 34px; border-radius: 3px; background: var(--brand); display: grid; place-items: center; color: var(--on-brand); flex: none; }
.marca-app .logo svg { width: 20px; height: 20px; }
.marca-app small { display: block; font: 500 .7rem/1.3 var(--mono); font-stretch: 100%; text-transform: uppercase; letter-spacing: .06em; color: var(--txt-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; gap: .1rem; margin-left: auto; align-items: stretch; }
.nav button { position: relative; display: inline-flex; align-items: center; font: inherit; font-weight: 600; font-size: .93rem; border: 0; background: none; color: var(--txt-2); padding: 0 .85em; cursor: pointer; transition: color .15s, background .15s; }
.nav button:hover { color: var(--txt); background: var(--panel); }
.nav button.activo { color: var(--txt); box-shadow: inset 0 -3px 0 var(--brand); }
.usuario { display: flex; align-items: center; gap: .6rem; font: 500 .74rem/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--txt-3); white-space: nowrap; }
@media (max-width: 960px) {
  .topbar { flex-wrap: wrap; gap: 0 .8rem; padding: .5rem .8rem 0; }
  .usuario { margin-left: auto; }
  .usuario .nombre-u { display: none; }
  .nav { order: 3; width: calc(100% + 1.6rem); margin: .4rem -.8rem 0; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--borde-2); }
  .nav::-webkit-scrollbar { display: none; }
  .nav button { padding: .75em .85em; white-space: nowrap; }
}
.contenido { padding: 1.1rem 1rem 2.5rem; max-width: 1640px; margin: 0 auto; }
.barra-herr { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.barra-herr .buscar { flex: 1 1 240px; max-width: 380px; }
.barra-herr .derecha { margin-left: auto; display: flex; gap: .5rem; }
#contador { font-family: var(--mono); font-size: .78rem; }
.chip { display: inline-flex; align-items: center; gap: .4em; font: 500 .76rem/1.2 var(--mono); padding: .4em .75em; border-radius: 3px; background: var(--panel-2); border: 1px solid var(--borde); color: var(--txt-2); }
.chip svg { width: 13px; height: 13px; stroke-width: 3; }
.chip.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
button.chip { cursor: pointer; min-height: 40px; padding: 0 .95em; transition: border-color .15s; }
button.chip:hover { border-color: #4a5057; }
.punto { width: 9px; height: 9px; border-radius: 1px; display: inline-block; flex: none; }
.icono-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radio); border: 1px solid var(--borde); background: var(--panel-2); color: var(--txt-2); cursor: pointer; text-decoration: none; }
.icono-btn:hover { color: var(--brand); border-color: var(--brand); }
.icono-btn svg { width: 18px; height: 18px; }

/* ─── Resumen del tablero: el dato grande y lo que pide atención ─── */
.resumen { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); margin-bottom: 1rem; border: 1px solid var(--borde-2); background: var(--panel); border-radius: var(--radio); }
.resumen > div { display: flex; flex-direction: column; justify-content: flex-end; gap: .15rem; padding: .9rem 1.1rem; min-width: 0; }
.resumen > div + div { border-left: 1px solid var(--borde-2); }
.rs-l { font: 500 .7rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--txt-3); }
.rs-main { flex-direction: row !important; justify-content: flex-start !important; align-content: flex-end; align-items: baseline; flex-wrap: wrap; gap: 0 .6rem !important; }
.rs-main .rs-l { width: 100%; }
.rs-n { font: 800 4.6rem/.85 var(--sans); font-stretch: 80%; letter-spacing: -.03em; color: var(--brand); font-variant-numeric: tabular-nums; }
.rs-u { font-size: 1.15rem; font-weight: 600; color: var(--txt-2); }
.rs-dato b { font: 700 2.1rem/1 var(--sans); font-stretch: 85%; font-variant-numeric: tabular-nums; }
.rs-dato.ok b { color: var(--ok); }
.rs-dato.aviso b { color: var(--aviso); }
.rs-dato.alerta { position: relative; }
.rs-dato.alerta::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: repeating-linear-gradient(-45deg, var(--peligro) 0 7px, transparent 7px 14px); }
.rs-dato.alerta b { color: var(--peligro); }

/* ─── Tablero: una columna por estado, como el panel de la pared del taller ─── */
.tablero { display: grid; grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr)); gap: .5rem; align-items: start; }
.columna { background: var(--panel); border: 1px solid var(--borde-2); border-radius: var(--radio); display: flex; flex-direction: column; min-width: 0; transition: outline-color .15s; }
.columna.drop { outline: 2px dashed var(--brand); outline-offset: -2px; background: color-mix(in srgb, var(--brand) 6%, var(--panel)); }
.col-cab { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .55rem; padding: .85rem .75rem .7rem; border-bottom: 1px solid var(--borde-2); min-width: 0; }
.col-cab::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 4px; background: var(--c, var(--borde)); border-radius: var(--radio) var(--radio) 0 0; }
.col-cab .cod { font: 600 .72rem/1 var(--mono); color: var(--c, var(--txt-3)); }
.col-cab .nom { min-width: 0; font-weight: 700; font-size: .95rem; line-height: 1.15; overflow-wrap: anywhere; }
.col-cab .n { font: 600 1.25rem/1 var(--mono); color: var(--txt); font-variant-numeric: tabular-nums; }
.col-lista { padding: .5rem; display: flex; flex-direction: column; gap: .5rem; min-height: 64px; }
.col-vacia { color: var(--txt-3); font: 500 .74rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; text-align: center; padding: 1rem 0; border: 1px dashed var(--borde); border-radius: 3px; }
.columna.vacia .col-cab .n { color: var(--txt-3); }
@media (max-width: 1240px) {
  .tablero { grid-template-columns: 1fr; }
  .col-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); min-height: 0; }
  .columna.vacia .col-lista { display: none; }
  .columna.vacia .col-cab { border-bottom: 0; color: var(--txt-3); }
}

.tarjeta {
  position: relative; background: var(--panel-2); border: 1px solid var(--borde); box-shadow: inset 3px 0 0 var(--c, var(--borde));
  border-radius: 3px; padding: .7rem .7rem .6rem .85rem; cursor: grab; user-select: none; overflow: hidden;
  transition: border-color .15s, transform .15s var(--ease), background .15s;
}
.tarjeta:hover { border-color: #545b62; background: #2c3035; transform: translateY(-1px); }
.tarjeta:active { cursor: grabbing; }
.tarjeta.arrastrando { opacity: .4; }
.tarjeta.lento::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: repeating-linear-gradient(-45deg, var(--peligro) 0 6px, transparent 6px 12px); }
.tarjeta .fila { display: flex; align-items: center; gap: .35rem .5rem; justify-content: space-between; flex-wrap: wrap; }
.tarjeta .matricula { font-size: 1.32rem; }
.tarjeta .coche { font-weight: 700; margin-top: .55rem; font-size: .98rem; line-height: 1.2; }
.tarjeta .cliente { color: var(--txt-2); font-size: .86rem; }
.tarjeta .problema { color: var(--txt-2); font-size: .83rem; margin-top: .3rem; padding-top: .3rem; border-top: 1px dashed var(--borde); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tarjeta .pie { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .35rem .5rem; margin-top: .6rem; font: 500 .72rem/1.2 var(--mono); color: var(--txt-3); }
.tarjeta .pie > span { display: inline-flex; align-items: center; gap: .35em; }
.tarjeta .pie svg { width: 13px; height: 13px; }
.tarjeta .avanzar { display: inline-flex; align-items: center; gap: .35em; font: 600 .7rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .03em; border: 1px solid var(--borde); background: var(--panel); color: var(--txt); border-radius: 3px; padding: .45em .6em; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.tarjeta .avanzar svg { width: 12px; height: 12px; transition: transform .2s var(--ease); }
.tarjeta .avanzar:hover { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.tarjeta .avanzar:hover svg { transform: translateX(2px); }
.fila-form { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.mecanico-tag { font: 600 .68rem/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--txt-2); background: var(--panel); border: 1px solid var(--borde); border-radius: 2px; padding: .35em .45em; }
.alerta-tiempo { color: var(--peligro); font-weight: 600; }

/* ─── Modal ─── */
.modal-fondo { position: fixed; inset: 0; z-index: 100; background: rgba(6, 7, 8, .66); display: flex; align-items: flex-start; justify-content: center; padding: 4vh 12px; overflow-y: auto; animation: fade .15s; }
.modal { position: relative; width: 100%; max-width: 560px; background: var(--panel); border: 1px solid var(--borde); border-top: 4px solid var(--brand); border-radius: 0 0 var(--radio) var(--radio); padding: 1.35rem 1.35rem 1.25rem; box-shadow: var(--sombra-flota); animation: sube .25s var(--ease); }
.modal.ancho { max-width: 900px; }
.modal-x { position: absolute; top: .55rem; right: .6rem; width: 36px; height: 36px; border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--txt-2); cursor: pointer; border-radius: 3px; }
.modal-x:hover { background: var(--panel-2); color: var(--txt); }
.modal h2 { padding-right: 2rem; }
@media (max-width: 560px) { .modal-fondo { padding: 0; align-items: stretch; } .modal { border-radius: 0; min-height: 100%; } }
.confirm-txt { font-size: 1.02rem; margin: .5rem 2rem .5rem 0; }
@keyframes fade { from { opacity: 0; } }
@keyframes sube { from { opacity: 0; transform: translateY(14px); } }

.detalle { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.2rem; }
@media (max-width: 760px) { .detalle { grid-template-columns: 1fr; } }
.bloque:not(.btn) { background: var(--panel-2); border: 1px solid var(--borde-2); border-radius: var(--radio); padding: .95rem; margin-bottom: .9rem; }
.bloque h3, .tarjeta-panel h3 { font: 600 .72rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--txt-3); margin-bottom: .75rem; }
.datos { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; font-size: .92rem; margin: 0; }
.datos dt { font: 500 .72rem/1.6 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--txt-3); }
.datos dd { margin: 0; overflow-wrap: anywhere; }
.estado-actual { display: inline-flex; align-items: center; gap: .45em; font: 600 .78rem/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; padding: .5em .8em; border-radius: 2px; color: #141618; background: var(--c); }
.aviso-wa { border: 1px solid color-mix(in srgb, var(--wa) 50%, transparent); background: color-mix(in srgb, var(--wa) 12%, var(--panel)); border-radius: var(--radio); padding: .85rem; margin-bottom: 1rem; }
.aviso-wa p { margin: 0 0 .6rem; font-size: .92rem; }
.botones-fila { display: flex; gap: .5rem; flex-wrap: wrap; }

.linea-tiempo { list-style: none; margin: 0; padding: 0; }
.linea-tiempo li { position: relative; padding: 0 0 1rem 1.5rem; }
.linea-tiempo li::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: -4px; width: 2px; background: var(--borde); }
.linea-tiempo li:last-child::before { display: none; }
.linea-tiempo li::after { content: ""; position: absolute; left: 0; top: 4px; width: 10px; height: 10px; border-radius: 1px; background: var(--c, var(--txt-3)); }
.linea-tiempo .t { font-weight: 700; font-size: .95rem; }
.linea-tiempo .f { color: var(--txt-3); font: 500 .74rem/1.4 var(--mono); }
.linea-tiempo .nota { font-size: .9rem; margin-top: .2rem; color: var(--txt-2); white-space: pre-line; }
.linea-tiempo .interna { font: 600 .66rem/1 var(--mono); letter-spacing: .05em; color: #141618; background: var(--aviso); padding: .25em .4em; border-radius: 2px; margin-left: .4rem; vertical-align: 2px; }

.fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: .45rem; }
.fotos .foto { position: relative; aspect-ratio: 1; border-radius: 3px; overflow: hidden; background: var(--borde); }
.fotos img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.fotos .quitar { position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 2px; border: 0; background: rgba(0, 0, 0, .7); color: #fff; cursor: pointer; font-size: 15px; line-height: 1; }
.subir-foto { aspect-ratio: 1; border: 1px dashed #4a5057; border-radius: 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; text-align: center; color: var(--txt-2); font: 500 .66rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .04em; cursor: pointer; margin: 0; padding: .3rem; transition: border-color .15s, color .15s; }
.subir-foto svg { width: 22px; height: 22px; }
.subir-foto:hover { border-color: var(--brand); color: var(--brand); }
.visor { position: fixed; inset: 0; z-index: 110; background: rgba(0, 0, 0, .92); display: grid; place-items: center; cursor: zoom-out; padding: 1rem; }
.visor img { max-width: 100%; max-height: 100%; border-radius: 3px; }

/* ─── Tablas / listas ─── */
.tarjeta-panel { background: var(--panel); border: 1px solid var(--borde-2); border-radius: var(--radio); padding: 1.15rem; margin-bottom: 1rem; }
.tabla { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tabla th { text-align: left; font: 600 .7rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--txt-3); padding: .6rem .55rem; border-bottom: 1px solid var(--borde); }
.tabla td { padding: .65rem .55rem; border-bottom: 1px solid var(--borde-2); vertical-align: middle; }
.tabla tr.clic { cursor: pointer; } .tabla tr.clic:hover td { background: var(--panel-2); }
.tabla-scroll { overflow-x: auto; }
@media (max-width: 640px) {
  .tabla thead { display: none; }
  .tabla, .tabla tbody, .tabla tr, .tabla td { display: block; width: 100%; }
  .tabla tr { padding: .7rem 0; border-bottom: 1px solid var(--borde); }
  .tabla td { border: 0; padding: .15rem 0; }
  .tabla td:empty { display: none; }
}
.ajustes { display: grid; grid-template-columns: 210px minmax(0, 740px); gap: 1.2rem; align-items: start; }
.ajustes:not(:has(> .sub-menu)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sub-menu { display: flex; flex-direction: column; gap: 0; position: sticky; top: calc(var(--top) + 4.6rem); border-left: 1px solid var(--borde); }
.sub-menu button { font: inherit; font-weight: 600; font-size: .92rem; text-align: left; border: 0; background: none; color: var(--txt-2); padding: .6em .9em; cursor: pointer; white-space: nowrap; margin-left: -1px; border-left: 3px solid transparent; transition: color .15s; }
.sub-menu button:hover { color: var(--txt); }
.sub-menu button.activo { color: var(--txt); border-left-color: var(--brand); }
.otro-campo { margin-top: .4rem; }
.presu-diag { background: var(--panel-2); border: 1px solid var(--borde); border-radius: var(--radio); padding: .65rem .8rem; margin: 0 0 .8rem; white-space: pre-line; font-size: .93rem; }
.presu-diag strong { display: block; font: 600 .7rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--txt-3); margin-bottom: .25rem; }
.mas-datos { border-top: 1px solid var(--borde); padding-top: .75rem; margin-top: .3rem; }
.mas-datos summary { cursor: pointer; font: 600 .74rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--txt-2); margin-bottom: .75rem; }
.dos-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1rem; align-items: start; }
@media (max-width: 400px) { .dos-col { grid-template-columns: 1fr; } }
.marca-app .logo.con-img { background: #fff; width: 36px; height: 36px; padding: 2px; }
.marca-app .logo img, .logo-prev img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.logo-campo { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.logo-campo .btn { margin: 0; }
.logo-prev { width: 56px; height: 56px; border-radius: 3px; border: 1px dashed var(--borde); background: var(--panel-2); display: grid; place-items: center; font: 500 .62rem/1.2 var(--mono); color: var(--txt-3); text-align: center; flex: none; padding: 3px; }
.taller-fila { display: flex; align-items: center; gap: .6rem; }
.logo-mini { width: 32px; height: 32px; border-radius: 3px; object-fit: contain; flex: none; display: inline-block; }
.seg-cab:has(.seg-logo) { display: flex; align-items: center; gap: .8rem; }
.seg-logo { width: 54px; height: 54px; object-fit: contain; border-radius: 8px; background: #fff; padding: 4px; flex: none; }
.equipo { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1rem; align-items: start; max-width: 1100px; }
.roles { margin: 0; font-size: .9rem; }
.roles dt { font-weight: 700; margin-top: .7rem; } .roles dt:first-child { margin-top: 0; }
.roles dd { margin: .1rem 0 0; color: var(--txt-2); }
@media (max-width: 860px) {
  .ajustes, .ajustes:not(:has(> .sub-menu)), .equipo { grid-template-columns: 1fr; }
  .sub-menu { flex-direction: row; flex-wrap: wrap; position: static; border-left: 0; border-bottom: 1px solid var(--borde); }
  .sub-menu button { border-left: 0; border-bottom: 3px solid transparent; margin: 0 0 -1px; }
  .sub-menu button.activo { border-bottom-color: var(--brand); }
}
.estado-fila { display: grid; grid-template-columns: auto 46px 1fr auto; gap: .5rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--borde-2); }
.estado-fila .ord { display: flex; flex-direction: column; }
.estado-fila .ord button { border: 0; background: none; color: var(--txt-2); cursor: pointer; font-size: .8rem; padding: 0 .3rem; line-height: 1.2; }
.estado-fila .ord button:disabled { opacity: .25; cursor: default; }
.estado-fila .opts { grid-column: 3 / -1; display: flex; gap: 1rem; flex-wrap: wrap; }
.estado-fila textarea { grid-column: 3 / -1; min-height: 60px; font-size: .9rem; }
.vacio { text-align: center; color: var(--txt-3); padding: 2.5rem 1rem; font: 500 .8rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .05em; }

/* ─── Acceso: fichar al entrar ─── */
.centro { min-height: calc(100dvh - var(--top)); display: grid; place-items: center; padding: 2rem 1rem; background-color: var(--bg);
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 48px), repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 48px); }
.caja-login { position: relative; width: 100%; max-width: 410px; background: var(--panel); border: 1px solid var(--borde); border-radius: var(--radio); padding: 2.2rem 1.7rem 1.6rem; overflow: hidden; animation: sube .4s var(--ease); }
.caja-login::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--rayas); }
.caja-login .marca-app { justify-content: flex-start; font-size: 1.7rem; margin-bottom: .2rem; }
.caja-login .marca-app .logo { width: 44px; height: 44px; }
.caja-login .sub { color: var(--txt-3); margin: 0 0 1.5rem; font: 500 .74rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.demo-accesos { margin-top: 1.4rem; font: 500 .74rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--txt-3); border-top: 1px dashed var(--borde); padding-top: 1.1rem; }
.demo-accesos strong { color: var(--brand); }
.demo-accesos button { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: .6rem; font: 600 .95rem/1.2 var(--sans); text-transform: none; letter-spacing: 0; background: var(--panel-2); border: 1px solid var(--borde); color: var(--txt); padding: .8em .9em; border-radius: 3px; margin-top: .45rem; cursor: pointer; transition: border-color .15s, background .15s, transform .15s var(--ease); }
.demo-accesos button .tenue { font: 500 .72rem/1 var(--mono); }
.demo-accesos button:hover { border-color: var(--brand); background: var(--panel-3); transform: translateX(3px); }

/* ─── Contadores y secciones ─── */
.badge:empty { display: none; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 2px; background: var(--brand); color: var(--on-brand); font: 600 .72rem/1 var(--mono); margin-left: .35rem; }
.cab-seccion { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-bottom: .7rem; }
.cab-seccion h2 { margin: 0; }
label.chip { cursor: pointer; margin: 0; } label.chip input { margin: 0; }
.chip.alerta { color: var(--peligro); border-color: color-mix(in srgb, var(--peligro) 45%, transparent); }
.lista-simple { list-style: none; margin: 0; padding: 0; }
.lista-simple li { padding: .6rem 0; border-bottom: 1px solid var(--borde-2); font-size: .92rem; color: var(--txt); }
.lista-simple li:last-child { border-bottom: 0; }
.lista-simple li.clic { cursor: pointer; } .lista-simple li.clic:hover { background: var(--panel-2); }
.tabla .num, .presu-tabla .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ─── Presupuesto ─── */
.btn.ok-lleno { background: var(--ok); border-color: var(--ok); color: #0b1a10; }
.btn.ok-lleno:hover { background: #4fd07f; border-color: #4fd07f; }
.presu-tag { margin-top: .5rem; font: 600 .68rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .03em; padding: .4em .5em; border-radius: 2px; display: inline-block; }
.presu-tag.pendiente { background: color-mix(in srgb, var(--aviso) 18%, transparent); color: var(--aviso); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--aviso) 45%, transparent); }
.presu-tag.aprobado { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.presu-tag.rechazado { background: color-mix(in srgb, var(--peligro) 15%, transparent); color: var(--peligro); }
.presu-tabla { width: 100%; border-collapse: collapse; font-size: .94rem; margin-bottom: .5rem; }
.presu-tabla td { padding: .5rem 0; border-bottom: 1px dashed var(--borde); }
.presu-tabla tfoot td { font-weight: 700; font-size: 1.1rem; border-bottom: 0; border-top: 2px solid var(--txt); padding-top: .65rem; }
.presu-nota { background: var(--panel-2); border-radius: var(--radio); padding: .65rem .8rem; font-size: .9rem; white-space: pre-line; }
.presu-estado.pendiente { color: var(--aviso); font-weight: 600; font-size: .9rem; }
.presu-resultado { border-radius: var(--radio); padding: .85rem .95rem; margin: .8rem 0; font-size: .92rem; }
.presu-resultado.aprobado { background: color-mix(in srgb, var(--ok) 12%, var(--panel)); border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); }
.presu-resultado.rechazado { background: color-mix(in srgb, var(--peligro) 10%, var(--panel)); border: 1px solid color-mix(in srgb, var(--peligro) 35%, transparent); }
.seg-firma { margin-top: .6rem; }
.seg-firma img { max-width: 220px; width: 100%; background: #fff; border: 1px solid var(--borde); border-radius: 3px; cursor: zoom-in; display: block; }
.presu-anteriores { margin-top: .7rem; font-size: .86rem; color: var(--txt-2); }
.presu-anteriores summary { cursor: pointer; font-weight: 600; }
.presu-anteriores ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.presu-linea { display: grid; grid-template-columns: 1fr 110px auto; gap: .45rem; margin-bottom: .45rem; }
.presu-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; padding: .85rem 0; margin: .6rem 0 .8rem; border-top: 2px solid var(--txt); }
.presu-total strong { font: 700 1.6rem/1 var(--sans); font-stretch: 85%; }
.presu-botones { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.presu-botones .btn { min-height: 52px; font-size: 1.02rem; }

/* ─── Firma ─── */
.firma { position: relative; }
.firma canvas { display: block; width: 100%; height: 180px; background: #fff; border: 2px dashed #8b9298; border-radius: 6px; touch-action: none; cursor: crosshair; }
.firma-guia { position: absolute; inset: 0; display: grid; place-items: center; color: #8b9298; font-size: .95rem; pointer-events: none; }
.firma-guia[hidden], .st-tip[hidden] { display: none; }
.firma-borrar { position: absolute; top: 6px; right: 8px; border: 0; background: rgba(255, 255, 255, .92); color: #3a3f44; font: inherit; font-size: .82rem; font-weight: 600; padding: .25em .6em; border-radius: 4px; cursor: pointer; }

/* ─── Revisión (semáforo) ─── */
.check-resumen { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .8rem; }
.check-resumen .chip, .bloque .chip[style*="--c"] { color: var(--c); border-color: color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); }
.check-lista { list-style: none; margin: 0 0 .6rem; padding: 0; }
.check-lista li { display: flex; gap: .75rem; align-items: flex-start; padding: .6rem 0; border-bottom: 1px solid var(--borde-2); font-size: .94rem; }
.check-lista li:last-child { border-bottom: 0; }
.check-lista.compacta li { padding: .4rem 0; }
.check-ico { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; }
.check-ico svg { width: 14px; height: 14px; stroke-width: 3.2; }
.check-fila { display: grid; grid-template-columns: 1fr auto; gap: .45rem .8rem; align-items: center; padding: .65rem 0; border-bottom: 1px solid var(--borde-2); }
.check-fila input[data-nota] { grid-column: 1 / -1; min-height: 38px; font-size: .92rem; }
.check-nombre { font-weight: 600; font-size: .95rem; }
.semaforo { display: flex; gap: .35rem; }
.semaforo button { width: 42px; height: 42px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--c) 60%, transparent); background: transparent; color: var(--c); font-weight: 800; font-size: 1rem; cursor: pointer; display: grid; place-items: center; transition: background .15s, color .15s, transform .15s var(--ease); }
.semaforo button svg { width: 16px; height: 16px; stroke-width: 3.2; }
.semaforo button.on { background: var(--c); color: #fff; border-color: var(--c); transform: scale(1.06); }

/* ─── Citas ─── */
.enlace-citas { display: flex; align-items: center; justify-content: space-between; gap: .8rem 1.2rem; flex-wrap: wrap; }
.cita { border: 1px solid var(--borde); border-left: 3px solid var(--brand); border-radius: 3px; padding: .85rem .95rem; margin-bottom: .6rem; background: var(--panel-2); font-size: .92rem; display: flex; flex-direction: column; gap: .3rem; }
.cita-cab { display: flex; justify-content: space-between; gap: .5rem; align-items: center; flex-wrap: wrap; font-size: 1rem; }
.dia-cita { margin: 1.1rem 0 .5rem; font: 600 .72rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--txt-3); }
.dia-cita:first-child { margin-top: 0; }
.enlace-caja { background: var(--campo); border: 1px solid var(--borde); border-radius: 3px; padding: .55rem .75rem; font-size: .86rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.enlace-caja code { font-family: var(--mono); overflow-wrap: anywhere; }
.dias-cita { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: .45rem; }
.dia-btn { display: flex; flex-direction: column; align-items: center; padding: .5rem .2rem; border: 1px solid var(--borde); border-radius: 8px; background: var(--panel); color: var(--txt); font: inherit; font-size: .74rem; cursor: pointer; line-height: 1.25; text-transform: capitalize; transition: border-color .15s, background .15s; }
.dia-btn strong { font: 700 1.35rem/1.1 var(--sans); font-stretch: 85%; }
.dia-btn:hover { border-color: var(--txt-2); }
.dia-btn.on { background: var(--txt); border-color: var(--txt); color: var(--panel); }
.chip.franja { padding: .6em 1em; font: 600 .92rem/1 var(--sans); text-transform: none; letter-spacing: 0; color: var(--txt); }

/* ─── Estadísticas ─── */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0; margin-bottom: 1rem; border: 1px solid var(--borde-2); border-radius: var(--radio); background: var(--panel); }
.kpi { padding: .95rem 1.1rem; border-right: 1px solid var(--borde-2); }
.kpi:first-child .kpi-valor { color: var(--brand); font-size: 2.8rem; }
.kpi-tit { font: 500 .7rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--txt-3); }
.kpi-valor { font: 700 2rem/1.1 var(--sans); font-stretch: 85%; margin: .2rem 0; font-variant-numeric: tabular-nums; }
.kpi-det { font-size: .82rem; color: var(--txt-3); }
.st-tit { font: 600 .74rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--txt-2); margin-bottom: .9rem; }
.barras { display: grid; grid-template-columns: auto 1fr; gap: .5rem; height: 220px; }
.barras-eje { display: flex; flex-direction: column; justify-content: space-between; font: 500 .68rem/1 var(--mono); color: var(--txt-3); text-align: right; padding-bottom: 22px; }
.barras-zona { display: grid; grid-template-columns: repeat(var(--n), 1fr); align-items: end; gap: 3px; border-bottom: 1px solid var(--borde);
  background: linear-gradient(var(--borde-2) 1px, transparent 1px) 0 0 / 100% 25%; padding-bottom: 0; position: relative; margin-bottom: 22px; }
.barra-col { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; outline: none; cursor: default; }
.barra-col:hover .barra, .barra-col:focus-visible .barra { background: color-mix(in srgb, var(--brand) 80%, #fff); }
.barra-col:focus-visible { box-shadow: 0 0 0 2px var(--brand); border-radius: 2px; }
.barra { width: 100%; max-width: 26px; background: var(--brand); border-radius: 1px 1px 0 0; min-height: 0; transform-origin: bottom; animation: crece .7s var(--ease) both; }
.barra-lbl { position: absolute; top: 100%; margin-top: 6px; font: 500 .64rem/1 var(--mono); color: var(--txt-3); white-space: nowrap; }
.hbarras { display: flex; flex-direction: column; gap: .6rem; }
.hbarra-fila { display: grid; grid-template-columns: minmax(120px, 38%) 1fr auto; gap: .6rem; align-items: center; font-size: .88rem; outline: none; }
.hbarra-fila:focus-visible { box-shadow: 0 0 0 2px var(--brand); border-radius: 2px; }
.hbarra-lbl { display: flex; align-items: center; gap: .45rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--txt); }
.hbarra-pista { height: 14px; background: repeating-linear-gradient(90deg, var(--borde-2) 0 1px, transparent 1px 10%); }
.hbarra { display: block; height: 100%; background: var(--brand); border-radius: 0 1px 1px 0; transform-origin: left; animation: crece-x .8s var(--ease) both; }
.hbarra-val { color: var(--txt-2); font: 500 .8rem/1 var(--mono); font-variant-numeric: tabular-nums; min-width: 4.5em; text-align: right; }
.hbarra-fila:has(.max) .hbarra-val { color: var(--txt); font-weight: 600; }
.st-tip { position: fixed; z-index: 95; background: #0b0c0d; color: #fff; font: 500 .78rem/1.35 var(--mono); padding: .45rem .65rem; border-radius: 3px; border: 1px solid var(--borde); pointer-events: none; max-width: 260px; }
@keyframes crece { from { transform: scaleY(0); } }
@keyframes crece-x { from { transform: scaleX(0); } }

/* ─── Avisos ─── */
#toasts { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: .5rem; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 2rem); }
.toast { background: #0b0c0d; color: #fff; padding: .7rem 1rem; border: 1px solid var(--borde); border-left: 4px solid var(--brand); border-radius: 3px; font-size: .92rem; box-shadow: var(--sombra-flota); transition: opacity .3s, transform .3s; animation: sube .25s var(--ease); }
.toast.error { border-left-color: var(--peligro); } .toast.ok { border-left-color: var(--ok); }
.toast.fuera { opacity: 0; transform: translateY(8px); }

/* ─── Movimiento: entrada escalonada solo al abrir el tablero ─── */
@keyframes entra { from { opacity: 0; transform: translateY(12px); } }
.tablero.entra .columna { animation: entra .5s var(--ease) both; }
.tablero.entra .columna:nth-child(2) { animation-delay: .05s; } .tablero.entra .columna:nth-child(3) { animation-delay: .1s; }
.tablero.entra .columna:nth-child(4) { animation-delay: .15s; } .tablero.entra .columna:nth-child(5) { animation-delay: .2s; }
.tablero.entra .columna:nth-child(6) { animation-delay: .25s; } .tablero.entra .columna:nth-child(7) { animation-delay: .3s; }
.tablero.entra .columna:nth-child(n+8) { animation-delay: .35s; }
.tablero.entra .tarjeta { animation: entra .5s var(--ease) both .35s; }
.resumen.entra .rs-n { animation: entra .6s var(--ease) both; }

/* ════════════ Páginas del cliente (seguimiento y citas): claras y tranquilas ════════════ */
body.seg {
  --bg: #eef0ed; --panel: #fff; --panel-2: #f5f6f3; --panel-3: #eceeea; --borde: #dcdfda; --borde-2: #e7e9e5;
  --txt: #17191b; --txt-2: #4d5358; --txt-3: #747a7f; --campo: #fff;
  --ok: #23874b; --peligro: #c63a20; --aviso: #a8710a;
  color-scheme: light;
  background: linear-gradient(180deg, #17191b 0, #17191b 178px, var(--bg) 178px); min-height: 100dvh;
}
body.seg .btn:hover { border-color: #b9bdb7; }
body.seg .btn.primario:hover { border-color: color-mix(in srgb, var(--brand) 86%, #fff); }
body.seg .btn.ok-lleno { color: #fff; }
body.seg .btn.ok-lleno:hover { background: #1d7340; border-color: #1d7340; }
body.seg .modal { border-color: var(--borde); }
body.seg .matricula { box-shadow: inset 0 0 0 1px #d6d6d0, 0 1px 0 rgba(0, 0, 0, .06); }
body.seg label:not(.check):not(.chip) { color: var(--txt-2); }
.seg-wrap { max-width: 540px; margin: 0 auto; padding: 1.2rem 16px 2.5rem; }
.seg-cab { color: #fff; padding: .3rem .1rem 1.2rem; }
.seg-taller { font-size: 1.45rem; font-weight: 700; font-stretch: 110%; letter-spacing: -.01em; }
.seg-sub { font: 500 .72rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #b7bbbe; display: flex; align-items: center; gap: .5rem; margin-top: .2rem; }
.en-vivo { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); animation: pulso 2s infinite; }
@keyframes pulso { 70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.seg-card { background: var(--panel); border: 1px solid var(--borde-2); border-radius: 12px; padding: 1.25rem; margin-bottom: .9rem; }
.seg-card h2 { font-size: 1.3rem; }
.seg-card h3 { font: 600 .72rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--txt-3); margin-bottom: .85rem; }
.seg-hero { position: relative; overflow: hidden; padding-top: 1.45rem; }
.seg-hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--brand); }
.seg-hola { margin: 0 0 .9rem; font-size: 1.05rem; color: var(--txt-2); }
.seg-coche { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.seg-coche strong { font-size: 1.12rem; }
.seg-estado { display: flex; flex-direction: column; gap: .15rem; padding: .1rem 0 .1rem .95rem; border-left: 4px solid var(--c); }
.seg-lbl { font: 600 .7rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--txt-3); }
.seg-nombre { font-size: 2rem; font-weight: 700; font-stretch: 92%; line-height: 1.05; letter-spacing: -.01em; color: var(--txt); }
.seg-pasos { list-style: none; margin: 1.3rem 0 0; padding: 0; }
.seg-pasos li { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: .75rem; padding: .42rem 0; color: var(--txt-3); }
.seg-pasos li::before { content: ""; position: absolute; left: 14px; top: calc(50% + 15px); height: calc(100% - 22px); width: 2px; background: var(--borde); }
.seg-pasos li:last-child::before { display: none; }
.seg-pasos li.hecho::before { background: var(--ok); }
.sp-ic { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 600 .7rem/1 var(--mono); background: var(--panel); box-shadow: inset 0 0 0 2px var(--borde); }
.sp-ic svg { width: 14px; height: 14px; stroke-width: 3.2; }
.sp-n { font-size: .98rem; }
.sp-f { font: 500 .7rem/1 var(--mono); color: var(--txt-3); text-transform: uppercase; letter-spacing: .04em; }
.seg-pasos li.hecho { color: var(--txt-2); }
.seg-pasos li.hecho .sp-ic { background: var(--ok); color: #fff; box-shadow: none; }
.seg-pasos li.ahora { color: var(--txt); }
.seg-pasos li.ahora .sp-n { font-weight: 700; font-size: 1.05rem; }
.seg-pasos li.ahora .sp-ic { background: var(--brand); color: var(--on-brand); box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 55%, transparent); animation: latido 2.4s infinite; }
.seg-pasos li.ahora .sp-f { color: var(--txt); font-weight: 600; }
@keyframes latido { 60% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.seg-paso { margin: .7rem 0 0; font: 500 .72rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--txt-3); }
.seg-progreso { display: none; }
.seg-listo { display: flex; gap: .8rem; align-items: flex-start; margin-top: 1.1rem; background: color-mix(in srgb, var(--ok) 9%, var(--panel)); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); border-radius: 10px; padding: .95rem 1rem; }
.seg-listo > svg { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--ok); color: #fff; stroke-width: 3.2; flex: none; }
.seg-listo > div { flex: 1; min-width: 0; }
.seg-aviso { display: flex; align-items: center; gap: .8rem; margin-top: 1.1rem; padding: .85rem 1rem; border-radius: 10px; background: color-mix(in srgb, #f2b705 16%, var(--panel)); color: var(--txt); text-decoration: none; border: 1px solid color-mix(in srgb, #f2b705 55%, transparent); transition: background .15s; }
.seg-aviso:hover { background: color-mix(in srgb, #f2b705 24%, var(--panel)); }
.seg-aviso > svg { width: 24px; height: 24px; }
.seg-aviso > span { flex: 1; font-size: .92rem; color: var(--txt-2); }
.seg-aviso > span strong { color: var(--txt); }
.seg-aviso > svg:last-child { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.seg-aviso:hover > svg:last-child { transform: translateX(3px); }
.seg-ok-ic { width: 64px; height: 64px; margin: .4rem auto 1rem; display: grid; place-items: center; border-radius: 50%; background: var(--ok); color: #fff; animation: sube .4s var(--ease); }
.seg-ok-ic svg { width: 30px; height: 30px; stroke-width: 3; }
.seg-pie { text-align: center; color: var(--txt-3); font: 500 .7rem/1.6 var(--mono); text-transform: uppercase; letter-spacing: .06em; margin-top: 1.5rem; }
.seg-wrap.entra > * { animation: entra .55s var(--ease) both; }
.seg-wrap.entra > :nth-child(2) { animation-delay: .07s; } .seg-wrap.entra > :nth-child(3) { animation-delay: .14s; } .seg-wrap.entra > :nth-child(n+4) { animation-delay: .2s; }
.seg-wrap.entra .seg-pasos li { animation: entra .45s var(--ease) both; animation-delay: calc(.25s + var(--k, 0) * 60ms); }
.seg-wrap.entra .seg-pasos li:nth-child(2) { --k: 1; } .seg-wrap.entra .seg-pasos li:nth-child(3) { --k: 2; } .seg-wrap.entra .seg-pasos li:nth-child(4) { --k: 3; }
.seg-wrap.entra .seg-pasos li:nth-child(5) { --k: 4; } .seg-wrap.entra .seg-pasos li:nth-child(6) { --k: 5; } .seg-wrap.entra .seg-pasos li:nth-child(n+7) { --k: 6; }
body.seg .linea-tiempo li::after { border-radius: 50%; }
body.seg .bloque:not(.btn) { background: var(--panel-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 760px) {
  .resumen { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rs-main { grid-column: 1 / -1; border-bottom: 1px solid var(--borde-2); }
  .resumen > div + div { border-left: 0; }
  .resumen > div:nth-child(n+3) { border-left: 1px solid var(--borde-2); }
  .rs-n { font-size: 3.6rem; }
  .rs-dato b { font-size: 1.7rem; }
  .resumen > div { padding: .75rem .8rem; }
}
