/* La ficha de OT en una hoja (15-nov-2026). Clases con prefijo fh-. Solo variables de la app (claro y oscuro); el calipso viene de tema-a
   (--t-tea) y, si ese tema no está, de su valor de siempre. */
.fh, .fh-hoja { --fh-tea: var(--t-tea, #00a8a9); --fh-tea-tx: var(--t-tea-tx, #007f80); --fh-tea-s: var(--t-tea-s, rgba(0, 168, 169, 0.11)); }
.fh [hidden], .fh-hoja [hidden] { display: none !important; }

/* El panel deja de ser una sola tarjeta: ahora es una pila de bloques. */
.s3-pasos.fh { background: none; border: 0; box-shadow: none; padding: 0; border-radius: 0; display: grid; gap: 12px; margin-bottom: 12px; }

/* ---------- 1. Cabecera ---------- */
.fh-cab { min-width: 0; display: grid; gap: 6px; }
.fh-f1 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.fh-id { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; min-width: 0; flex: 1 1 auto; }
.fh-id .s3-lbl { align-self: baseline; }
.fh-ot { font-size: 30px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.fh-id .tamano { align-self: center; }
.fh-cli { font-size: 18px; font-weight: 650; letter-spacing: -0.01em; overflow-wrap: anywhere; min-width: 0; }
.fh-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.fh-mas { flex: 0 0 auto; }
.fh-mas-w { position: relative; }
.fh-reps { display: grid; gap: 6px; }
.fh-reps:empty { display: none; }
.fh-f2 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.fh-trab { color: var(--texto-2); font-size: 14.5px; line-height: 1.35; overflow-wrap: anywhere; min-width: 0; flex: 1 1 320px; }
.fh-quien { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fh .s3-pasos-vend { margin: 0; padding: 5px 13px; border-radius: 999px; align-items: baseline; }
.fh .s3-pasos-vend b { font-size: 15px; }
.fh .s3-pasos-vend .s3-lbl { font-size: 10.5px; }
.fh-dis { display: inline-flex; align-items: baseline; gap: 7px; padding: 5px 13px; border-radius: 999px; border: 1px solid var(--linea-fuerte); background: var(--superficie); }
.fh-dis b { font-size: 15px; font-weight: 700; }
.fh-dis .s3-lbl { font-size: 10.5px; }

/* ---------- 2. Línea de avance ---------- */
.fh-linea { background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--radio); box-shadow: var(--sombra); padding: 14px 16px 12px; min-width: 0; }
.fh-linea-cab { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-size: 14.5px; margin-bottom: 14px; }
.fh-linea-t { font-weight: 500; }
.fh-linea-t b { font-weight: 700; }
.fh-linea-f { font-weight: 650; color: var(--texto-2); text-align: right; margin-left: auto; }
.fh-linea-f.mal { color: var(--rojo-texto); }
.fh-linea-f.ok { color: var(--verde-texto); }
.fh-linea-f.ambar { color: var(--amarillo-texto); }
.fh-nodos { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-start; }
.fh-paso { flex: 1 1 0; min-width: 0; position: relative; --fh-c: var(--fh-tea); }
.fh-paso.mal { --fh-c: var(--rojo); }
.fh-paso:not(:first-child)::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: repeating-linear-gradient(90deg, var(--linea-fuerte) 0 6px, transparent 6px 11px); }
.fh-paso.hecho:not(:first-child)::before { background: var(--verde); }
.fh-paso.actual:not(:first-child)::before { background: linear-gradient(90deg, var(--verde), var(--fh-c)); }
.fh-nodo { all: unset; box-sizing: border-box; width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 0 3px 6px; cursor: pointer; position: relative; z-index: 1; border-radius: 10px; -webkit-tap-highlight-color: transparent; }
.fh-nodo:hover .fh-tit { text-decoration: underline; text-underline-offset: 3px; }
.fh-nodo:focus-visible { outline: 2px solid var(--texto); outline-offset: 2px; }
.fh-nodo[aria-expanded="true"] { background: var(--campo); }
.fh-circ { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--superficie); border: 2px dashed var(--linea-fuerte); color: var(--texto-3); box-sizing: border-box; margin-bottom: 4px; }
.fh-paso.hecho .fh-circ { border: 2px solid var(--verde); color: var(--verde); background: var(--verde-fondo); }
.fh-paso.actual .fh-circ { border: 0; background: var(--fh-c); color: #fff; box-shadow: 0 0 0 5px color-mix(in srgb, var(--fh-c) 22%, transparent); }
.fh-tit { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.fh-paso.futuro .fh-tit { color: var(--texto-2); }
.fh-t-c { display: none; }
.fh-l1, .fh-l2 { font-size: 13px; color: var(--texto-2); line-height: 1.3; overflow-wrap: anywhere; }
.fh-l2 { color: var(--texto-3); font-size: 12.5px; }
.fh-l2.mal, .fh-paso.actual.mal .fh-l1 { color: var(--rojo-texto); }
.fh-barra { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: var(--campo); font-size: 13.5px; }
.fh-franja { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.fh-franja .s3-lbl { font-size: 11px; }
.fh-fr b { font-weight: 700; }
.fh-fr i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; border: 2px solid var(--texto-3); box-sizing: border-box; vertical-align: -1px; }
.fh-fr.ok i { border: 0; width: auto; height: auto; color: var(--verde); font-style: normal; font-weight: 700; }
.fh-fr.act i { border: 0; background: var(--fh-tea); }
.fh-fr.mal { color: var(--rojo-texto); }
.fh-fr.mal i { border-color: var(--rojo); }
.fh-sep { color: var(--texto-3); }
.fh-replink { margin-left: auto; color: var(--rojo-texto); font-weight: 700; text-decoration: none; }
.fh-replink:hover { text-decoration: underline; }
.fh-amp-b { margin-top: 8px; text-align: right; }
.fh-detalle { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--linea); }
.fh-det-t { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.fh-det-t b { font-size: 14.5px; }
.fh-detalle .s3-falta { margin-top: 0; }

/* Calendario plan contra real */
.fh-amp { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--linea); }
.fh-cal-cab { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-size: 14.5px; margin-bottom: 10px; }
.fh-cal-scroll { overflow-x: auto; padding-bottom: 4px; }
.fh-cal { min-width: 700px; position: relative; padding: 24px 76px 0 52px; }
.fh-cal-pista { position: relative; }
.fh-fila-cal { position: relative; height: 34px; border-bottom: 1px solid var(--linea); }
.fh-fl { position: absolute; left: -52px; top: 9px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--texto-3); font-weight: 600; }
.fh-bar { position: absolute; top: 4px; height: 26px; border-radius: 7px; padding: 0 8px; font-size: 12.5px; font-weight: 600; line-height: 26px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-sizing: border-box; border: 1px solid transparent; }
.fh-bar.plan { border: 1px dashed var(--linea-fuerte); color: var(--texto-2); font-weight: 500; }
.fh-bar.ok { background: var(--verde-fondo); color: var(--verde-texto); border-color: var(--verde); }
.fh-bar.en { background: var(--fh-tea-s); color: var(--fh-tea-tx); border-color: var(--fh-tea); }
.fh-bar.tarde { background: var(--rojo-fondo); color: var(--rojo-texto); border-color: var(--rojo); }
.fh-fpto { height: 44px; }
.fh-pto { position: absolute; top: 6px; }
.fh-pto i { display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--fh-tea); margin-left: -4px; }
.fh-p-rep i { background: var(--rojo); }
.fh-pto span { display: block; font-size: 12px; color: var(--texto-2); white-space: nowrap; margin-top: 3px; margin-left: -4px; }
.fh-p-rep span { color: var(--rojo-texto); font-weight: 600; }
.fh-eje { position: relative; height: 22px; }
.fh-eje span { position: absolute; top: 5px; font-size: 12px; color: var(--texto-3); transform: translateX(-30%); white-space: nowrap; }
.fh-m { position: absolute; top: -20px; bottom: 22px; width: 0; border-left: 2px solid var(--texto); z-index: 2; pointer-events: none; }
.fh-m span { position: absolute; top: 0; left: 4px; font-size: 12px; font-weight: 700; white-space: nowrap; transform: translateY(-2px); }
.fh-m.prom { border-left: 2px dashed var(--rojo); }
.fh-m.prom span { color: var(--rojo-texto); right: 4px; left: auto; }
.fh-m.prom.der span { right: auto; left: 4px; }

/* ---------- 3. Ahora ---------- */
.fh-ahora { --fh-ac: var(--fh-tea); background: var(--superficie); border: 1px solid var(--linea); border-left: 4px solid var(--fh-ac); border-radius: var(--radio); box-shadow: var(--sombra); padding: 14px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 20px; align-items: start; }
.fh-n-rojo { --fh-ac: var(--rojo); }
.fh-n-amarillo { --fh-ac: var(--amarillo); }
.fh-n-verde { --fh-ac: var(--verde); }
.fh-ahora-izq { min-width: 0; display: grid; gap: 8px; }
.fh-ahora-t { margin: 2px 0 0; font-size: 20px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
.fh-ahora-f { margin: 4px 0 0; color: var(--texto-2); font-size: 14.5px; line-height: 1.4; }
.fh-dicho { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: var(--campo); font-size: 14px; }
.fh-dicho-w:empty { display: none; }
.fh-dicho-l { flex: 0 0 100%; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--texto-3); font-weight: 600; }
.fh-dicho q { quotes: "«" "»"; }
.fh-dicho small { color: var(--texto-3); font-size: 12.5px; }
.fh-ahora-ban:empty, .fh-ahora-avisos:empty, .fh-ahora-vm:empty { display: none; }
.fh-ahora-ban .s3-oc-banner, .fh-ahora-ban .s3-det { margin: 0 0 8px; }
.fh-ahora-ban > :last-child { margin-bottom: 0; }
.fh-ahora-avisos .s3-extra { margin: 0; }
.fh-ahora-avisos .tarjeta { margin: 0; }
.fh-ahora-vm .s3-pasos-acc { margin: 0; }
.fh-ahora-acc { width: 270px; max-width: 100%; display: grid; gap: 8px; }
.fh-ahora-acc .ft-accion { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; }
.fh-ahora-acc .ft-accion .btn { width: 100%; }
.fh-ahora-acc .ft-accion .trabajo { padding: 10px 12px; }
.fh-ahora-acc .ft-accion .trabajo .btn.principal, .fh-ahora-acc .ft-accion > .btn.principal { min-height: 48px; font-size: 16px; }
.fh-ahora-acc .ft-accion .marcar { display: grid; gap: 8px; }

/* ---------- 4. Dos columnas ---------- */
.fh-hoja.ficha-compacta { display: block; }
.fh-top-det { padding: 0 0 12px; margin: 0 0 12px; border-bottom: 1px solid var(--linea); }
.fh-top-det .ft-fila, .fh-top-det .ft-cliente, .fh-top-det .ft-trabajo { display: none; }
.fh-top-det .ft-cuerpo { margin-top: 0; }
.fh-reg .fsec-cuerpo .tarjeta.fh-top-det { padding-top: 0; border-top: 0; }
.fh-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: stretch; }
@media (min-width: 900px) { .fh-cols { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); } }
.fh-col { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.fh-col:empty { display: none; }
.fh-fila-ancha { grid-column: 1 / -1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.fh-fila-ancha:empty { display: none; }
/* Cada tarjeta va en un bloque; el reparto entre columnas lo decide ficha_hoja.js. Un bloque sin alto no suma separación; el último bloque de la columna
   corta absorbe la diferencia (se estira) para que las dos columnas terminen parejas. */
.fh-bloque { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.fh-bloque.fh-vacio { margin-top: -12px; }
.fh-bloque.fh-elastica { flex: 1 1 auto; }
.fh-bloque.fh-elastica > :last-child { flex: 1 1 auto; }
.fh-col .fsec, .fh-col .tarjeta { margin-bottom: 0; }
.fh-ent { padding: 14px 16px; }
.fh-ent-cab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin-bottom: 6px; }
.fh-ent-dl { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 5px 12px; margin: 0 0 8px; font-size: 14px; }
.fh-ent-dl dt { color: var(--texto-3); }
.fh-ent-dl dd { margin: 0; overflow-wrap: anywhere; }
.fh-ent-dl a { color: var(--fh-tea-tx); font-weight: 600; }
.fh-ent-falta { color: var(--rojo-texto); background: var(--rojo-fondo); border-radius: 6px; padding: 1px 8px; font-size: 13px; }
.fh-dichos-r:empty { display: none; }
.fh-dichos { padding: 12px 16px 10px; }
.fh-dichos-f { padding: 6px 0 2px; border-top: 1px solid var(--linea); margin-top: 6px; }
.fh-dichos-f:first-of-type { margin-top: 10px; }
.fh-dichos-f p { margin: 1px 0 0; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fh-dichos-f small { color: var(--texto-3); font-size: 12.5px; margin-left: 4px; }
.fh-dichos .enlace-boton { margin-top: 6px; }

/* ---------- 5. Registro ---------- */
.fh-reg { margin-top: 14px; padding: 12px; display: grid; gap: 10px; }
.fh-reg-filas { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 24px; align-items: start; }
@media (min-width: 900px) { .fh-reg-filas { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.fh-fila, .fh-reg .fh-fsec-fila { border-top: 1px solid var(--linea); border-radius: 0; background: none; box-shadow: none; margin: 0; overflow: visible; }
.fh-fila-cab, .fh-reg .fh-fsec-fila > .fsec-cab { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 10px 4px; cursor: pointer; list-style: none; }
.fh-fila-cab::-webkit-details-marker { display: none; }
.fh-fila-t, .fh-reg .fh-fsec-fila .fsec-titulo { font-weight: 700; font-size: 15px; flex: 0 0 auto; min-width: 120px; }
.fh-reg .fh-fsec-fila .fsec-txt { flex-direction: row; align-items: center; gap: 14px; }
.fh-fila-r { flex: 1; min-width: 0; color: var(--texto-2); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fh-fila[open] > .fh-fila-cab .fsec-flecha { transform: rotate(-135deg); margin-top: 4px; }
.fh-fila-cuerpo, .fh-reg .fh-fsec-fila > .fsec-cuerpo { padding: 4px 4px 14px; border-top: 0; }
.fh-fila-cuerpo .tarjeta, .fh-fila-cuerpo section { background: none; border: 0; box-shadow: none; padding: 0; margin: 0; }
.fh-fila-cuerpo .tarjeta-titulo, .fh-fila-cuerpo .s3-bloque-cab { display: none; }
.fh-reg .fh-fsec-fila[data-sec="historial"] .fsec-cuerpo > .tarjeta > .tarjeta-titulo { display: none; }
.fh-reg > .fh-reg-rep-ranura:empty { display: none; }

/* Reprocesos: caja roja con una fila por reproceso */
.fh-rep { border: 1.5px solid var(--rojo); background: var(--rojo-fondo); color: var(--rojo-texto); border-radius: 12px; padding: 12px 14px; }
.fh-rep.cerrados { border-color: var(--linea-fuerte); background: var(--campo); color: var(--texto); }
.fh-rep-cab { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.fh-rep-t { font-size: 16px; }
.fh-rep-s { flex: 1; font-size: 13.5px; opacity: .85; }
.fh-rep.plegable:not(.ver) .fh-rep-lista, .fh-rep.plegable:not(.ver) .fh-rep-det { display: none; }
.fh-rep.plegable .fh-rep-cab { cursor: pointer; }
.fh-rep-lista { list-style: none; margin: 8px 0 0; padding: 0; }
.fh-rep-f { display: grid; grid-template-columns: 40px minmax(0, 1fr) 270px 64px; gap: 4px 12px; align-items: center; padding: 8px 0; border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); font-size: 14px; }
.fh-rep-f b { font-weight: 750; }
.fh-rep-f small { display: block; font-size: 12.5px; opacity: .8; }
.fh-rep-q { overflow-wrap: anywhere; color: var(--texto); }
.fh-rep-w { color: var(--texto); }
.fh-rep-e { font-size: 12.5px; font-weight: 700; text-align: right; }
.fh-rep-f.cerrada .fh-rep-e { opacity: .7; }
.fh-rep-det { margin-top: 8px; border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); padding-top: 8px; }
.fh-rep-det > summary { cursor: pointer; font-weight: 700; font-size: 14px; list-style: none; }
.fh-rep-det > summary::-webkit-details-marker { display: none; }
.fh-rep-det > summary::after { content: " ↓"; }
.fh-rep-det[open] > summary::after { content: " ↑"; }
.fh-rep-caja { color: var(--texto); margin-top: 10px; }
.fh-rep-caja .tr-card, .fh-rep-caja .esp-sec { background: none; border: 0; box-shadow: none; padding: 0; margin: 0; }
.fh-rep-caja .esp-sec > .tarjeta-titulo, .fh-rep-caja .esp-intro { display: none; }
.fh-antes { margin: 14px 0 4px; text-align: center; font-size: 13px; }
.fh-antes .enlace-boton { color: var(--texto-3); }

/* ---------- Teléfono ---------- */
@media (max-width: 600px) {
  .fh-ot { font-size: 26px; }
  .fh-cli { font-size: 16.5px; flex: 1 1 100%; }
  .fh-chips { justify-content: flex-start; }
  .fh-linea { padding: 12px 10px 10px; }
  .fh-linea-cab { flex-direction: column; gap: 6px; }
  .fh-linea-f { text-align: left; margin-left: 0; }
  .fh-t-l { display: none; }
  .fh-t-c { display: inline; }
  .fh-tit { font-size: 13px; }
  .fh-nodo { padding: 0 1px 6px; }
  .fh-circ { width: 28px; height: 28px; font-size: 13px; }
  .fh-paso:not(:first-child)::before { top: 13px; }
  .fh-l2 { display: none; }
  .fh-l2.solo { display: block; }
  .fh-l1, .fh-l2 { font-size: 11.5px; }
  .fh-ahora { grid-template-columns: minmax(0, 1fr); padding: 12px 14px; }
  .fh-ahora-acc { width: 100%; }
  .fh-franja { font-size: 12.5px; }
  .fh-rep-f { grid-template-columns: 36px minmax(0, 1fr) 62px; }
  .fh-rep-w { display: none; }
  .fh-fila-cab, .fh-reg .fh-fsec-fila > .fsec-cab { gap: 8px; }
  .fh-fila-t, .fh-reg .fh-fsec-fila .fsec-titulo { min-width: 0; }
  .fh-reg .fh-fsec-fila .fsec-txt { flex-direction: column; align-items: stretch; gap: 0; }
  /* El resumen largo («Terminaciones desde … · Atrasada …») se corta con puntos suspensivos en una línea: sin esto empuja el ancho de la página (scroll lateral en el teléfono). */
  .fh-reg .fh-fsec-fila .fsec-resumen { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .fh-reg .fh-fsec-fila > .fsec-cab, .fh-reg .fh-fsec-fila .fsec-titulo { min-width: 0; }
  .fh-fila-r { display: none; }
  .fh-reg { padding: 8px; }
}

/* «Avisos para hacer en esta OT» dentro de «Ahora»: sin rótulo ni tarjeta dentro de tarjeta; una línea por aviso */
.fh-ahora-avisos .au-ficha { background: none; border: 0; box-shadow: none; padding: 0; margin: 0; }
.fh-ahora-avisos .tarjeta-titulo { display: none; }
.fh-ahora-avisos .au-ficha-fila { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 4px 0; border: 0; margin: 0; }
.fh-ahora-avisos .au-ficha-fila[data-fh-c] > div:not(.fh-av-linea):not(.au-ficha-gestion) { display: none; }
.fh-av-linea { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; color: var(--texto-2); }
.fh-ahora-avisos .au-ficha-gestion { flex: 1 1 280px; display: flex; gap: 8px; margin: 0; }
.fh-ahora-avisos .au-ficha-gestion input { flex: 1; min-width: 0; }

/* ===== R1b (16-nov-2026): los encabezados de las tarjetas plegables no se confunden con texto =====
   Título con más peso, resumen en gris, flecha calipso bien visible y la tarjeta abierta con su borde de acento. Mismos textos; solo jerarquía. */
.fh-col .fsec > .fsec-cab, .fh-reg .fh-fsec-fila > .fsec-cab { background: color-mix(in srgb, var(--campo) 60%, transparent); }
.fh-col .fsec > .fsec-cab:hover, .fh-reg .fh-fsec-fila > .fsec-cab:hover { background: var(--campo); }
.fh-col .fsec .fsec-titulo, .fh-reg .fh-fsec-fila .fsec-titulo { font-size: 16px; font-weight: 750; letter-spacing: -0.01em; color: var(--texto); }
.fh-col .fsec .fsec-resumen, .fh-reg .fh-fsec-fila .fsec-resumen { font-size: 13px; font-weight: 500; color: var(--texto-2); }
.fh-col .fsec .fsec-flecha, .fh-reg .fh-fsec-fila .fsec-flecha { width: 10px; height: 10px; border-right-width: 2.5px; border-bottom-width: 2.5px; border-color: var(--fh-tea-tx, var(--texto-2)); }
.fh-col .fsec[open] { border-color: color-mix(in srgb, var(--fh-tea) 55%, var(--linea)); }
.fh-col .fsec[open] > .fsec-cab { box-shadow: inset 3px 0 0 var(--fh-tea); }
.fh-col .fsec[open] > .fsec-cab .fsec-titulo { color: var(--fh-tea-tx, var(--texto)); }

/* R1c: la ficha se ve de inmediato al abrirse (antes las columnas quedaban invisibles hasta 2,5 s). El reparto se fija cuando carga lo tardío
   (ficha_hoja.js): se acepta UN acomodo si nadie ha tocado ni desplazado la página; si ya interactuó, se fija como está. */

/* El scroll lo conserva ficha_hoja.js (misma distancia de la tarjeta tocada al borde de la ventana); el ajuste automático del navegador se aparta
   para que no corrija otra vez, por su cuenta, y mueva la tarjeta. */
.fh, .fh-hoja { overflow-anchor: none; }

/* tema-a.css hace entrar cada hijo de <main> con un fundido y una subida de 5 px (body.tema-a main > *). La ficha se repinta entera cada minuto y tras
   cada acción: con eso todo el contenido «saltaba» y parpadeaba a cada repintado (R1b: era lo que se veía como saltos). En la ficha no hay entrada animada. */
body.tema-a main:has(> #ficha) > * { animation: none; }
