/* Dirección B · «Aula»: claridad y confianza.
   El mundo de Aula54 y de Clara: blanco luminoso y azul cobalto (el de su camiseta, #0B44A8),
   con la calidez de Marta (melocotón de su fondo, fucsia de su chaqueta) en pequeñas dosis.
   Tipografía: Plus Jakarta Sans (titulares, cifras, botones) + Inter (texto).
   Este fichero: fundamentos, página del evento, compra, entrada y hojas. La sala: b-room.css. */

:root {
  --blue: #0b44a8;          /* cobalto Aula54, muestreado de la camiseta de Clara */
  --blue-600: #0a3c95;
  --blue-700: #082f78;
  --blue-bright: #3a72f0;
  --blue-50: #f1f5fd;
  --blue-100: #e3ebfb;
  --blue-200: #c7d6f6;
  --ink: #0f1a33;
  --ink-2: #3c4762;
  --ink-3: #5c6781;
  --line: #e3e8f2;
  --line-2: #cfd8e8;
  --canvas: #f4f7fc;
  --paper: #ffffff;
  --peach: #fcefe3;          /* el fondo de Marta, aclarado */
  --peach-2: #f5d9bf;
  --peach-ink: #7a4416;
  --rose: #c41f5c;           /* la chaqueta de Marta: solo para «en directo» y grabar */
  --rose-50: #fdedf3;
  --green: #0b7a4f;
  --green-ink: #075a3a;
  --green-50: #e8f6ef;
  --green-100: #cdeedd;
  --error: #b42318;
  --error-50: #fdf0ef;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --gutter: 20px;
  --shadow-1: 0 1px 2px rgb(15 26 51 / .05), 0 2px 10px rgb(15 26 51 / .05);
  --shadow-2: 0 2px 4px rgb(11 68 168 / .05), 0 12px 32px rgb(11 68 168 / .11);
  --shadow-3: 0 -2px 6px rgb(15 26 51 / .04), 0 -16px 40px rgb(15 26 51 / .14);
  --ease: cubic-bezier(.2, .8, .2, 1);

  --font: "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans Variable", "Inter Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font: 400 16px/1.5 var(--font); letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01";
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -.015em; word-spacing: .06em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 2px; border-radius: 6px; }

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-fill { fill: currentColor; stroke: none; }

.b-help { display: flex; gap: .45rem; align-items: flex-start; color: var(--ink-3); font-size: .875rem; line-height: 1.45; }
.b-help .i { width: 16px; height: 16px; margin-top: .12em; }
.error { color: var(--error); font-size: .9rem; font-weight: 500; }
.error:empty { display: none; }

.sim-mark {
  display: inline-block; font: 600 .7rem/1.5 var(--font); letter-spacing: .02em;
  padding: 0 .45rem; border-radius: 99px; vertical-align: .08em;
  border: 1px dashed #8a93a8; color: var(--ink-3); background: var(--paper);
}
.b-simline { color: var(--ink-3); font-size: .8rem; line-height: 1.5; }

/* ---------------------------------------------------------------- botones */
.b-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: .7rem 1.15rem; border-radius: 14px;
  border: 1.5px solid var(--line-2); background: var(--paper); color: var(--ink);
  font: 700 1rem/1.2 var(--font-display); letter-spacing: -.005em; word-spacing: .08em;
  text-decoration: none; text-align: center; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.b-btn .i { width: 20px; height: 20px; }
.b-btn:active:not([disabled]) { transform: scale(.985); }
.b-btn[disabled], .b-btn[aria-disabled="true"] { opacity: .45; cursor: default; }
.b-btn-block { display: flex; width: 100%; }
.b-btn-primary {
  background: var(--blue); border-color: var(--blue); color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), 0 6px 18px rgb(11 68 168 / .28);
}
@media (hover: hover) { .b-btn-primary:hover { background: var(--blue-600); border-color: var(--blue-600); } }
.b-btn-primary:active:not([disabled]) { background: var(--blue-700); border-color: var(--blue-700); box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), 0 2px 8px rgb(11 68 168 / .24); }
.b-btn-secondary { background: var(--paper); border-color: var(--line-2); color: var(--blue); }
@media (hover: hover) { .b-btn-secondary:hover { border-color: var(--blue-200); background: var(--blue-50); } }
.b-btn-secondary:active:not([disabled]) { background: var(--blue-100); }
.b-btn-ghost { background: transparent; border-color: transparent; color: var(--blue); }
.b-btn-wallet { background: #000; border-color: #000; color: #fff; }
.b-btn-wallet .i { width: 22px; height: 22px; }
.b-btn-wallet:active:not([disabled]) { background: #222; }
.b-btn-small { min-height: 44px; padding: .45rem .9rem; font-size: .9rem; border-radius: 12px; }
.b-btn-choice { background: var(--paper); border-color: var(--blue); color: var(--blue); }
@media (hover: hover) { .b-btn-choice:hover { background: var(--blue-50); } }
.b-btn-choice:active:not([disabled]) { background: var(--blue-100); }
.b-btn-danger { background: var(--rose-50); border-color: #f2b9cd; color: var(--rose); }
.b-choice { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }

.b-spinner {
  display: inline-block; width: 18px; height: 18px; flex: none; border-radius: 50%;
  border: 2.5px solid var(--blue-100); border-top-color: var(--blue);
  animation: b-spin .8s linear infinite;
}
.b-spinner-lg { width: 32px; height: 32px; border-width: 3px; }
@keyframes b-spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- cabecera */
.b-topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 52px; padding: .4rem var(--gutter); padding-top: max(.4rem, env(safe-area-inset-top));
  background: var(--paper); font-size: .875rem;
}
.b-wordmark { display: inline-flex; align-items: center; gap: .4rem; font: 700 .95rem/1 var(--font-display); color: var(--ink); white-space: nowrap; min-width: 0; }
.b-wordmark-mark {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px;
  background: var(--blue); color: #fff; font: 800 .8rem/1 var(--font-display);
}
.b-wordmark-sep { color: var(--line-2); }
.b-wordmark-sub { font: 500 .85rem/1 var(--font); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; }
.lang-switch {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .25rem;
  font-weight: 600; font-size: .875rem; color: var(--blue); text-decoration: none;
}
.b-back { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; color: var(--ink); font-weight: 600; text-decoration: none; min-width: 0; }
.b-back .i { transform: scaleX(-1); color: var(--blue); }
.b-back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------- página del evento */
.b-event { max-width: 600px; margin: 0 auto; padding-bottom: 24px; }

.b-hero {
  background: var(--paper);
  background-image: radial-gradient(460px 260px at 0 0, var(--peach) 0%, rgb(252 239 227 / .55) 45%, rgb(252 239 227 / 0) 100%);
  padding: 14px var(--gutter) 20px;
  border-radius: 0 0 28px 28px;
  box-shadow: 0 1px 0 var(--line);
}
.b-creator { display: flex; align-items: center; gap: 14px; }
.b-creator-photo {
  width: 64px; height: 64px; flex: none; border-radius: 20px; object-fit: cover;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--peach-2), 0 6px 14px rgb(122 68 22 / .18);
}
.b-creator-text { min-width: 0; }
.b-creator-name { font: 800 1.08rem/1.2 var(--font-display); letter-spacing: -.01em; }
.b-creator-handle { font-size: .9rem; color: var(--ink-2); line-height: 1.35; }
.b-creator-followers { font-size: .8rem; color: var(--ink-3); line-height: 1.35; margin-top: 1px; }

.b-eyebrow {
  margin-top: 20px; font: 700 .75rem/1.2 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--blue);
}
.b-title { margin-top: 6px; font-size: clamp(1.7rem, 7.6vw, 2.3rem); font-weight: 800; line-height: 1.1; letter-spacing: -.022em; word-spacing: .07em; color: var(--ink); text-wrap: balance; }
.b-subtitle { margin-top: 8px; font-size: 1.02rem; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }

.b-buybox {
  margin-top: 18px; padding: 14px; border-radius: var(--r-lg);
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-2);
  display: grid; gap: 12px;
}
.b-facts { display: grid; gap: 0; margin: 0; }
.b-fact { display: flex; align-items: center; gap: 12px; min-width: 0; }
.b-fact-when dt { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--blue-50); color: var(--blue); }
.b-fact-when dt .i { width: 22px; height: 22px; }
.b-fact dd { margin: 0; display: grid; min-width: 0; }
.b-fact-main { font: 700 1rem/1.3 var(--font-display); color: var(--ink); display: block; word-spacing: .05em; }
.b-fact-when .b-fact-main::first-letter { text-transform: uppercase; }
.b-fact-sub { display: block; font-size: .84rem; line-height: 1.35; color: var(--ink-3); }
.b-fact-price { justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.b-fact-price dt { display: grid; }
.b-fact-price dd { justify-items: end; text-align: right; }
.b-price { font: 800 1.85rem/1 var(--font-display); letter-spacing: -.03em; color: var(--ink); }
.b-fact-price dd .b-fact-sub { font-size: .78rem; margin-top: 3px; white-space: nowrap; }

.b-buy-main { font-size: 1.06rem; min-height: 56px; border-radius: 16px; }

.b-guarantee {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
  background: var(--green-50); border: 1px solid var(--green-100);
}
.b-seal {
  position: relative; display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%;
  background: var(--green); color: #fff; box-shadow: 0 0 0 4px rgb(11 122 79 / .12);
}
.b-seal .i { width: 22px; height: 22px; stroke-width: 2; }
.b-guarantee p { font-size: .86rem; line-height: 1.4; color: var(--ink-2); }
.b-guarantee strong { display: block; font: 700 .93rem/1.3 var(--font-display); color: var(--green-ink); }

.b-paywith { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.b-paywith-label { font-size: .82rem; color: var(--ink-3); }
.b-paymarks { display: flex; gap: 6px; flex-wrap: wrap; }
.b-paymark {
  display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px;
  border: 1px solid var(--line-2); border-radius: 8px; background: #fff;
  font: 600 .8rem/1 var(--font); color: var(--ink);
}
.b-paymark .i { width: 16px; height: 16px; }
.b-paymark-apple .i { color: #000; margin-top: -2px; }
.b-paymark-apple, .b-paymark-google { font-weight: 600; letter-spacing: -.01em; }

.b-sold { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: .88rem; color: var(--ink-2); font-weight: 500; }
.b-sold-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-100); animation: b-breathe 2.4s ease-in-out infinite; }
@keyframes b-breathe { 50% { box-shadow: 0 0 0 6px rgb(11 122 79 / .08); } }

/* secciones bajo el pliegue */
.b-section { margin: 12px 12px 0; padding: 20px; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.b-h2 { display: flex; align-items: center; gap: .55rem; font-size: 1.2rem; font-weight: 800; color: var(--ink); margin-bottom: 14px; }
.b-h2 .i { width: 22px; height: 22px; color: var(--blue); }

.b-points { display: grid; gap: 14px; counter-reset: p; }
.b-points li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; font-size: 1rem; line-height: 1.45; color: var(--ink); }
.b-points-n {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
  background: var(--blue-50); color: var(--blue); font: 800 1rem/1 var(--font-display);
}
.b-points li > span:last-child { padding-top: 5px; }

.b-checklist { display: grid; }
.b-checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); font-size: .98rem; line-height: 1.45; }
.b-checklist li:first-child { border-top: 0; padding-top: 0; }
.b-check { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; margin-top: 1px; }
.b-check .i { width: 15px; height: 15px; stroke-width: 2.6; }
.b-includes-foot { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-2); display: grid; gap: 8px; }
.b-nofine { font: 700 .95rem/1.4 var(--font-display); color: var(--ink); }
.b-age { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--ink-3); }
.b-age-badge { display: inline-grid; place-items: center; min-width: 34px; height: 22px; padding: 0 6px; border-radius: 6px; border: 1.5px solid var(--ink-3); font: 800 .72rem/1 var(--font-display); color: var(--ink-2); }

/* Te acompaña Clara: la anfitriona, en su mundo azul */
.b-clara-host {
  color: #fff; background: var(--blue);
  background-image: radial-gradient(90% 80% at 100% 0%, rgb(90 140 255 / .55) 0%, rgb(90 140 255 / 0) 60%),
                    linear-gradient(160deg, #0d4cbb 0%, #0a3c95 100%);
  box-shadow: 0 14px 34px rgb(11 68 168 / .25);
}
.b-clara-host-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.b-clara-host-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 8px 18px rgb(0 0 0 / .2); flex: none; }
.b-clara-host .b-h2 { color: #fff; margin: 0 0 6px; }
.b-ai-tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px 2px 7px; border-radius: 99px;
  font: 700 .72rem/1.5 var(--font-display); letter-spacing: .02em; vertical-align: middle;
  background: var(--blue-100); color: var(--blue);
}
.b-ai-tag .i { width: 13px; height: 13px; stroke-width: 2; }
.b-clara-host .b-ai-tag { background: rgb(255 255 255 / .16); color: #fff; }
.b-clara-host-lead { font-size: .98rem; line-height: 1.5; color: rgb(255 255 255 / .92); }
.b-clara-host-list { display: grid; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgb(255 255 255 / .18); }
.b-clara-host-list li { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: start; font-size: .93rem; line-height: 1.45; color: #fff; }
.b-clara-host-list .i { width: 32px; height: 32px; padding: 7px; border-radius: 10px; background: rgb(255 255 255 / .14); }
.b-clara-host-list li span { padding-top: 5px; }

.b-venue p { color: var(--ink-2); line-height: 1.55; }
.b-venue-list { display: grid; gap: 8px; margin-top: 14px; }
.b-venue-list li { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--ink); }
.b-venue-list .i { color: var(--blue); }

.b-faq .b-h2 { margin-bottom: 4px; }
.b-faq details { border-top: 1px solid var(--line); }
.b-faq details:first-of-type { border-top: 0; }
.b-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 54px; padding: 8px 0; cursor: pointer; list-style: none;
  font: 650 1rem/1.35 var(--font); color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
.b-faq summary::-webkit-details-marker { display: none; }
.b-faq summary .i { color: var(--blue); transition: transform .2s var(--ease); width: 22px; height: 22px; }
.b-faq details[open] summary .i { transform: rotate(180deg); }
.b-faq details p { padding: 0 0 16px; color: var(--ink-2); line-height: 1.5; }
.b-faq details[open] p { animation: b-fade-down .22s var(--ease); }
@keyframes b-fade-down { from { opacity: 0; transform: translateY(-4px); } }

.b-endbuy { text-align: center; background: linear-gradient(180deg, var(--blue-50), var(--paper) 70%); border: 1px solid var(--blue-100); }
.b-endbuy-title { font: 800 1.15rem/1.25 var(--font-display); color: var(--ink); letter-spacing: -.015em; }
.b-endbuy-when::first-letter { text-transform: uppercase; }
.b-endbuy-when { margin: 4px 0 14px; color: var(--ink-2); font-size: .92rem; }
.b-endbuy-guarantee { display: flex; gap: 6px; justify-content: center; align-items: flex-start; margin-top: 12px; font-size: .84rem; color: var(--green-ink); text-align: left; }
.b-endbuy-guarantee .i { width: 18px; height: 18px; flex: none; }

.b-sharelink { text-align: center; margin: 20px 0 0; font-size: .875rem; }
.b-sharelink a { display: inline-flex; min-height: 44px; align-items: center; }
.b-footer { text-align: center; font-size: .8rem; color: var(--ink-3); padding: 4px var(--gutter) calc(110px + env(safe-area-inset-bottom)); }

/* barra de compra fija */
.b-buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgb(255 255 255 / .94); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 -1px 0 var(--line), 0 -10px 30px rgb(15 26 51 / .08);
  transition: transform .28s var(--ease), opacity .2s ease;
}
.b-buybar.is-hidden { transform: translateY(115%); opacity: 0; pointer-events: none; }
.b-buybar-info { display: grid; min-width: 0; line-height: 1.25; }
.b-buybar-price .price { font: 800 1.2rem/1.1 var(--font-display); letter-spacing: -.02em; }
.b-buybar-price .price-approx { display: block; font-size: .72rem; color: var(--ink-3); }
.b-buybar-when { font-size: .78rem; color: var(--ink-3); white-space: nowrap; }
.b-buybar-when time:first-child::first-letter { text-transform: uppercase; }
.b-buybar .b-btn { flex: none; min-height: 50px; padding-inline: 1rem; }

/* ---------------------------------------------------------------- hojas (dialog) */
.b-sheet {
  margin: auto auto 0; padding: 0; border: 0; width: 100%; max-width: 520px;
  max-height: calc(100dvh - 16px); overflow: auto; overscroll-behavior: contain;
  border-radius: 26px 26px 0 0; background: var(--paper); color: var(--ink);
  box-shadow: var(--shadow-3);
}
.b-sheet::backdrop { background: rgb(15 26 51 / .48); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.b-sheet[open] { animation: b-sheet-in .32s var(--ease); }
.b-sheet[open]::backdrop { animation: b-fade-in .25s ease; }
@keyframes b-sheet-in { from { transform: translateY(40px); opacity: 0; } }
@keyframes b-fade-in { from { opacity: 0; } }
.b-sheet-body { position: relative; padding: 10px var(--gutter) calc(20px + env(safe-area-inset-bottom)); }
.b-grabber { display: block; width: 40px; height: 5px; margin: 0 auto 10px; border-radius: 3px; background: var(--line-2); }
.b-sheet-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.b-sheet-head h2 { flex: 1; font-size: 1.35rem; font-weight: 800; }
.b-sheet-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--blue-50); color: var(--blue); flex: none; }
.b-close {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: -4px -8px -4px 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; text-decoration: none;
}
.b-close .i { width: 22px; height: 22px; padding: 0; }
.b-close::before { content: ""; position: absolute; width: 36px; height: 36px; border-radius: 50%; background: var(--canvas); z-index: -1; }
.b-close { position: relative; isolation: isolate; }
.b-close:active::before { background: var(--line); }
.b-sheet-lead { color: var(--ink-2); line-height: 1.5; margin-bottom: 16px; }

/* compra */
.b-summary {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; margin-bottom: 18px;
  border-radius: 14px; background: var(--canvas); border: 1px solid var(--line);
}
.b-summary img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex: none; }
.b-summary-text { font: 650 .95rem/1.35 var(--font); color: var(--ink); }

.b-field { display: grid; gap: 6px; margin-bottom: 16px; }
.b-field > label { font: 700 .95rem/1.3 var(--font-display); color: var(--ink); }
.b-field input[type="email"], .b-field input[type="text"], .b-room textarea, .b-lobby-form input {
  font: 400 1.0625rem/1.3 var(--font); width: 100%; min-height: 54px; padding: .8rem .95rem;
  border: 1.5px solid var(--line-2); border-radius: 13px; background: var(--paper); color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none; appearance: none;
}
.b-field input::placeholder, .b-room textarea::placeholder, .b-lobby-form input::placeholder { color: #8a93a8; }
.b-field input:focus, .b-room textarea:focus, .b-lobby-form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-100); }
.b-field.has-error input { border-color: var(--error); box-shadow: 0 0 0 4px var(--error-50); }
.b-field .error { display: flex; gap: 6px; align-items: center; }
.b-field .error::before { content: "!"; display: grid; place-items: center; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--error); color: #fff; font: 800 .72rem/1 var(--font-display); }

.b-check-field { position: relative; grid-template-columns: 1fr; gap: 4px; padding: 4px 0; }
.b-check-field input {
  position: absolute; left: 0; top: 14px; width: 28px; height: 28px; margin: 0; opacity: 0; cursor: pointer; z-index: 1;
}
.b-check-field label { display: flex; align-items: center; gap: 12px; min-height: 44px; font: 500 1rem/1.35 var(--font); color: var(--ink); cursor: pointer; }
.b-checkbox {
  display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 8px;
  border: 1.5px solid var(--line-2); background: var(--paper); color: transparent;
  transition: background-color .15s ease, border-color .15s ease;
}
.b-checkbox .i { width: 18px; height: 18px; stroke-width: 2.6; }
.b-check-field input:checked + label .b-checkbox { background: var(--blue); border-color: var(--blue); color: #fff; }
.b-check-field input:focus-visible + label .b-checkbox { outline: 3px solid var(--blue-bright); outline-offset: 2px; }
.b-check-field.has-error .b-checkbox { border-color: var(--error); box-shadow: 0 0 0 4px var(--error-50); }

.b-pay { display: grid; gap: 10px; margin-top: 4px; }
.b-pay .b-btn { min-height: 56px; font-size: 1.04rem; }
.b-paying { display: none; align-items: center; justify-content: center; gap: 10px; min-height: 28px; color: var(--ink-2); font-weight: 600; }
form[aria-busy="true"] .b-paying { display: flex; }
form[aria-busy="true"] .b-pay .b-btn { opacity: .5; pointer-events: none; }
.b-buy-foot { display: grid; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.b-buy-guarantee { display: flex; gap: 8px; align-items: flex-start; font: 600 .9rem/1.4 var(--font); color: var(--green-ink); }
.b-buy-guarantee .i { width: 20px; height: 20px; color: var(--green); }

/* confirmación: la entrada */
.b-confirm-head { justify-content: space-between; margin-bottom: 10px; }
.b-confirm-ok {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--green); color: #fff; box-shadow: 0 0 0 6px var(--green-50);
  animation: b-pop .5s var(--ease);
}
.b-confirm-ok .i { width: 30px; height: 30px; stroke-width: 2.6; }
@keyframes b-pop { 0% { transform: scale(.5); opacity: 0; } 70% { transform: scale(1.06); } }
.b-confirm-title { font-size: 1.6rem; font-weight: 800; letter-spacing: -.025em; outline: none; }
.b-confirm-sent { margin: 6px 0 18px; color: var(--ink-2); line-height: 1.5; overflow-wrap: anywhere; }
.b-confirm-sent .b-simline { display: block; margin-top: 4px; }

.b-ticket {
  --tear-bg: var(--paper);
  border-radius: 20px; overflow: hidden; margin-bottom: 18px;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-2);
}
.b-ticket-top {
  padding: 18px 18px 16px; color: #fff;
  background: radial-gradient(90% 90% at 100% 0%, rgb(90 140 255 / .5), rgb(90 140 255 / 0) 60%), linear-gradient(160deg, #0d4cbb, #0a3c95);
}
.b-ticket-kicker { font: 700 .7rem/1.3 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: rgb(255 255 255 / .78); }
.b-ticket-title { text-wrap: balance; margin-top: 6px; font-size: 1.3rem; font-weight: 800; line-height: 1.15; color: #fff; }
.b-ticket-who { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-weight: 600; font-size: .93rem; }
.b-ticket-who img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff; }
.b-ticket-when { margin: 14px 0 0; padding: 12px; border-radius: 12px; background: rgb(255 255 255 / .12); }
.b-ticket-when dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: rgb(255 255 255 / .75); font-weight: 700; }
.b-ticket-when dd { margin: 2px 0 0; display: grid; font-size: .9rem; color: rgb(255 255 255 / .9); }
.b-ticket-when strong { font: 700 1.02rem/1.3 var(--font-display); color: #fff; }
.b-ticket-when strong::first-letter, .b-ticket-when strong time::first-letter { text-transform: uppercase; }
.b-ticket-when strong { display: block; }
.b-ticket-tear {
  position: relative; height: 22px; background:
    linear-gradient(90deg, var(--line-2) 50%, transparent 0) center / 12px 1.5px repeat-x, #f8fafd;
}
.b-ticket-tear::before, .b-ticket-tear::after {
  content: ""; position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%;
  background: var(--tear-bg); border: 1px solid var(--line); transform: translateY(-50%);
}
.b-ticket-tear::before { left: -12px; }
.b-ticket-tear::after { right: -12px; }
.b-ticket-bottom { margin: 0; padding: 4px 18px 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; background: #f8fafd; }
.b-ticket-bottom > div, .b-ticket-bottom dd { min-width: 0; }
.b-ticket-bottom dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); font-weight: 700; }
.b-ticket-bottom dd { margin: 3px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.b-ticket-holder { font-weight: 600; overflow-wrap: anywhere; }
.b-ticket-link { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 12px; background: var(--canvas); border: 1px solid var(--line); }
.b-ticket-link a { flex: 1; min-width: 0; font-size: .82rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-ticket-link .b-btn { flex: none; min-height: 40px; padding: .35rem .75rem; font-size: .84rem; }
.b-ticket-bottom .b-help { font-size: .8rem; }

.b-confirm-actions { display: grid; gap: 12px; }
.b-reminder { display: flex; gap: 10px; align-items: flex-start; padding: 2px 4px 6px; color: var(--ink-2); font-size: .9rem; line-height: 1.45; }
.b-reminder .i { color: var(--blue); }

/* página de compra sin JavaScript */
.b-page-purchase .b-topbar { box-shadow: 0 1px 0 var(--line); }
.b-purchase-page { max-width: 520px; margin: 0 auto; padding: 16px 12px 40px; }
.b-purchase-page .b-sheet-body { background: var(--paper); border-radius: 24px; box-shadow: var(--shadow-1); padding-top: 20px; }
.b-purchase-page .b-grabber, .b-purchase-page .b-close { display: none; }

/* ---------------------------------------------------------------- pantallas anchas */
@media (max-width: 370px) {
  :root { --gutter: 16px; }
  .b-wordmark-sub, .b-wordmark-sep { display: none; }
  .b-section { margin-inline: 8px; padding: 18px 16px; }
  .b-paywith-label { display: none; }
  .b-paywith { justify-content: center; }
  .b-buybar .b-btn { padding-inline: .8rem; font-size: .95rem; }
}
@media (min-width: 640px) {
  .b-sheet { margin: auto; border-radius: 26px; max-height: min(90dvh, 820px); }
  .b-grabber { display: none; }
  .b-sheet-body { padding: 24px 28px 28px; }
  .b-topbar { padding-inline: max(var(--gutter), calc((100% - 600px) / 2 + var(--gutter))); }
  .b-hero { margin-top: 12px; border-radius: 28px; box-shadow: var(--shadow-1); padding: 24px 28px 26px; }
  .b-section { margin: 14px 0 0; padding: 24px 28px; }
  .b-buybar { padding-inline: max(16px, calc((100% - 600px) / 2)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

:is(.b-creator-name, .b-eyebrow, .b-fact-main, .b-guarantee strong, .b-nofine, .b-endbuy-title, .b-ai-tag, .b-ticket-kicker,
    .b-ticket-title, .b-ticket-when strong, .b-field > label, .b-points-n) { word-spacing: .06em; }
