/* Muestra de Batuta para colegios · marca de Batuta (crema y ámbar, Cabinet Grotesk + Switzer),
   esquinas de 12 px y botones de 44 px o más. Mismas fuentes que el resto de la web. */
@font-face{font-family:'Cabinet Grotesk';src:url('/fonts/CabinetGrotesk-700.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:'Cabinet Grotesk';src:url('/fonts/CabinetGrotesk-800.woff2') format('woff2');font-weight:800;font-style:normal;font-display:swap}
@font-face{font-family:'Switzer';src:url('/fonts/Switzer-400.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Switzer';src:url('/fonts/Switzer-500.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:'Switzer';src:url('/fonts/Switzer-600.woff2') format('woff2');font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:'Switzer';src:url('/fonts/Switzer-700.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap}
:root {
  color-scheme: light;
  --ink: #17130C;
  --muted: #6E6656;
  --paper: #F7F3EB;
  --surface: #FFFDF8;
  --line: #DDD3C0;
  --green: #17130C;       /* borde y texto fuerte: ahora tinta, no verde */
  --amber-main: #E8A13D;
  --lime: #E8A13D;
  --sel: #FBEFD6;
  --amber: #8A5410;
  --amber-bg: #FBEFD6;
  --red: #8F2F22;
  --red-bg: #FBE7E2;
  --ok: #1F6A3A;
  --ok-bg: #E3F2E8;
  --r: 12px;
  font-family: 'Switzer', ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.5; font-size: 17px; padding-bottom: 96px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 3px solid #2475a8; outline-offset: 3px; }
h1, h2, h3, p, dd, dt, li { overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 20; background: var(--amber-main); padding: 12px 16px; border-radius: var(--r); }
.skip-link:focus { top: 12px; }
.wrap { width: min(760px, calc(100% - 32px)); margin: 0 auto; }

.site-header { background: #17130C; color: #F2EDE4; }
.header-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font: 800 22px 'Cabinet Grotesk', system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.brand-mark { width: 32px; height: 32px; color: var(--lime); }
.brand-dot { color: var(--lime); }
.header-note { font-size: 15px; font-weight: 600; color: #C9BFA9; }
.page { padding: 18px 0 40px; }
.demo-ribbon { display: flex; gap: 10px; align-items: baseline; padding: 12px 14px; border: 1px solid #E9CF9A; background: var(--amber-bg); color: #4A3410; font-size: 16px; border-radius: var(--r); }
.demo-ribbon strong { font-size: 13px; letter-spacing: .09em; }

.role-switch { display: flex; margin: 18px 0; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 4px; gap: 4px; }
.role-button { flex: 1; min-height: 48px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 700; }
.role-button[aria-pressed="true"] { background: var(--amber-main); color: #17130C; }

.tabs { display: flex; gap: 0; margin: 0 0 18px; border-bottom: 2px solid var(--line); overflow-x: auto; }
.tab { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 12px; border: 0; background: transparent; color: var(--muted); font-weight: 700; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tab[aria-current="page"] { color: var(--ink); border-bottom-color: var(--amber-main); }
.badge { display: inline-block; min-width: 24px; padding: 0 7px; border-radius: 999px; background: var(--amber-main); color: #17130C; font-size: 14px; font-weight: 800; text-align: center; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 4vw, 30px); }
h2 { margin: 0 0 8px; font: 800 clamp(26px, 6vw, 34px)/1.12 'Cabinet Grotesk', system-ui, sans-serif; letter-spacing: -.01em; }
h3 { margin: 0; font: 700 20px/1.2 'Cabinet Grotesk', system-ui, sans-serif; }
.lede { margin: 0 0 20px; color: var(--muted); }
.stack { display: grid; gap: 14px; }
.muted { color: var(--muted); }

svg.ic { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Botones: uno primario por pantalla. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 22px; border: 1px solid var(--ink); border-radius: var(--r); font-weight: 700; text-align: center; }
.btn-primary { background: var(--amber-main); border-color: var(--amber-main); color: #17130C; }
.btn-primary:disabled { background: #E9E2D3; border-color: #E9E2D3; color: #9A917D; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-block { width: 100%; }
.link-button { min-height: 44px; padding: 8px 4px; border: 0; background: none; color: var(--amber); font-weight: 700; text-decoration: underline; }
.actions { display: grid; gap: 12px; margin-top: 22px; }

/* Familia: taller con un botón por hijo */
.workshop { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; background: var(--surface); }
.workshop-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.workshop p { margin: 6px 0 0; color: var(--muted); font-size: 16px; }
.pill { flex: 0 0 auto; padding: 4px 10px; border-radius: 8px; font-size: 14px; font-weight: 700; }
.pill.open { background: var(--ok-bg); color: var(--ok); }
.pill.last { background: var(--amber-bg); color: var(--amber); }
.pill.full { background: var(--red-bg); color: var(--red); }
.pill.pend { background: var(--amber-bg); color: var(--amber); }
.pill.paid { background: var(--ok-bg); color: var(--ok); }
.kids { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.kid { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 16px; border: 1px solid var(--ink); border-radius: var(--r); background: var(--surface); color: var(--ink); font-weight: 600; }
.kid[aria-pressed="true"] { background: var(--amber-main); border-color: var(--amber-main); color: #17130C; }
.kid:disabled { border-color: var(--line); color: #9A917D; background: #F1ECE0; }
.note-line { margin: 10px 0 0; font-size: 16px; color: var(--red); font-weight: 700; }

.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--surface); border-top: 2px solid var(--amber-main); padding: 10px 0; }
.cartbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cartbar-text { font-size: 16px; line-height: 1.25; }
.cartbar-text strong { display: block; font-size: 20px; }

.check-row { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); }
.check-row input { width: 28px; height: 28px; flex: 0 0 auto; margin-top: 2px; accent-color: #E8A13D; }
.summary { margin: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.summary div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); }
.summary div:first-child { border-top: 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 700; text-align: right; }
.total-row { background: var(--sel); font-size: 20px; }

.pay-options { display: grid; gap: 12px; }
.pay-option { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; }
.pay-option input { width: 28px; height: 28px; flex: 0 0 auto; accent-color: #E8A13D; }
.pay-option:has(input:checked) { border-color: var(--amber-main); background: var(--sel); }
.yape-box { padding: 16px; background: #F3ECFB; border: 1px solid #7A3FB0; border-radius: var(--r); color: #3A1960; }
.yape-box strong { font-size: 26px; letter-spacing: .04em; display: block; }

/* Recibo: foto del resultado */
.receipt { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.receipt-head { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--ok-bg); color: var(--ok); font-weight: 800; }
.receipt-head.wait { background: var(--amber-bg); color: var(--amber); }
.receipt-head .ic { width: 34px; height: 34px; }
.receipt-body { padding: 4px 16px 16px; }
.receipt-body dl { margin: 0; }
.receipt-no { font-size: 15px; color: var(--muted); }

.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.row-main { min-width: 0; }
.row-main small { display: block; color: var(--muted); font-size: 16px; }
.notice { border-left: 5px solid var(--amber-main); border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; background: var(--surface); }
.notice h3 { margin-bottom: 4px; }
.notice small { color: var(--muted); font-size: 15px; }
.notice p { margin: 8px 0 0; white-space: pre-wrap; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.stat { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 12px 8px; text-align: center; }
.stat strong { display: block; font: 800 28px 'Cabinet Grotesk', system-ui, sans-serif; }
.stat span { font-size: 15px; color: var(--muted); }
.meter { height: 10px; border-radius: 999px; overflow: hidden; background: #EADFC8; margin-top: 12px; }
.meter span { display: block; height: 100%; background: var(--amber-main); }
.meter.full span { background: var(--red); }

label.field { display: grid; gap: 6px; font-weight: 700; }
.field input[type=text], .field select, .field textarea { min-height: 48px; padding: 10px 12px; border: 1px solid #B9AE97; border-radius: var(--r); background: var(--surface); font-weight: 400; width: 100%; }
.field textarea { min-height: 130px; resize: vertical; }
.empty { padding: 26px 16px; border: 1px dashed #B9AE97; border-radius: var(--r); text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--ink); font-size: 20px; margin-bottom: 6px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 110px; z-index: 30; width: min(560px, calc(100% - 32px)); background: #17130C; color: #F2EDE4; border-radius: var(--r); padding: 14px 16px; display: flex; gap: 12px; justify-content: space-between; align-items: center; }
.toast button { min-height: 44px; border: 2px solid #fff; background: transparent; color: #fff; padding: 6px 14px; font-weight: 800; }
.error { margin: 10px 0 0; padding: 12px; border-radius: var(--r); background: var(--red-bg); color: var(--red); font-weight: 700; }

.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0 24px; color: var(--muted); font-size: 15px; }

@media (min-width: 640px) {
  .actions { grid-template-columns: auto 1fr; }
  .actions .btn-primary { justify-self: end; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
