@import url("https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700;800&family=Martian+Mono:wght@400;500;700&display=swap");
/* Mundo visual: carpeta con separadores. Paleta tomada del logo de Ofiescolar. */
:root {
  --rey: #1A5AB4;      /* fondo del logo: el suelo de todo el sistema */
  --rey-hondo: #0E3C80;
  /* tonos del logo, un punto más hondos para que el texto blanco se lea (WCAG AA) */
  --rosa: #D6266F; --verde: #078446; --amarillo: #F8C808; --rojo: #D42430;
  --morado: #9838C8; --cian: #0778B4; --electrico: #2445E0;
  --ink: #14203A; --ink2: #24324F; --muted: #56627A; --line: #D9DEE7; --line2: #E8EBF1;
  --fog: #F3F5F9; --paper: #fff;
  /* canales */
  --A: var(--electrico); --B: var(--rosa); --CALLE: #D9A400;
  /* compatibilidad con nombres anteriores */
  --blue: var(--rey); --green: var(--verde); --yellow: var(--amarillo); --pink: var(--rosa); --red: var(--rojo);
  --deep: var(--verde); --mint: var(--cian); --pale: #BFD0EC; --CALLE-ink: #7A5C00;
  --r: 6px;
  --mono: "Martian Mono", ui-monospace, monospace;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 400 14px/1.5 var(--sans); color: var(--ink); background: var(--rey) url("../assets/patron.svg") 0 0 / 320px 320px; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 800; letter-spacing: -.02em; margin: 0; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
input, textarea { caret-color: var(--rey); }
button { cursor: pointer; }
a { color: var(--rey); text-underline-offset: 3px; }
::selection { background: var(--amarillo); color: var(--ink); }
:focus-visible { outline: 2px solid var(--electrico); outline-offset: 2px; }
* { scrollbar-width: thin; scrollbar-color: #B9C3D3 transparent; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono, .num-m { font-family: var(--mono); font-size: .92em; letter-spacing: -.02em; }

/* barra del demo, común a todas las vistas */
.demobar { display: flex; align-items: center; gap: 14px; padding: 0 16px; height: 44px; background: var(--ink); color: #fff; font-size: 13px; position: sticky; top: 0; z-index: 50; }
.demobar__brand { display: flex; align-items: center; gap: 9px; font-weight: 700; white-space: nowrap; text-decoration: none; color: #fff; }
.demobar__brand img { height: 26px; width: auto; border-radius: 4px; display: block; }
.demobar__brand small { color: #9DAAC2; font-weight: 500; }
.demobar nav { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.demobar nav a { color: #C9D2E3; text-decoration: none; padding: 6px 10px; border-radius: 5px; white-space: nowrap; font-weight: 600; }
.demobar nav a:hover { background: rgb(255 255 255 / .08); color: #fff; }
.demobar nav a[aria-current="page"] { background: #fff; color: var(--ink); }
@media (max-width: 760px) { .demobar__brand small { display: none; } .demobar { gap: 8px; padding: 0 10px; } .demobar nav a { padding: 6px 8px; } }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid var(--ink); background: #fff; border-radius: 5px; padding: 6px 12px; font-weight: 700; font-size: 13px; color: var(--ink); text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s; }
.btn:hover { background: var(--fog); }
.btn--pri { background: var(--ink); color: #fff; }
.btn--pri:hover { background: var(--ink2); }
.btn--ok { background: var(--verde); border-color: var(--verde); color: #fff; }
.btn--ok:hover { background: #08904D; }
.btn--warn { color: #C4202A; border-color: #C4202A; }
.btn--sm { padding: 3px 9px; font-size: 12px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }

/* canal: un cuadro del color del logo y el nombre */
.tag { display: inline-flex; align-items: center; gap: 6px; font: 700 11.5px/1 var(--sans); padding: 4px 0; color: var(--ink); white-space: nowrap; }
.tag::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--muted); }
.tag--A::before { background: var(--A); }
.tag--B::before { background: var(--B); }
.tag--CALLE::before { background: var(--amarillo); }
.tag--plain { color: var(--muted); font-weight: 600; }
.tag--plain::before { display: none; }

/* producto en chats y listas */
.ill { display: block; }
.ill svg { width: 100%; height: 100%; display: block; }
.pcard { display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: center; }
.pcard__img { width: 76px; height: 76px; border-radius: 5px; object-fit: cover; overflow: hidden; background: var(--fog); }
.pcard__tx b { display: block; font-size: 13.5px; line-height: 1.3; }
.pcard__pr { display: block; font-weight: 800; margin-top: 3px; }
.pcard__pr small { font-weight: 600; opacity: .7; margin-left: 4px; }
.pcard__st { display: block; opacity: .7; font-size: 11.5px; margin-top: 2px; }
.sum { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 13px; }
.sum td { padding: 3px 0; vertical-align: top; }
.sum td:last-child { text-align: right; padding-left: 10px; white-space: nowrap; }
.sum__t td { border-top: 1.5px solid currentColor; font-weight: 800; padding-top: 5px; }
.ref { font-weight: 800; }
.aviso { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; opacity: .75; margin-bottom: 2px; }

/* marco de teléfono para las apps */
.phone { width: 380px; max-width: 100%; height: min(780px, calc(100vh - 88px)); border-radius: 38px; background: #0E1422; padding: 10px; box-shadow: 0 28px 50px -18px rgb(0 0 0 / .35), 0 0 0 1px rgb(255 255 255 / .08); }
.phone__in { height: 100%; border-radius: 29px; overflow: hidden; background: #fff; display: flex; flex-direction: column; position: relative; }
@media (max-width: 560px) {
  .phone { width: 100%; height: calc(100dvh - 44px); border-radius: 0; padding: 0; box-shadow: none; background: none; }
  .phone__in { border-radius: 0; }
}
.toast { position: fixed; left: 50%; bottom: 22px; translate: -50% 6px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; font-size: 13px; font-weight: 600; z-index: 99; box-shadow: 0 12px 28px -10px rgb(0 0 0 / .45); opacity: 0; transition: opacity .2s, translate .25s cubic-bezier(.2, .8, .2, 1); pointer-events: none; max-width: calc(100vw - 32px); }
.toast.is-on { opacity: 1; translate: -50% 0; }

/* hoja de carpeta: blanca, con tres perforaciones en el margen */
.sheet { background: #fff; position: relative; }
.holes { position: absolute; left: 12px; top: 0; bottom: 0; width: 22px; background: radial-gradient(circle at 10px 97.5px, var(--rey) 0 6px, transparent 6.6px), radial-gradient(circle at 10px 96px, var(--rey-hondo) 0 6.6px, transparent 7.2px), radial-gradient(circle at 10px 96px, transparent 0 8px, #E4EBF6 8.5px 10.5px, transparent 11px), radial-gradient(circle at 10px 377.5px, var(--rey) 0 6px, transparent 6.6px), radial-gradient(circle at 10px 376px, var(--rey-hondo) 0 6.6px, transparent 7.2px), radial-gradient(circle at 10px 376px, transparent 0 8px, #E4EBF6 8.5px 10.5px, transparent 11px), radial-gradient(circle at 10px 657.5px, var(--rey) 0 6px, transparent 6.6px), radial-gradient(circle at 10px 656px, var(--rey-hondo) 0 6.6px, transparent 7.2px), radial-gradient(circle at 10px 656px, transparent 0 8px, #E4EBF6 8.5px 10.5px, transparent 11px); background-repeat: no-repeat; pointer-events: none; }
.wa-side .holes, .app-side .holes { display: none; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* contorno interior: una línea fina por dentro del borde, como etiqueta troquelada */
.btn, .filt button, .inbox__tabs button, .chipsx button, .numtabs button, .tries button, .bigbtn, .tabs a, .vista { outline: 1px solid var(--in, rgb(20 32 58 / .28)); outline-offset: -4px; }
.btn--pri, .btn--ok, .bigbtn, .filt button[aria-pressed="true"], .inbox__tabs button[aria-pressed="true"], .chipsx button[aria-pressed="true"] { --in: rgb(255 255 255 / .5); }
.btn--sm, .inbox__tabs button, .chipsx button { outline-offset: -3px; }
.tabs a, .vista { --in: color-mix(in srgb, var(--tx, #fff) 55%, transparent); outline-offset: -5px; }
.vista--dark { --tx: var(--ink); }
.btn[disabled] { outline-color: transparent; }
.btn:focus-visible, .filt button:focus-visible, .inbox__tabs button:focus-visible, .chipsx button:focus-visible, .numtabs button:focus-visible, .bigbtn:focus-visible { outline: 2px solid var(--electrico); outline-offset: 2px; }
.tabs a:focus-visible, .vista:focus-visible { outline: 2px solid var(--amarillo); outline-offset: 2px; }
