/* Mundo Central: estilos compartidos por la pagina de venta, la cuenta del cliente y el panel. */
:root {
  --azul: #1f4e9e; --azul2: #0b2a5b; --azul3: #2f6fd6; --verde: #17b877; --verde2: #5be0a0;
  --fondo: #f3f6fb; --tarjeta: #fff; --texto: #14213d; --suave: #5b6b86; --linea: #dbe3f0;
  --rojo: #d43a3a; --ambar: #c98a00; --radio: 14px;
  --sombra: 0 6px 24px rgba(11, 42, 91, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--texto); background: var(--fondo); line-height: 1.5; -webkit-text-size-adjust: 100%; }
a { color: var(--azul); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }
.contenedor { width: min(1120px, 100% - 32px); margin-inline: auto; }
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 12px 20px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; background: var(--azul); color: #fff; transition: filter .15s, transform .05s; }
.boton:hover { filter: brightness(1.1); }
.boton:active { transform: translateY(1px); }
.boton[disabled] { opacity: .55; cursor: default; }
.boton.verde { background: var(--verde); }
.boton.claro { background: #fff; color: var(--azul); border: 1px solid var(--linea); }
.boton.rojo { background: var(--rojo); }
.boton.chico { padding: 7px 12px; font-size: 14px; border-radius: 8px; }
.tarjeta { background: var(--tarjeta); border: 1px solid var(--linea); border-radius: var(--radio); padding: 20px; box-shadow: var(--sombra); }
label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 4px; }
input, select, textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--linea); border-radius: 10px; background: #fff; color: var(--texto); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--azul3); outline-offset: 1px; }
input[type=checkbox] { width: auto; }
.campo { margin-bottom: 14px; }
.ayuda { font-size: 13px; color: var(--suave); margin-top: 4px; }
.error { color: var(--rojo); font-size: 14px; min-height: 1.4em; margin: 6px 0; }
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: #e7edf7; color: var(--azul2); white-space: nowrap; }
.chip.activa { background: #dcf5ea; color: #0c6b45; }
.chip.aviso { background: #fff1cc; color: #7a5300; }
.chip.gracia, .chip.suspendida { background: #fde0e0; color: #9a1f1f; }
.chip.gris { background: #e9ecf1; color: #556; }
.oculto { display: none !important; }
.fila { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .dos { grid-template-columns: 1fr; } }
.marca { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: inherit; text-decoration: none; }
.marca img { width: 34px; height: 34px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--linea); vertical-align: top; }
th { font-size: 12.5px; color: var(--suave); text-transform: uppercase; letter-spacing: .03em; }
.tabla-scroll { overflow-x: auto; }
