/* SICMA multiempresa — estilos propios (sin CDN). Oscuro, alto contraste, botones grandes para el taller.
   Los colores de cada empresa llegan por /tema/{id}.css (--primario, --sobre-primario, --fondo-marca). */
:root {
  --primario: #f59e0b; --sobre-primario: #111827; --fondo-marca: #0f172a; --primario-suave: rgba(245, 158, 11, .15);
  --fondo: #020617; --panel: #0f172a; --panel-2: #1e293b; --borde: #334155; --texto: #e2e8f0; --suave: #94a3b8;
  --ok: #10b981; --alerta: #ef4444; --pausa: #f97316; --trabajo: #6366f1; --info: #0ea5e9;
  --radio: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fondo); color: var(--texto); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--primario); }
h1 { font-size: 1.5rem; margin: 0 0 .25rem; line-height: 1.2; }
h2 { font-size: 1.15rem; margin: 0 0 .75rem; }
h3 { font-size: 1.05rem; margin: .5rem 0; }
small { color: var(--suave); }
.oculto { display: none !important; }
code { background: var(--panel-2); padding: .15rem .35rem; border-radius: 6px; word-break: break-all; }

/* Franja de entorno (sicma2 = pruebas). Se activa con AVISO_ENTORNO en .env */
.franja-entorno { position: sticky; top: 0; z-index: 30; background: repeating-linear-gradient(45deg, #facc15, #facc15 14px, #eab308 14px, #eab308 28px);
  color: #111827; font-weight: 800; text-align: center; padding: .45rem .8rem; font-size: .95rem; letter-spacing: .01em; }
.franja-entorno + .barra { top: 2.2rem; }
@media (max-width: 640px) { .franja-entorno { font-size: .82rem; } .franja-entorno + .barra { top: 2.9rem; } }

/* Instalar como aplicación */
.instalar { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; background: var(--panel); border: 2px dashed var(--primario); border-radius: var(--radio); padding: .8rem 1rem; margin: 0 0 1rem; }
.instalar > span { font-size: 2rem; }
.instalar > div { flex: 1 1 210px; }
@media (max-width: 640px) { .instalar > span { font-size: 1.6rem; } .instalar [data-instalar] { flex: 1; } } .instalar p { margin: .2rem 0 0; color: var(--suave); font-size: .9rem; }
.instalar-pasos { background: var(--panel-2); border-radius: 10px; padding: .6rem .9rem; margin-top: .5rem; font-size: .95rem; }
.instalar-pasos ol { margin: .3rem 0 0; padding-left: 1.2rem; }

/* Barra superior */
.barra { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .75rem; padding: .6rem 1rem;
  background: var(--fondo-marca); border-bottom: 3px solid var(--primario); }
.marca { display: flex; align-items: center; gap: .6rem; color: var(--texto); text-decoration: none; min-width: 0; margin-right: auto; }
.marca img { height: 40px; max-width: 120px; object-fit: contain; background: #fff; border-radius: 8px; padding: 2px; }
.marca-icono { font-size: 1.8rem; }
.marca span { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.marca strong { font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu { position: relative; flex-shrink: 0; }
.menu > summary { list-style: none; cursor: pointer; padding: .55rem .8rem; border-radius: 10px; background: var(--panel-2); font-weight: 700; white-space: nowrap; }
.menu > summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 0; top: calc(100% + .5rem); width: min(300px, 90vw); max-height: 80vh; overflow: auto; background: var(--panel);
  border: 1px solid var(--borde); border-radius: var(--radio); padding: .5rem; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.menu nav a, .menu nav .enlace { display: flex; gap: .6rem; align-items: center; padding: .75rem .8rem; border-radius: 10px; color: var(--texto); text-decoration: none; font-size: 1rem; }
.menu nav a:hover, .menu nav a.activo, .menu nav .enlace:hover { background: var(--primario-suave); }
.menu-usuario { padding: .6rem .8rem; border-bottom: 1px solid var(--borde); margin-bottom: .3rem; display: flex; flex-direction: column; }
.enlace { background: none; border: 0; cursor: pointer; width: 100%; font: inherit; text-align: left; }
.contador { margin-left: auto; background: var(--alerta); color: #fff; border-radius: 99px; padding: 0 .55rem; font-size: .85rem; }
.aviso-empresa { background: var(--primario-suave); padding: .4rem 1rem; font-size: .9rem; text-align: center; }

.contenido { max-width: 1280px; margin: 0 auto; padding: 1rem; }
.contenido-simple { max-width: 520px; padding-top: 6vh; }
.pie { text-align: center; color: var(--suave); font-size: .8rem; padding: 2rem 1rem; }

/* Botones */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 46px; padding: .6rem 1.1rem; border-radius: 12px;
  border: 0; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; color: var(--texto); background: var(--panel-2); text-align: center; }
.boton-primario { background: var(--primario); color: var(--sobre-primario); }
.boton-gris { background: var(--panel-2); color: var(--texto); border: 1px solid var(--borde); }
.boton-ok { background: var(--ok); color: #fff; }
.boton-pausa { background: var(--pausa); color: #fff; }
.boton-peligro { background: var(--alerta); color: #fff; }
.boton-chico { min-height: 36px; padding: .35rem .75rem; font-size: .9rem; }
.boton-grande { width: 100%; min-height: 60px; font-size: 1.15rem; margin: .4rem 0; }
.boton:active { transform: scale(.98); }
.boton-archivo { position: relative; overflow: hidden; }
.boton-archivo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.boton-gigante { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 1rem; align-items: center;
  background: var(--primario); color: var(--sobre-primario); padding: 1.2rem 1.4rem; border-radius: 18px; text-decoration: none; margin: 1rem 0;
  box-shadow: 0 8px 30px var(--primario-suave); }
.boton-gigante span { grid-row: span 2; font-size: 2.6rem; }
.boton-gigante strong { font-size: 1.4rem; letter-spacing: .02em; }
.boton-gigante small { color: inherit; opacity: .8; }

/* Avisos */
.aviso { padding: .9rem 1rem; border-radius: 12px; margin: 0 0 1rem; border: 1px solid; }
.aviso-ok { background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.4); }
.aviso-error { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.45); }
.aviso-atencion { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.45); }
.clave { font: 700 1.8rem/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; margin: .3rem 0; }

/* Estructura */
.encabezado { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: flex-end; margin: .5rem 0 1rem; }
.encabezado p { margin: .2rem 0; color: var(--suave); }
.acciones { display: flex; flex-wrap: wrap; gap: .5rem; }
.miga { font-size: .9rem; }
.tarjeta { background: var(--panel); border: 1px solid var(--borde); border-radius: var(--radio); padding: 1rem; margin-bottom: 1rem; }
.tarjeta > summary { cursor: pointer; }
.angosta { max-width: 520px; margin: 1rem auto; }
.angosta-media { max-width: 820px; }
.centro { text-align: center; }
.bloque { margin-bottom: 1.25rem; }
.dos-columnas { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .dos-columnas { grid-template-columns: 1fr 1fr; } }
.vacio { color: var(--suave); padding: .5rem 0; }
.nota { color: var(--suave); font-size: .9rem; }
.texto-largo { white-space: normal; }
.texto-ok { color: var(--ok); } .texto-alerta { color: var(--alerta); }
.contador-titulo { background: var(--panel-2); border-radius: 99px; padding: 0 .6rem; font-size: .95rem; }

/* Etiquetas de estado */
.etiqueta { display: inline-block; padding: .15rem .55rem; border-radius: 99px; font-size: .82rem; font-weight: 700; border: 1px solid; white-space: nowrap; }
.etiqueta-ok { color: #6ee7b7; border-color: rgba(16,185,129,.5); background: rgba(16,185,129,.12); }
.etiqueta-alerta { color: #fca5a5; border-color: rgba(239,68,68,.5); background: rgba(239,68,68,.12); }
.etiqueta-pausa { color: #fdba74; border-color: rgba(249,115,22,.5); background: rgba(249,115,22,.12); }
.etiqueta-trabajo { color: #a5b4fc; border-color: rgba(99,102,241,.5); background: rgba(99,102,241,.14); }
.etiqueta-info { color: #7dd3fc; border-color: rgba(14,165,233,.5); background: rgba(14,165,233,.12); }
.etiqueta-neutro { color: var(--suave); border-color: var(--borde); background: var(--panel-2); }
.codigo-maquina { font: 700 .9em ui-monospace, Menlo, Consolas, monospace; color: var(--primario); background: var(--primario-suave); padding: .05rem .4rem; border-radius: 6px; }
.codigo-maquina.grande { font-size: 1.6rem; }

/* Indicadores */
.kpis { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 1rem; }
.kpi { background: var(--panel); border: 1px solid var(--borde); border-left: 5px solid var(--borde); border-radius: 12px; padding: .7rem .9rem;
  text-decoration: none; color: var(--texto); display: flex; flex-direction: column; }
.kpi b { font-size: 1.7rem; line-height: 1.2; }
.kpi-ok { border-left-color: var(--ok); } .kpi-alerta { border-left-color: var(--alerta); } .kpi-pausa { border-left-color: var(--pausa); } .kpi-trabajo { border-left-color: var(--trabajo); }

/* Tarjetas de pedidos */
.tarjetas { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.tarjeta-pedido { background: var(--panel); border: 1px solid var(--borde); border-left: 6px solid var(--borde); border-radius: var(--radio); padding: .9rem; display: flex; flex-direction: column; gap: .35rem; }
.tarjeta-pedido header { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.tarjeta-pedido h3 { margin: .2rem 0 0; font-size: 1.1rem; }
.tarjeta-pedido .motivo { margin: 0; font-size: 1.05rem; }
.tarjeta-pedido .detalle { margin: 0; color: var(--suave); font-size: .9rem; }
.tarjeta-pedido footer { display: flex; gap: .5rem; margin-top: auto; padding-top: .4rem; }
.tarjeta-pedido footer form { flex: 1; } .tarjeta-pedido footer .boton { width: 100%; }
.prioridad-critico { border-left-color: var(--alerta); } .prioridad-corto_mediano { border-left-color: var(--primario); } .prioridad-largo_plazo { border-left-color: var(--info); }
.en-curso { border-left-color: var(--trabajo); } .en-pausa { border-left-color: var(--pausa); }
.tarjeta-pedido.alerta-amarilla { box-shadow: 0 0 0 2px rgba(245,158,11,.6) inset; }
.tarjeta-pedido.alerta-roja { box-shadow: 0 0 0 3px rgba(239,68,68,.8) inset; animation: latido 2s infinite; }
@keyframes latido { 50% { background: rgba(239,68,68,.12); } }
.crono { font: 700 1.05rem ui-monospace, Menlo, Consolas, monospace; }
.cronos { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.cronos > div { background: var(--panel-2); border-radius: 10px; padding: .4rem .6rem; display: flex; flex-direction: column; }
.cronos.grandes { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.cronos.grandes b { font-size: 1.6rem; }

/* Listas */
.lista-simple { display: flex; flex-direction: column; gap: .4rem; }
.fila-pedido { display: flex; gap: .8rem; align-items: center; background: var(--panel); border: 1px solid var(--borde); border-radius: 12px; padding: .7rem .9rem; color: var(--texto); text-decoration: none; }
.fila-pedido:hover { border-color: var(--primario); }

/* Empresas */
.grilla-empresas { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tarjeta-empresa { width: 100%; display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: 1.2rem; border-radius: 18px; cursor: pointer;
  background: var(--panel); border: 2px solid var(--borde); color: var(--texto); font: inherit; }
.tarjeta-empresa:hover, .tarjeta-empresa.actual { border-color: var(--primario); }
.tarjeta-empresa > span, .tarjeta-empresa > strong, .tarjeta-empresa > small { display: flex; justify-content: center; flex-wrap: wrap; width: 100%; text-align: center; }
.tarjeta-empresa strong { font-size: 1.2rem; }
.tarjeta-empresa-logo { height: 64px; display: flex; align-items: center; font-size: 2.5rem; }
.tarjeta-empresa-logo img { max-height: 64px; max-width: 160px; background: #fff; border-radius: 10px; padding: 4px; }
.tarjeta-empresa-cuentas { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: center; }

/* Formularios */
.formulario { display: flex; flex-direction: column; gap: .8rem; }
.formulario label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; }
label.check { flex-direction: row !important; align-items: center; gap: .5rem !important; font-weight: 500; }
input, select, textarea { font: inherit; color: var(--texto); background: var(--fondo); border: 1px solid var(--borde); border-radius: 10px; padding: .7rem .8rem; min-height: 48px; width: 100%; }
input[type=checkbox], input[type=radio] { width: 22px; height: 22px; min-height: 0; accent-color: var(--primario); }
input[type=color] { padding: .2rem; height: 48px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primario); outline-offset: 1px; }
.campo-error { color: #fca5a5; font-size: .85rem; font-weight: 600; }
.con-boton { display: flex; gap: .4rem; } .con-boton input { flex: 1; }
.fila-campos { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.fila-botones { display: flex; gap: .5rem; justify-content: flex-end; }
.mas-opciones > summary { cursor: pointer; color: var(--suave); padding: .4rem 0; }
.mas-opciones[open] { background: var(--panel-2); padding: .4rem .8rem .8rem; border-radius: 12px; }
.paso { border: 1px solid var(--borde); border-radius: var(--radio); padding: 1rem; margin: 0; background: var(--panel); display: flex; flex-direction: column; gap: .7rem; }
.paso legend { font-size: 1.15rem; font-weight: 800; padding: 0 .4rem; display: flex; align-items: center; gap: .5rem; }
.numero { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--primario); color: var(--sobre-primario); }
.buscador { font-size: 1.1rem; }
.lista-maquinas { max-height: 50vh; overflow: auto; display: flex; flex-direction: column; gap: .4rem; }
.opcion-maquina { flex-direction: row !important; align-items: center; gap: .7rem !important; padding: .7rem; border: 2px solid var(--borde); border-radius: 12px; cursor: pointer; font-weight: 500 !important; }
.opcion-maquina span { display: flex; flex-direction: column; }
.opcion-maquina:has(input:checked) { border-color: var(--primario); background: var(--primario-suave); }
.maquina-elegida { display: flex; flex-direction: column; gap: .2rem; padding: .8rem; border: 2px solid var(--primario); border-radius: 12px; background: var(--primario-suave); }
.maquina-elegida strong { font-size: 1.2rem; }
.opciones-grandes { display: grid; gap: .6rem; }
.opciones-grandes.dos { grid-template-columns: 1fr 1fr; }
.opciones-grandes.tres { grid-template-columns: 1fr; }
@media (min-width: 640px) { .opciones-grandes.tres { grid-template-columns: 1fr 1fr 1fr; } }
.opcion-grande { cursor: pointer; position: relative; }
.opcion-grande input { position: absolute; opacity: 0; }
.opcion-grande span { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .15rem; padding: 1rem .6rem; border: 2px solid var(--borde);
  border-radius: 14px; background: var(--fondo); font-size: 1.4rem; min-height: 96px; justify-content: center; }
.opcion-grande strong { font-size: 1.05rem; } .opcion-grande small { font-weight: 400; font-size: .85rem; }
.opcion-grande input:focus-visible + span { outline: 2px solid var(--primario); }
.opcion-alerta input:checked + span { border-color: var(--alerta); background: rgba(239,68,68,.15); }
.opcion-ok input:checked + span { border-color: var(--ok); background: rgba(16,185,129,.15); }
.opcion-pausa input:checked + span { border-color: var(--primario); background: var(--primario-suave); }
.opcion-info input:checked + span { border-color: var(--info); background: rgba(14,165,233,.15); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { font: inherit; padding: .55rem .9rem; border-radius: 99px; border: 1px solid var(--borde); background: var(--panel-2); color: var(--texto); cursor: pointer; min-height: 42px; }
.chip.elegido { background: var(--primario); color: var(--sobre-primario); border-color: var(--primario); }
.previa { max-width: 100%; max-height: 260px; border-radius: 12px; object-fit: contain; }
.desplegable { margin: .5rem 0; } .desplegable > summary { list-style: none; } .desplegable > summary::-webkit-details-marker { display: none; }
.desplegable[open] > summary { opacity: .8; }
.desplegable > form { background: var(--panel-2); border-radius: 12px; padding: 1rem; margin-top: .4rem; }
.fila-repuesto { display: grid; grid-template-columns: 2fr .8fr 1fr 1fr; gap: .3rem; margin-bottom: .3rem; }
.fila-repuesto input { min-height: 42px; padding: .4rem .5rem; }
.peligro { border-color: rgba(239,68,68,.4); } .peligro > summary { color: #fca5a5; }

/* Tablas */
.tabla-contenedor { overflow-x: auto; background: var(--panel); border: 1px solid var(--borde); border-radius: var(--radio); }
.tabla { width: 100%; border-collapse: collapse; }
.tabla th, .tabla td { padding: .6rem .7rem; border-bottom: 1px solid var(--borde); text-align: left; vertical-align: top; }
.tabla th { font-size: .85rem; color: var(--suave); background: var(--panel-2); }
.tabla tr[data-href] { cursor: pointer; } .tabla tr[data-href]:hover { background: var(--panel-2); }
.tabla tr.inactiva { opacity: .55; }
.acciones-fila { display: flex; gap: .3rem; flex-wrap: wrap; } .acciones-fila form { display: inline; }
.filtros { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-end; margin-bottom: 1rem; }
.filtros input, .filtros select { width: auto; min-width: 150px; flex: 1 1 160px; }
.filtros label { display: flex; flex-direction: column; font-size: .85rem; color: var(--suave); }
.paginas { display: flex; gap: 1rem; align-items: center; justify-content: center; margin: 1rem 0; }
.fila-editable { border-bottom: 1px solid var(--borde); padding: .4rem 0; }
.fila-editable > summary { cursor: pointer; padding: .3rem 0; } .fila-editable .editar { color: var(--suave); font-size: .85rem; margin-left: .5rem; }
.fila-editable[open] { padding-bottom: .8rem; }
.fila-membresia { flex-direction: row !important; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--borde); padding: .5rem 0; }
.fila-membresia select { width: auto; }
.lista-chica { padding-left: 1.2rem; margin: 0; }

/* Pedido */
.datos { display: grid; grid-template-columns: max-content 1fr; gap: .3rem .9rem; margin: .8rem 0; }
.datos dt { color: var(--suave); } .datos dd { margin: 0; }
.acciones-tecnico { border: 2px solid var(--primario); }
.fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .5rem; }
.fotos img { width: 100%; height: 120px; object-fit: cover; border-radius: 10px; }
.linea-tiempo { list-style: none; padding: 0; margin: 0 0 1rem; }
.linea-tiempo li { display: flex; gap: .7rem; padding: .5rem 0; border-bottom: 1px dashed var(--borde); }
.linea-tiempo p { margin: .2rem 0 0; }
.ev-icono { font-size: 1.2rem; }
.foto-equipo { max-width: 100%; max-height: 260px; border-radius: 12px; }

/* Máquinas */
.tarjetas-equipos { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tarjeta-equipo { display: flex; flex-direction: column; gap: .3rem; padding: .9rem; border-radius: var(--radio); background: var(--panel); border: 1px solid var(--borde);
  border-top: 5px solid var(--ok); text-decoration: none; color: var(--texto); }
.estado-detenido { border-top-color: var(--alerta); } .estado-en_mantenimiento { border-top-color: var(--trabajo); }
.estado-mantenimiento_pausado, .estado-pausado_operativo { border-top-color: var(--pausa); }
.estado-fuera_de_servicio, .estado-desactivado { border-top-color: var(--borde); opacity: .7; }
.qr-maquina { text-align: center; max-width: 560px; margin: 0 auto; }
.qr-maquina .boton-gigante { text-align: left; }

/* Barras de indicadores */
.barras { display: flex; flex-direction: column; gap: .35rem; }
.barra-fila { display: grid; grid-template-columns: minmax(70px, 1.3fr) 2fr auto auto; gap: .5rem; align-items: center; font-size: .9rem; }
.barra-grafico { background: var(--panel-2); border-radius: 6px; height: 16px; overflow: hidden; }
.barra-grafico i { display: block; height: 100%; background: var(--primario); width: 0; }
.ancho-5 { width: 5% !important; } .ancho-10 { width: 10% !important; } .ancho-15 { width: 15% !important; } .ancho-20 { width: 20% !important; }
.ancho-25 { width: 25% !important; } .ancho-30 { width: 30% !important; } .ancho-35 { width: 35% !important; } .ancho-40 { width: 40% !important; }
.ancho-45 { width: 45% !important; } .ancho-50 { width: 50% !important; } .ancho-55 { width: 55% !important; } .ancho-60 { width: 60% !important; }
.ancho-65 { width: 65% !important; } .ancho-70 { width: 70% !important; } .ancho-75 { width: 75% !important; } .ancho-80 { width: 80% !important; }
.ancho-85 { width: 85% !important; } .ancho-90 { width: 90% !important; } .ancho-95 { width: 95% !important; } .ancho-100 { width: 100% !important; }
.nota-detalle { color: var(--suave); margin-bottom: 1rem; }

/* Empresa */
.logo-actual img { max-height: 90px; background: #fff; border-radius: 10px; padding: 4px; }
.enlace-copiable { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.qr svg, .qr img { width: 100%; height: auto; background: #fff; padding: 6px; border-radius: 8px; }
.qr-chico { max-width: 180px; }

/* Ingreso */
.tarjeta-ingreso { padding: 1.5rem; }
.ingreso-logo { text-align: center; margin-bottom: 1rem; }
.ingreso-logo h1 { font-size: 2rem; } .ingreso-logo p { color: var(--suave); margin: 0; }

/* Pantalla de TV */
body.tv { font-size: 18px; }
.contenido-tv { max-width: none; }
.tv-cabecera { display: flex; justify-content: space-between; align-items: center; background: var(--fondo-marca); border-bottom: 3px solid var(--primario);
  margin: -1rem -1rem 1rem; padding: .8rem 1.2rem; }
.reloj { font: 700 2.2rem ui-monospace, Menlo, Consolas, monospace; }
.tv .tarjetas { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.tv .crono { font-size: 1.3rem; }

@media (max-width: 640px) {
  .ocultar-chico { display: none; }
  .menu nav { position: fixed; top: auto; right: .5rem; left: .5rem; width: auto; margin-top: .5rem; max-height: 75vh; }
  .barra { padding: .5rem .6rem; gap: .4rem; }
  .marca img { height: 34px; max-width: 80px; } .marca small { display: none; }
  .boton-pedir { padding: .5rem .7rem; font-size: .9rem; }
  h1 { font-size: 1.3rem; }
  .contenido { padding: .75rem; }
  .fila-repuesto { grid-template-columns: 1fr 1fr; }
  .datos { grid-template-columns: 1fr; } .datos dt { margin-top: .4rem; }
  .tabla-pedidos td:nth-child(5), .tabla-pedidos td:nth-child(6), .tabla-pedidos th:nth-child(5), .tabla-pedidos th:nth-child(6) { display: none; }
}
