/* CG gestión: pensada para el celular del consultorio. Colores del sitio nuevo (campo petróleo). */
:root { --campo: #0b3b39; --texto: #14211f; --suave: #5a6b68; --borde: #d6dedb; --fondo: #f4f6f5; --acento: #0f6e6a; --rojo: #b3261e; --ambar: #8a5a00; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--texto); background: var(--fondo); }
header { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; background: var(--campo); color: #eef1ea; }
header .marca { color: inherit; text-decoration: none; font-size: 1.05rem; } header .marca b { font-family: Georgia, serif; font-size: 1.3rem; }
.salir { display: flex; gap: .6rem; align-items: center; font-size: .9rem; }
.salir button { background: none; border: 1px solid #9fdcd4; color: #eef1ea; border-radius: 999px; padding: .25rem .8rem; font: inherit; cursor: pointer; }
nav { display: flex; gap: .25rem; overflow-x: auto; padding: .5rem; background: #fff; border-bottom: 1px solid var(--borde); position: sticky; top: 0; z-index: 2; }
nav a { white-space: nowrap; padding: .5rem .8rem; border-radius: 999px; color: var(--texto); text-decoration: none; }
nav a.destacado { background: var(--acento); color: #fff; }
nav a:hover, nav a:focus-visible { background: #e3ecea; } nav a.destacado:hover { background: var(--campo); }
main { max-width: 56rem; margin: 0 auto; padding: 1rem; }
h1 { font-family: Georgia, serif; font-weight: 400; font-size: 1.8rem; margin: .5rem 0 1rem; } h2 { font-family: Georgia, serif; font-weight: 400; }
a { color: var(--acento); }
.boton { display: inline-block; background: var(--acento); color: #fff; border: 0; border-radius: 999px; padding: .8rem 1.4rem; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; min-height: 44px; }
.boton:hover, .boton:focus-visible { background: var(--campo); }
.boton.secundario { background: #fff; color: var(--acento); border: 1px solid var(--acento); }
.boton.secundario:hover { background: #e3ecea; }
:focus-visible { outline: 3px solid #9fdcd4; outline-offset: 2px; }
.tarjeta { background: #fff; border: 1px solid var(--borde); border-radius: 12px; padding: 1rem; margin: 1rem 0; }
.tarjeta.peligro summary { color: var(--rojo); }
summary { cursor: pointer; font-weight: 600; }
label { display: block; margin: .7rem 0; font-size: .95rem; color: var(--suave); }
label.check { display: flex; gap: .5rem; align-items: center; color: var(--texto); }
input, textarea { display: block; width: 100%; margin-top: .25rem; padding: .7rem; font: inherit; color: var(--texto); border: 1px solid var(--borde); border-radius: 8px; background: #fff; min-height: 44px; }
input[type="checkbox"] { width: auto; min-height: 0; margin: 0; }
.venta .item { border: 1px solid var(--borde); border-radius: 12px; background: #fff; padding: .4rem 1rem .2rem; margin: 0 0 .8rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.venta legend { padding: 0 .3rem; font-weight: 600; } .venta legend small { font-weight: 400; color: var(--suave); }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--borde); border-radius: 12px; overflow: hidden; font-size: .95rem; }
th, td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--borde); vertical-align: top; }
th { background: #eef3f1; font-weight: 600; } .num { text-align: right; white-space: nowrap; }
tr.inactivo td { color: var(--suave); }
.stock { display: inline-block; min-width: 2.2rem; text-align: center; padding: .1rem .4rem; border-radius: 6px; background: #e3ecea; font-weight: 600; }
.stock.ambar { background: #fbecc8; color: var(--ambar); } .stock.rojo { background: #f9dedc; color: var(--rojo); }
.aviso { padding: .8rem 1rem; border-radius: 10px; background: #e3ecea; } .aviso.error { background: #f9dedc; color: var(--rojo); } .aviso.alerta { background: #fbecc8; color: var(--ambar); }
.acciones { margin: 0 0 1rem; } .filtros { display: flex; gap: .4rem; flex-wrap: wrap; }
.filtros a { padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--borde); text-decoration: none; background: #fff; } .filtros a[aria-current] { background: var(--acento); color: #fff; border-color: var(--acento); }
dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; } dt { color: var(--suave); } dd { margin: 0; }
.login { max-width: 22rem; margin: 2rem auto; }
@media (max-width: 40rem) {
  .venta .item { grid-template-columns: 1fr; }
  table { font-size: .88rem; } th, td { padding: .5rem; }
}
