/* ============================================================================
   FÃ¡brica Â· calendario mensual (28-oct-2026). Mismo lenguaje visual que Ventas:
   iOS, listas agrupadas, hojas, tokens --f-*. El negocio solo cambia --f-acento.
   Copia de tienda/css/fabrica-ui.css del BaÃºl; desde el 14-nov-2026 (tuNFC)
   suma al final la pieza completa, la bandeja por estado, el punto Â«por
   aprobarÂ» y el aviso de fÃ¡brica apagada. La piel de cada marca va aparte
   (tuNFC: assets/fabrica/fabrica-tunfc.css).
   ========================================================================== */
.f-app {
    --f-acento: #B5485D;
    --f-acento-tinta: color-mix(in srgb, var(--f-acento) 14%, transparent);
    --f-fondo: #F2F2F7; --f-tarjeta: #FFFFFF; --f-tarjeta-2: #F9F9FB;
    --f-relleno: rgba(118, 118, 128, 0.12); --f-separador: rgba(60, 60, 67, 0.16);
    --f-texto: #000; --f-texto-2: rgba(60, 60, 67, 0.6); --f-texto-3: rgba(60, 60, 67, 0.3);
    --f-azul: #007AFF; --f-verde: #34C759; --f-rojo: #FF3B30; --f-gris: #8E8E93; --f-naranja: #FF9500;
    --f-sombra: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
    --f-fuente: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, system-ui, sans-serif;
    --f-radio: 14px;
    font-family: var(--f-fuente); color: var(--f-texto); font-size: 15px; line-height: 1.35;
    -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
    position: relative; min-width: 0;
}
@media (prefers-color-scheme: dark) {
    .f-app {
        --f-fondo: #000; --f-tarjeta: #1C1C1E; --f-tarjeta-2: #2C2C2E; --f-relleno: rgba(118,118,128,.24);
        --f-separador: rgba(84,84,88,.6); --f-texto: #FFF; --f-texto-2: rgba(235,235,245,.6); --f-texto-3: rgba(235,235,245,.3);
        --f-azul: #0A84FF; --f-verde: #30D158; --f-rojo: #FF453A; --f-naranja: #FF9F0A;
        --f-sombra: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.5);
    }
}
.f-app *, .f-app *::before, .f-app *::after { box-sizing: border-box; }
/* :where() deja estos reseteos sin peso (14-nov-2026): antes «.f-app button» le ganaba a .f-mas, .f-btn,
   .f-hoy o .f-icono y les quitaba el fondo, el color y el relleno (el «+» salía blanco y los botones sin aire). */
:where(.f-app) button, :where(.f-app) input, :where(.f-app) select { font: inherit; color: inherit; }
:where(.f-app) button { background: none; border: 0; padding: 0; cursor: pointer; }
.f-app button:disabled { opacity: .5; cursor: default; }
.f-app a { color: var(--f-azul); text-decoration: none; }
.f-app h1, .f-app h2, .f-app h3, .f-app p, .f-app ul { margin: 0; }
.f-app ul { padding: 0; list-style: none; }
.f-app [hidden] { display: none !important; }
.f-mal { color: var(--f-rojo); }

/* ---------- cabecera ---------- */
.f-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 0 14px; }
.f-cab h1 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.f-sub { color: var(--f-texto-2); font-size: 13px; margin-top: 3px; }
.f-sub b { color: var(--f-texto); font-weight: 600; }
.f-cab-der { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.f-icono { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--f-acento); background: var(--f-tarjeta); box-shadow: var(--f-sombra); }
.f-icono:active { transform: scale(.94); }

/* interruptor iOS */
.f-switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.f-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.f-pista { width: 51px; height: 31px; border-radius: 16px; background: var(--f-relleno); position: relative; transition: background .2s; flex-shrink: 0; }
.f-bola { position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.15), 0 1px 1px rgba(0,0,0,.16); transition: transform .22s cubic-bezier(.32,.72,0,1); }
.f-switch input:checked + .f-pista { background: var(--f-verde); }
.f-switch input:checked + .f-pista .f-bola { transform: translateX(20px); }
.f-switch input:disabled + .f-pista { opacity: .5; }
.f-switch-txt { font-size: 13px; font-weight: 600; color: var(--f-texto-2); min-width: 64px; }
.f-app--apagada .f-cal, .f-app--apagada .f-dia { opacity: .78; }

/* ---------- cuerpo: calendario + dÃ­a ---------- */
.f-cuerpo { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.f-cal, .f-dia { background: var(--f-tarjeta); border-radius: var(--f-radio); box-shadow: var(--f-sombra); min-width: 0; }
.f-cal { padding: 10px 10px 8px; }
.f-cal-nav { display: flex; align-items: center; gap: 6px; padding: 2px 2px 8px; }
.f-cal-nav h2 { flex: 1; text-align: center; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.f-cal-nav .f-icono { box-shadow: none; background: transparent; width: 34px; height: 34px; }
.f-hoy { font-size: 13px; font-weight: 600; color: var(--f-acento); padding: 6px 10px; border-radius: 10px; background: var(--f-acento-tinta); }
.f-cal-sem, .f-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.f-cal-sem span { text-align: center; font-size: 11px; font-weight: 700; color: var(--f-texto-3); letter-spacing: .04em; padding: 2px 0 6px; }
.f-cal-grid { gap: 2px; }
.f-celda { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; padding: 6px 0 5px; border-radius: 12px; min-height: 52px; color: var(--f-texto); transition: background .15s; }
.f-celda:hover { background: var(--f-tarjeta-2); }
.f-celda--otro { color: var(--f-texto-3); }
.f-celda--otro .f-punto { opacity: .45; }
.f-celda-n { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.f-celda--hoy .f-celda-n { color: var(--f-acento); font-weight: 700; }
.f-celda--sel .f-celda-n { background: var(--f-acento); color: #fff; font-weight: 700; }
.f-celda--sel.f-celda--hoy .f-celda-n { background: var(--f-acento); color: #fff; }
.f-puntos { display: flex; gap: 3px; height: 7px; align-items: center; justify-content: center; }
.f-punto { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--f-gris); flex-shrink: 0; }
.f-punto--publicado { background: var(--f-verde); }
.f-punto--cola { background: var(--f-azul); }
.f-punto--error { background: var(--f-rojo); }
.f-punto--pendiente { background: transparent; box-shadow: inset 0 0 0 1.5px var(--f-texto-3); }
.f-leyenda { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 11.5px; color: var(--f-texto-2); padding: 10px 6px 2px; }
.f-leyenda .f-punto { margin-right: 5px; width: 8px; height: 8px; }

/* el dÃ­a */
.f-dia-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 14px 8px; }
.f-dia-cab h2 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.f-dia-cab p { color: var(--f-texto-2); font-size: 13px; margin-top: 2px; }
.f-hoy-tag { font-size: 11px; font-weight: 700; color: var(--f-acento); background: var(--f-acento-tinta); padding: 2px 7px; border-radius: 7px; text-transform: uppercase; letter-spacing: .04em; }
.f-mas { width: 38px; height: 38px; border-radius: 50%; background: var(--f-acento); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 12px color-mix(in srgb, var(--f-acento) 35%, transparent); flex-shrink: 0; }
.f-mas:active { transform: scale(.94); }
.f-piezas { padding: 0 0 6px; }
.f-pieza { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px; position: relative; }
.f-pieza + .f-pieza::before { content: ""; position: absolute; left: 82px; right: 14px; top: 0; height: 1px; background: var(--f-separador); }
.f-pieza--ocupada { opacity: .45; pointer-events: none; }
.f-mini { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--f-relleno); display: grid; place-items: center; position: relative; color: var(--f-texto-3); font-size: 11px; font-weight: 600; }
.f-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.f-mini--v { width: 48px; height: 64px; margin: 0 4px; }
.f-mini b { position: absolute; right: 4px; bottom: 4px; background: rgba(0,0,0,.6); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 6px; }
.f-mini--vacia { color: var(--f-texto-3); box-shadow: inset 0 0 0 1.5px var(--f-separador); background: transparent; font-variant-numeric: tabular-nums; }
.f-pieza-txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.f-l1 { display: flex; align-items: center; gap: 7px; font-size: 13px; flex-wrap: wrap; }
.f-l1 b { font-variant-numeric: tabular-nums; font-weight: 700; }
.f-formato { color: var(--f-texto-2); }
.f-chip { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 7px; letter-spacing: .01em; color: #fff; line-height: 1.3; }
.f-chip--publicado { background: var(--f-verde); }
.f-chip--cola { background: var(--f-azul); }
.f-chip--error { background: var(--f-rojo); }
.f-chip--pendiente { background: transparent; color: var(--f-texto-2); box-shadow: inset 0 0 0 1.5px var(--f-separador); }
.f-app a.f-cap, .f-cap { font-size: 14px; color: var(--f-texto); font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.f-pieza--pendiente .f-cap { color: var(--f-texto-2); font-size: 13px; }
.f-redes, .f-err { font-size: 12px; color: var(--f-texto-2); }
.f-err { color: var(--f-rojo); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.f-pieza-acc { display: flex; flex-direction: column; gap: 6px; }
.f-acc { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--f-acento); background: var(--f-acento-tinta); }
.f-acc--mal { color: var(--f-rojo); background: color-mix(in srgb, var(--f-rojo) 12%, transparent); }
.f-acc:active { transform: scale(.92); }
.f-vacio { padding: 18px 14px 20px; color: var(--f-texto-2); font-size: 14px; text-align: center; }

/* ---------- hojas ---------- */
.f-velo { position: fixed; inset: 0; background: rgba(0,0,0,.32); z-index: 60; backdrop-filter: blur(2px); }
.f-hoja { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; background: var(--f-fondo); border-radius: 18px 18px 0 0; padding: 6px 16px calc(18px + env(safe-area-inset-bottom, 0px)); max-height: 92dvh; overflow: auto; box-shadow: 0 -8px 40px rgba(0,0,0,.2); animation: f-subir .3s cubic-bezier(.32,.72,0,1); font-family: var(--f-fuente); color: var(--f-texto); }
@keyframes f-subir { from { transform: translateY(100%); } to { transform: none; } }
.f-hoja-cab { display: flex; align-items: center; justify-content: space-between; padding: 10px 0 12px; position: sticky; top: 0; background: var(--f-fondo); z-index: 1; }
.f-hoja-cab h2 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.f-hoja-cab .f-icono { background: var(--f-relleno); box-shadow: none; color: var(--f-texto-2); width: 30px; height: 30px; }
.f-hoja h3 { font-size: 13px; font-weight: 700; color: var(--f-texto-2); text-transform: uppercase; letter-spacing: .05em; margin: 14px 4px 6px; display: flex; gap: 8px; align-items: baseline; }
.f-hoja h3 small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.f-form { display: flex; flex-direction: column; gap: 10px; }
.f-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--f-texto-2); }
.f-form label small { font-weight: 500; }
.f-form input, .f-form select, .f-fila select { background: var(--f-tarjeta); border: 0; border-radius: 10px; padding: 11px 12px; font-size: 16px; color: var(--f-texto); width: 100%; min-height: 44px; appearance: none; -webkit-appearance: none; }
.f-form select, .f-fila select { background-image: linear-gradient(45deg, transparent 50%, var(--f-texto-2) 50%), linear-gradient(135deg, var(--f-texto-2) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.f-form input:focus, .f-form select:focus, .f-fila select:focus { outline: 2px solid var(--f-acento); outline-offset: 0; }
.f-plan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.f-btn { display: block; width: 100%; text-align: center; padding: 13px 16px; border-radius: 12px; background: var(--f-acento); color: #fff; font-weight: 700; font-size: 16px; margin-top: 4px; }
.f-btn--sec { background: var(--f-acento-tinta); color: var(--f-acento); }
.f-btn:active { transform: scale(.985); }
.f-ayuda { font-size: 12.5px; color: var(--f-texto-2); margin-top: 6px; line-height: 1.4; }
.f-lista { background: var(--f-tarjeta); border-radius: 12px; margin-top: 14px; overflow: hidden; }
.f-fila { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; min-height: 48px; font-size: 15px; cursor: pointer; }
.f-fila + .f-fila { border-top: 1px solid var(--f-separador); }
.f-fila select { width: auto; min-height: 36px; padding: 6px 30px 6px 10px; font-size: 15px; background-color: var(--f-relleno); }
.f-switch--sola { gap: 0; }
.f-acciones { display: flex; gap: 8px; margin-top: 12px; }
.f-acciones .f-btn { margin: 0; font-size: 15px; padding: 11px 12px; }

/* ---------- PC: calendario a la izquierda, el dÃ­a a la derecha; la hoja es una tarjeta centrada ---------- */
@media (min-width: 900px) {
    .f-cuerpo { grid-template-columns: minmax(0, 1fr) minmax(340px, 40%); gap: 18px; }
    .f-cal { padding: 14px 14px 10px; }
    .f-celda { min-height: 72px; padding: 8px 0 7px; gap: 6px; }
    .f-cal-grid { gap: 4px; }
    .f-celda-n { font-size: 16px; }
    .f-punto { width: 8px; height: 8px; }
    .f-puntos { gap: 4px; height: 8px; }
    .f-dia { position: sticky; top: 16px; max-height: calc(100dvh - 32px); overflow: auto; }
    .f-hoja { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: min(520px, 92vw); border-radius: 18px; max-height: 88vh; animation: f-aparecer .22s ease-out; padding-bottom: 18px; }
    @keyframes f-aparecer { from { opacity: 0; transform: translate(-50%, -48%); } to { opacity: 1; transform: translate(-50%, -50%); } }
}
@media (min-width: 1200px) {
    .f-cuerpo { grid-template-columns: minmax(0, 1fr) 420px; }
    .f-celda { min-height: 84px; }
}
/* ---------- iPhone: celdas compactas, nada se desborda ---------- */
@media (max-width: 480px) {
    .f-cab h1 { font-size: 24px; }
    .f-switch-txt { display: none; }
    .f-cal { padding: 8px 6px 6px; }
    .f-celda { min-height: 48px; padding: 5px 0 4px; border-radius: 10px; }
    .f-celda-n { width: 28px; height: 28px; font-size: 14px; }
    .f-punto { width: 6px; height: 6px; }
    .f-puntos { gap: 2.5px; height: 6px; }
    .f-pieza { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px; }
    .f-pieza + .f-pieza::before { left: 74px; right: 12px; }
    .f-mini { width: 52px; height: 52px; }
    .f-mini--v { width: 44px; height: 58px; }
    .f-pieza-acc { flex-direction: row; }
    .f-acc { width: 32px; height: 32px; }
}

/* ============================================================================
   Ampliación del estándar (14-nov-2026, tuNFC): por aprobar, aviso, bandeja y
   la pieza completa dentro de la misma pantalla.
   ========================================================================== */
.f-app { --f-ambar: #F59E0B; }
.f-punto--aprobar { background: var(--f-ambar); }
.f-chip--aprobar { background: var(--f-ambar); color: #1F1300; }
.f-chip--descartada { background: var(--f-relleno); color: var(--f-texto-2); }
.f-punto--descartada { background: var(--f-texto-3); }
.f-acc--ok { color: #fff; background: var(--f-verde); }

/* botón «Por aprobar N» de la cabecera */
.f-bandeja { font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 999px; background: var(--f-tarjeta); box-shadow: var(--f-sombra); color: var(--f-texto-2); white-space: nowrap; }
.f-bandeja b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--f-relleno); color: var(--f-texto); font-size: 12px; }
.f-bandeja--hay { color: var(--f-texto); }
.f-bandeja--hay b { background: var(--f-ambar); color: #1F1300; }

/* aviso arriba del calendario */
.f-aviso { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; background: color-mix(in srgb, var(--f-ambar) 13%, var(--f-tarjeta)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--f-ambar) 40%, transparent); color: var(--f-texto); }
.f-aviso b { display: block; margin-bottom: 2px; }
.f-aviso--mal { background: color-mix(in srgb, var(--f-rojo) 10%, var(--f-tarjeta)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--f-rojo) 35%, transparent); }

/* volver al calendario */
.f-app a.f-volver { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--f-acento); margin: 0 0 12px; padding: 4px 2px; }

/* panel genérico (bandeja y pieza) */
.f-panel { background: var(--f-tarjeta); border-radius: var(--f-radio); box-shadow: var(--f-sombra); padding: 16px; min-width: 0; }
.f-panel-cab { margin-bottom: 12px; }
.f-panel-cab h2 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.f-panel-cab p { color: var(--f-texto-2); font-size: 13px; margin-top: 4px; }

/* bandeja: filtros + tarjetas con imagen */
.f-filtros { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.f-filtros::-webkit-scrollbar { display: none; }
.f-filtro { flex: none; height: 32px; padding: 0 12px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--f-texto-2); background: var(--f-relleno); }
.f-filtro b { margin-left: 3px; color: var(--f-texto); }
.f-filtro.on { background: var(--f-acento); color: #fff; }
.f-filtro.on b { color: #fff; }
.f-tarjetas { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.f-app a.f-tarjeta { display: flex; flex-direction: column; gap: 6px; color: var(--f-texto); min-width: 0; }
.f-tarjeta-img { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--f-relleno); color: var(--f-texto-3); font-size: 12px; font-weight: 600; }
.f-tarjeta-img--v { aspect-ratio: 9 / 16; }
.f-tarjeta-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.f-tarjeta-img b { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; }
.f-tarjeta strong { font-size: 13.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.f-tarjeta small { font-size: 12px; color: var(--f-texto-2); }
.f-tarjeta:hover .f-tarjeta-img { box-shadow: 0 0 0 2px var(--f-acento); }
.f-mas-lista { margin-top: 14px; }

/* la pieza completa */
.f-laminas { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 8px; scroll-snap-type: x mandatory; }
.f-app a.f-lamina { flex: none; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; color: var(--f-texto-2); }
.f-lamina img { display: block; height: 320px; width: auto; border-radius: 12px; background: #111; box-shadow: inset 0 0 0 1px var(--f-separador); }
.f-lamina img.v { height: 380px; }
.f-det-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); margin-top: 6px; }
.f-det-col { min-width: 0; }
.f-detalle h3 { font-size: 12.5px; font-weight: 700; color: var(--f-texto-2); text-transform: uppercase; letter-spacing: .05em; margin: 16px 0 6px; display: flex; gap: 8px; align-items: baseline; }
.f-detalle h3 small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.f-texto { font: inherit; font-size: 14px; white-space: pre-wrap; word-break: break-word; margin: 0; background: var(--f-tarjeta-2); border-radius: 10px; padding: 10px 12px; }
.f-area, .f-campo { width: 100%; font: inherit; font-size: 14.5px; line-height: 1.45; color: var(--f-texto); background: var(--f-tarjeta-2); border: 1px solid var(--f-separador); border-radius: 10px; padding: 10px 12px; }
.f-area { resize: vertical; min-height: 220px; }
.f-campo { max-width: 280px; min-height: 42px; }
.f-area:focus, .f-campo:focus { outline: 2px solid var(--f-acento); outline-offset: 0; }
.f-detalles summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--f-acento); margin: 8px 0 6px; }
.f-prods li, .f-historial li, .f-guion li { font-size: 13.5px; padding: 6px 0; border-bottom: 1px solid var(--f-separador); }
.f-prods li:last-child, .f-historial li:last-child { border-bottom: 0; }
.f-historial, .f-guion { padding-left: 0; list-style: none; margin: 0; }
.f-historial small, .f-guion small { color: var(--f-texto-2); }
.f-btn--auto { width: auto; display: inline-block; margin-top: 10px; }
.f-btn--mal { background: color-mix(in srgb, var(--f-rojo) 12%, transparent); color: var(--f-rojo); }
.f-acciones--det { flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--f-separador); }
.f-acciones--det .f-btn { width: auto; flex: 1 1 180px; }
.f-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

@media (min-width: 900px) {
    .f-det-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; }
    .f-panel { padding: 20px 22px; }
    .f-tarjetas { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
}
@media (max-width: 480px) {
    .f-bandeja { padding: 7px 10px; font-size: 12px; }
    .f-lamina img { height: 260px; }
    .f-lamina img.v { height: 320px; }
    .f-acciones--det .f-btn { flex-basis: 100%; }
    .f-cab { flex-wrap: wrap; }
}