/* Identidad: Manual del logo de Farmacia Paulista v1.0 */
@font-face {
  font-family: "Montserrat";
  src: url("marca/Montserrat-variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --verde: #0A665B;
  --verde-hondo: #06413A;
  --menta: #65C8B4;
  --menta-claro: #E8F6F2;
  --gris: #4A5553;
  --gris-claro: #6C7775;
  --borde: #D5E2DE;
  --fondo: #FFFFFF;
  --ambar: #7A4F00;
  --ambar-fondo: #FFF3D6;
  --rojo: #B3261E;
  --rojo-fondo: #FCE9E7;
  --radio: 10px;
  --sombra-capa: 0 12px 40px rgba(6, 65, 58, .22);
  --ancho: 1240px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; }
body {
  margin: 0; background: var(--fondo); color: var(--verde-hondo);
  font: 400 15px/1.5 "Montserrat", Arial, Helvetica, sans-serif;
  padding-bottom: 72px;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(24px, 4vw, 34px); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
h2 { font-size: 20px; font-weight: 700; line-height: 1.25; }
h3 { font-size: 15px; font-weight: 700; }
a { color: var(--verde); }
button, input, select, textarea { font: inherit; color: inherit; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--verde); outline-offset: 2px; border-radius: 4px; }
.saltar { position: absolute; left: -999px; top: 8px; background: #fff; padding: 10px 14px; z-index: 100; }
.saltar:focus { left: 8px; }
.envase { max-width: var(--ancho); margin: 0 auto; padding: 0 16px; }
.seccion { padding-top: 28px; padding-bottom: 28px; }
.apagado { color: var(--gris); }
.chico { font-size: 13px; }
.oculto-vis { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* barra de simulación */
.barra-demo {
  background: var(--verde-hondo); color: #fff; font-size: 12.5px;
}
.barra-demo .envase { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: space-between; padding-top: 7px; padding-bottom: 7px; }
.barra-demo .vistas { display: flex; gap: 4px; align-items: center; }
.barra-demo a, .barra-demo button {
  color: #fff; background: none; border: 1px solid rgba(255,255,255,.45); border-radius: 6px;
  padding: 4px 10px; text-decoration: none; cursor: pointer; font-weight: 600; font-size: 12.5px;
}
.barra-demo a[aria-current="true"] { background: #fff; color: var(--verde-hondo); border-color: #fff; }

/* cabecera */
#cabecera { position: sticky; top: 0; background: #fff; border-bottom: 1px solid var(--borde); z-index: 30; }
.cab { display: grid; grid-template-columns: auto 1fr auto; gap: 12px 24px; align-items: center; padding: 12px 16px; max-width: var(--ancho); margin: 0 auto; }
.cab .logo img { width: 150px; height: auto; }
.cab .logo { display: block; padding: 4px 8px 4px 0; }
.buscador { position: relative; }
.buscador input {
  width: 100%; height: 46px; padding: 0 92px 0 16px; border: 1.5px solid var(--verde); border-radius: 24px; background: #fff;
}
.buscador input::placeholder { color: var(--gris-claro); }
.buscador button {
  position: absolute; right: 4px; top: 4px; height: 38px; padding: 0 16px; background: var(--verde); color: #fff;
  border: 0; border-radius: 20px; font-weight: 600; cursor: pointer;
}
.sugerencias {
  position: absolute; left: 0; right: 0; top: 52px; background: #fff; border: 1px solid var(--borde); border-radius: var(--radio);
  box-shadow: var(--sombra-capa); overflow: hidden; z-index: 40; max-height: 70vh; overflow-y: auto;
}
.sugerencias a { display: flex; gap: 10px; align-items: center; padding: 8px 12px; text-decoration: none; color: inherit; min-height: 52px; }
.sugerencias a:hover, .sugerencias a:focus-visible { background: var(--menta-claro); }
.sugerencias img, .sugerencias .sin-mini { width: 40px; height: 40px; object-fit: contain; flex: none; }
.sugerencias .sn { font-weight: 600; font-size: 13.5px; line-height: 1.25; }
.sugerencias .pr { font-size: 12.5px; color: var(--gris); }
.sugerencias .todos { justify-content: center; font-weight: 700; color: var(--verde); border-top: 1px solid var(--borde); }
.cab-acciones { display: flex; gap: 8px; }
.btn-carrito {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px;
  border: 1.5px solid var(--borde); border-radius: 24px; background: #fff; color: var(--verde-hondo); text-decoration: none; font-weight: 600;
}
.contador {
  min-width: 22px; height: 22px; padding: 0 6px; background: var(--verde); color: #fff; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
}
.menu-deps { border-top: 1px solid var(--borde); }
.menu-deps ul { display: flex; gap: 2px; list-style: none; margin: 0 auto; padding: 0 8px; max-width: var(--ancho); overflow-x: auto; scrollbar-width: none; }
.menu-deps a { display: block; padding: 10px 12px; white-space: nowrap; text-decoration: none; color: var(--verde-hondo); font-weight: 600; font-size: 14px; }
.menu-deps a:hover { color: var(--verde); text-decoration: underline; text-underline-offset: 4px; }
.menu-deps a[aria-current="page"] { color: var(--verde); box-shadow: inset 0 -3px 0 var(--verde); }

/* botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  border-radius: 8px; border: 1.5px solid var(--verde); background: var(--verde); color: #fff; font-weight: 600;
  cursor: pointer; text-decoration: none; text-align: center; line-height: 1.2;
}
.btn:hover { background: var(--verde-hondo); border-color: var(--verde-hondo); }
.btn.sec { background: #fff; color: var(--verde); }
.btn.sec:hover { background: var(--menta-claro); color: var(--verde-hondo); }
.btn.peligro { background: #fff; color: var(--rojo); border-color: var(--rojo); }
.btn.peligro:hover { background: var(--rojo-fondo); }
.btn.bloque { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { background: #EDF1F0; border-color: #EDF1F0; color: var(--gris); cursor: not-allowed; }
.enlace { background: none; border: 0; padding: 4px 0; color: var(--verde); text-decoration: underline; cursor: pointer; font-weight: 600; min-height: 32px; }

/* inicio */
.portada { background: var(--menta-claro); }
.portada .envase { padding-top: 34px; padding-bottom: 34px; display: grid; gap: 22px; }
.portada p { font-size: 16px; color: var(--gris); max-width: 58ch; margin-top: 8px; }
.accesos { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.acceso {
  display: block; background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 16px;
  text-decoration: none; color: inherit; min-height: 92px;
}
.acceso:hover { border-color: var(--verde); }
.acceso b { display: block; color: var(--verde); font-size: 16px; }
.acceso span { display: block; font-size: 13.5px; color: var(--gris); margin-top: 3px; }
.deps { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; }
.dep { border: 1px solid var(--borde); border-radius: var(--radio); padding: 14px; text-decoration: none; color: inherit; display: block; min-height: 90px; }
.dep:hover { border-color: var(--verde); background: var(--menta-claro); }
.dep b { display: block; font-size: 15.5px; }
.dep small { color: var(--gris); font-size: 12.5px; display: block; margin-top: 4px; line-height: 1.35; }
.titulo-fila { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.tira { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(165px, 200px); gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 10px; }
.tira > * { scroll-snap-align: start; }

/* tarjeta de producto */
.grilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .grilla { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1180px) { .grilla { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tarjeta { display: flex; flex-direction: column; border: 1px solid var(--borde); border-radius: var(--radio); background: #fff; overflow: hidden; min-width: 0; }
.tarjeta:hover { border-color: var(--menta); }
.tarjeta .foto { position: relative; display: block; aspect-ratio: 1; padding: 10px; background: #fff; }
.tarjeta .foto img { width: 100%; height: 100%; object-fit: contain; }
.sin-foto { width: 100%; height: 100%; background: var(--menta-claro); color: var(--gris); font-size: 12px; display: flex; align-items: center; justify-content: center; border-radius: 6px; text-align: center; padding: 6px; }
.tarjeta .info { padding: 4px 12px 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.tarjeta .marca { font-size: 11.5px; color: var(--gris); letter-spacing: .03em; text-transform: uppercase; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tarjeta .nombre { font-size: 14px; font-weight: 600; line-height: 1.3; color: inherit; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.9em; }
.tarjeta .nombre:hover { color: var(--verde); text-decoration: underline; }
.precio { font-size: 17px; font-weight: 800; color: var(--verde-hondo); white-space: nowrap; }
.precio-antes { display: inline-block; font-size: 12.5px; color: var(--gris); text-decoration: line-through; margin-left: 6px; font-weight: 500; white-space: nowrap; }
.tarjeta .abajo { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.tarjeta .btn { min-height: 42px; padding: 8px 10px; font-size: 14px; }

.marca-cond { display: inline-flex; width: fit-content; max-width: 100%; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 5px; line-height: 1.3; }
.cond-libre { background: var(--menta-claro); color: var(--verde-hondo); }
.cond-receta, .cond-archivada { background: var(--ambar-fondo); color: var(--ambar); }
.cond-mostrador { background: var(--rojo-fondo); color: var(--rojo); }
.etiqueta-frio { background: #E6F1FB; color: #124A7A; }
.dispo { font-size: 12.5px; font-weight: 600; }
.dispo.hay { color: var(--verde); }
.dispo.pocos { color: var(--ambar); }
.dispo.sin { color: var(--rojo); }
.tira-etq { display: flex; flex-wrap: wrap; gap: 4px; min-height: 23px; }

/* catálogo */
.miga { font-size: 13px; color: var(--gris); padding: 14px 0 4px; display: flex; flex-wrap: wrap; gap: 4px; }
.miga a { color: var(--gris); }
.catalogo { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); padding-bottom: 30px; }
@media (min-width: 960px) { .catalogo { grid-template-columns: 260px minmax(0, 1fr); } }
.cat-cab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.herram { display: flex; gap: 8px; align-items: center; }
.herram select { height: 44px; border: 1.5px solid var(--borde); border-radius: 8px; background: #fff; padding: 0 8px; max-width: 170px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip { background: var(--menta-claro); border: 0; border-radius: 16px; padding: 6px 12px; font-size: 13px; cursor: pointer; font-weight: 600; color: var(--verde-hondo); min-height: 34px; }
.chip:hover { background: #D3EDE6; }
.chip span[aria-hidden] { margin-left: 4px; font-weight: 800; }
.filtros { align-self: start; }
.filtros .grupo { border-bottom: 1px solid var(--borde); padding: 12px 0; }
.filtros .grupo h3 { margin-bottom: 8px; }
.op { display: flex; gap: 9px; align-items: center; padding: 6px 0; cursor: pointer; font-size: 14px; min-height: 34px; }
.op input { width: 19px; height: 19px; accent-color: var(--verde); flex: none; margin: 0; }
.op small { color: var(--gris); margin-left: auto; font-size: 12px; }
.lista-cat { list-style: none; margin: 0; padding: 0; }
.lista-cat a { display: flex; justify-content: space-between; padding: 7px 0; text-decoration: none; color: inherit; font-size: 14px; gap: 8px; }
.lista-cat a[aria-current="page"] { color: var(--verde); font-weight: 700; }
.lista-cat a small { color: var(--gris); font-size: 12px; }
.boton-filtros { display: none; }
.pie-filtros { display: none; }
@media (max-width: 959px) {
  .boton-filtros { display: inline-flex; }
  .filtros { display: none; }
  .filtros.abierto {
    display: block; position: fixed; inset: 0; background: #fff; z-index: 60; overflow-y: auto; padding: 16px 16px 90px;
  }
  .filtros.abierto .pie-filtros {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px; background: #fff; border-top: 1px solid var(--borde);
  }
  .filtros.abierto .pie-filtros .btn { flex: 1; }
}
.vacio { background: var(--menta-claro); border-radius: var(--radio); padding: 28px 20px; }
.vacio h2 { margin-bottom: 6px; }
.vacio .acciones { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.mas { text-align: center; margin-top: 20px; }

/* ficha */
.ficha { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); padding-bottom: 30px; }
@media (min-width: 820px) { .ficha { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; } }
.ficha .foto-grande { border: 1px solid var(--borde); border-radius: var(--radio); aspect-ratio: 1; padding: 24px; max-height: 480px; width: 100%; }
.ficha .foto-grande img { width: 100%; height: 100%; object-fit: contain; }
.ficha .datos { display: flex; flex-direction: column; gap: 12px; }
.ficha .precio { font-size: 28px; }
.caja { border: 1px solid var(--borde); border-radius: var(--radio); padding: 14px 16px; }
.caja.aviso-receta { background: var(--ambar-fondo); border-color: #EFD9A6; color: #553700; }
.caja.aviso-mostrador { background: var(--rojo-fondo); border-color: #F1C7C3; color: #7A1A14; }
.caja.aviso-frio { background: #E6F1FB; border-color: #BFD9EF; color: #124A7A; }
.caja.suave { background: var(--menta-claro); border-color: transparent; }
.comprar { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.cantidad { display: inline-flex; border: 1.5px solid var(--borde); border-radius: 8px; overflow: hidden; height: 46px; }
.cantidad button { width: 44px; border: 0; background: #fff; font-size: 20px; font-weight: 700; cursor: pointer; color: var(--verde); }
.cantidad button:hover { background: var(--menta-claro); }
.cantidad button:disabled { color: #B7C2BF; cursor: not-allowed; background: #fff; }
.cantidad output, .cantidad span { min-width: 40px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.comprar .btn { flex: 1; min-width: 180px; min-height: 46px; }
.tabla-sucursal { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabla-sucursal td { padding: 7px 0; border-bottom: 1px solid var(--borde); }
.tabla-sucursal tr:last-child td { border-bottom: 0; }
.tabla-sucursal td:last-child { text-align: right; }

/* carrito y pedido */
.dos-col { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); padding-bottom: 30px; }
@media (min-width: 900px) { .dos-col { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .dos-col > aside { position: sticky; top: 140px; } }
.linea { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--borde); }
.linea .mini { width: 72px; height: 72px; object-fit: contain; }
.linea .fila { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.linea .nombre { font-weight: 600; font-size: 14.5px; text-decoration: none; color: inherit; }
.resumen { background: var(--menta-claro); border-radius: var(--radio); padding: 16px; display: grid; gap: 8px; }
.resumen .renglon { display: flex; justify-content: space-between; gap: 10px; }
.resumen .total { font-weight: 800; font-size: 18px; border-top: 1px solid #BFDFD6; padding-top: 10px; }
.bloque { border: 1px solid var(--borde); border-radius: var(--radio); padding: 18px; margin-bottom: 14px; display: grid; gap: 12px; }
.bloque legend, .bloque > h2 { font-weight: 700; font-size: 17px; padding: 0; }
fieldset.bloque { min-width: 0; }
fieldset.bloque legend { float: left; width: 100%; margin-bottom: 4px; }
fieldset.bloque legend + * { clear: both; }
.campo { display: grid; gap: 5px; }
.campo label, .campo .etq { font-weight: 600; font-size: 14px; }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1.5px solid #AFC4BE; border-radius: 8px; background: #fff;
}
.campo textarea { min-height: 96px; resize: vertical; }
.campo .ayuda { font-size: 12.5px; color: var(--gris); }
.campo .falta { font-size: 13px; color: var(--rojo); font-weight: 600; }
.opcion { display: flex; gap: 10px; border: 1.5px solid var(--borde); border-radius: 8px; padding: 12px; cursor: pointer; align-items: flex-start; }
.opcion:has(input:checked) { border-color: var(--verde); background: var(--menta-claro); }
.opcion input { width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--verde); flex: none; }
.opcion b { display: block; font-weight: 600; }
.opcion small { color: var(--gris); font-size: 13px; display: block; }
.opcion.deshabilitada { opacity: .75; cursor: not-allowed; background: #F4F6F5; }
.subir { border: 2px dashed #AFC4BE; border-radius: var(--radio); padding: 18px; text-align: center; display: block; cursor: pointer; font-weight: 600; color: var(--verde); }
.subir:hover { background: var(--menta-claro); }
.subir input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.subir:focus-within { outline: 3px solid var(--verde); outline-offset: 2px; }
.vista-receta { max-height: 260px; border: 1px solid var(--borde); border-radius: 8px; margin: 0 auto; background: #fff; }
.error { background: var(--rojo-fondo); color: #7A1A14; border-radius: 8px; padding: 12px 14px; font-weight: 600; font-size: 14px; }
.linea-tiempo { list-style: none; margin: 0; padding: 0; }
.linea-tiempo li { position: relative; padding: 0 0 16px 22px; font-size: 14px; }
.linea-tiempo li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--verde); }
.linea-tiempo li::after { content: ""; position: absolute; left: 8px; top: 16px; bottom: -6px; width: 2px; background: var(--borde); }
.linea-tiempo li:last-child::after { display: none; }
.linea-tiempo small { color: var(--gris); display: block; font-size: 12.5px; }
.estado-pill { display: inline-block; padding: 4px 10px; font-size: 12.5px; font-weight: 700; border-radius: 14px; background: var(--menta-claro); color: var(--verde-hondo); white-space: nowrap; }
.estado-pill.por_validar, .estado-pill.por_verificar, .estado-pill.receta_rechazada { background: var(--ambar-fondo); color: var(--ambar); }
.estado-pill.cancelado { background: var(--rojo-fondo); color: var(--rojo); }
.estado-pill.entregado { background: #EDF1F0; color: var(--gris); }
.mensaje-wa { background: #F4F6F5; border-radius: 8px; padding: 12px 14px; font-size: 13.5px; white-space: pre-wrap; word-break: break-word; }
.tarjeta-pedido { display: grid; gap: 4px 14px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border: 1px solid var(--borde); border-radius: var(--radio); padding: 14px; text-decoration: none; color: inherit; margin-bottom: 10px; }
.tarjeta-pedido:hover { border-color: var(--verde); }

/* pie */
#pie { background: var(--menta-claro); margin-top: 28px; }
.pie { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 28px 16px; max-width: var(--ancho); margin: 0 auto; font-size: 13.5px; }
.pie h3 { margin-bottom: 6px; }
.pie ul { list-style: none; margin: 0; padding: 0; }
.pie li { padding: 2px 0; }
.pie .logo-pie { width: 150px; margin-bottom: 10px; }

/* pestañas móviles */
.pestanas { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--borde); display: grid; grid-template-columns: repeat(4, 1fr); z-index: 35; padding-bottom: env(safe-area-inset-bottom); }
.pestanas a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; font-size: 11.5px; font-weight: 600; text-decoration: none; color: var(--gris); position: relative; }
.pestanas a[aria-current="page"] { color: var(--verde); box-shadow: inset 0 3px 0 var(--verde); }
.pestanas svg { width: 22px; height: 22px; }
.pestanas .contador { position: absolute; top: 5px; left: calc(50% + 6px); min-width: 18px; height: 18px; font-size: 11px; padding: 0 4px; }
@media (min-width: 900px) { .pestanas { display: none; } body { padding-bottom: 0; } }
@media (max-width: 699px) {
  .cab { grid-template-columns: 1fr; gap: 10px; padding: 10px 16px; }
  .cab .logo img { width: 140px; }
  .cab-acciones { display: none; }
  html { scroll-padding-top: 150px; }
}

/* aviso flotante */
.aviso {
  position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px); background: var(--verde-hondo); color: #fff;
  padding: 12px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none;
  transition: opacity .18s, transform .18s; z-index: 80; width: max-content; max-width: calc(100vw - 32px); display: flex; gap: 14px; align-items: center;
}
.aviso.visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.aviso a { color: #fff; font-weight: 700; white-space: nowrap; }
@media (min-width: 900px) { .aviso { bottom: 24px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* panel */
.panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 70vh; }
@media (min-width: 900px) { .panel { grid-template-columns: 220px minmax(0, 1fr); } }
.panel-menu { background: #F6F9F8; border-right: 1px solid var(--borde); padding: 12px; }
.panel-menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.panel-menu a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: inherit; font-weight: 600; font-size: 14px; white-space: nowrap; }
.panel-menu a:hover { background: var(--menta-claro); }
.panel-menu a[aria-current="page"] { background: var(--verde); color: #fff; }
.panel-menu .contador { background: var(--ambar-fondo); color: var(--ambar); }
.panel-menu .rol { margin-bottom: 12px; }
.panel-menu .rol select { width: 100%; height: 42px; border: 1.5px solid var(--borde); border-radius: 8px; background: #fff; padding: 0 8px; font-weight: 600; }
.panel-menu .rol label { font-size: 12px; color: var(--gris); font-weight: 600; display: block; margin-bottom: 3px; }
@media (min-width: 900px) { .panel-menu ul { flex-direction: column; overflow: visible; } }
.panel-cuerpo { padding: 22px 16px 40px; min-width: 0; }
@media (min-width: 900px) { .panel-cuerpo { padding: 26px 30px 50px; } }
.panel-cuerpo h1 { font-size: 26px; margin-bottom: 4px; }
.panel-cab { margin-bottom: 18px; }
.metricas { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 22px; }
.metrica { display: block; border: 1px solid var(--borde); border-radius: var(--radio); padding: 14px; text-decoration: none; color: inherit; }
.metrica:hover { border-color: var(--verde); }
.metrica b { display: block; font-size: 28px; line-height: 1.1; font-weight: 800; }
.metrica span { font-size: 13px; color: var(--gris); }
.metrica.alerta b { color: var(--ambar); }
.tabla-envase { overflow-x: auto; border: 1px solid var(--borde); border-radius: var(--radio); }
.tabla { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.tabla th { text-align: left; font-size: 12px; color: var(--gris); padding: 10px 12px; border-bottom: 1.5px solid var(--borde); background: #F6F9F8; font-weight: 700; white-space: nowrap; }
.tabla td { padding: 10px 12px; border-bottom: 1px solid var(--borde); vertical-align: middle; }
.tabla tr:last-child td { border-bottom: 0; }
.tabla .num { text-align: right; white-space: nowrap; }
.tabla .marcada { background: var(--ambar-fondo); }
.barra-filtros { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; align-items: center; }
.barra-filtros input[type="search"] { flex: 1 1 220px; height: 44px; border: 1.5px solid #AFC4BE; border-radius: 8px; padding: 0 12px; }
.pastilla { border: 1.5px solid var(--borde); background: #fff; border-radius: 18px; padding: 7px 13px; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; color: inherit; min-height: 36px; display: inline-flex; align-items: center; gap: 6px; }
.pastilla[aria-current="true"] { background: var(--verde); border-color: var(--verde); color: #fff; }
.panel-doble { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1080px) { .panel-doble { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; } }
.receta-grande { width: 100%; border: 1px solid var(--borde); border-radius: 8px; background: #fff; max-height: 520px; object-fit: contain; }
.acciones { display: flex; flex-wrap: wrap; gap: 8px; }
.grilla-campos { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.nota-rol { background: var(--ambar-fondo); color: #553700; padding: 10px 12px; border-radius: 8px; font-size: 13.5px; }
