.bs-public {
  --bs-bg: #10131d;
  --bs-card: #191e2d;
  --bs-text: #fbf7ee;
  --bs-muted: #c0c7d8;
  --bs-accent: #ffcd76;
  --bs-edge: #3c4355;
  box-sizing: border-box;
  max-width: 1160px;
  margin: 1.5rem auto;
  padding: clamp(1rem, 4vw, 3rem);
  border-radius: 1.5rem;
  background: var(--bs-bg);
  color: var(--bs-text);
  line-height: 1.5;
}
.bs-public *, .bs-control * { box-sizing: border-box; }
.bs-public [hidden] { display: none; }
.bs-public .bs-navidad { --bs-accent: #ffd797; --bs-card: #202f2c; --bs-edge: #54665d; }
.bs-public h2, .bs-public h3, .bs-public h4 { color: inherit; line-height: 1.1; }
.bs-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 6vw, 4.5rem);
  border: 1px solid var(--bs-edge);
  border-radius: 1.25rem;
  background: radial-gradient(ellipse at top right, #614235, transparent 68%), var(--bs-card);
  isolation: isolate;
}
.bs-navidad .bs-hero { background: radial-gradient(ellipse at top right, #663137, transparent 70%), var(--bs-card); }
.bs-hero > .bs-picture { position: absolute; inset: 0; height: 100%; z-index: -2; }
.bs-hero:has(> .bs-picture)::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, #0b0d16f5 5%, #0b0d16cc 58%, #0b0d1688);
}
.bs-hero h2 { font-size: clamp(2.15rem, 7vw, 4.6rem); margin: .3em 0 .18em; overflow-wrap: anywhere; }
.bs-hero p:last-child { margin-bottom: 0; }
.bs-kicker { color: var(--bs-accent); text-transform: uppercase; letter-spacing: .14em; font-weight: 750; font-size: .78rem; }
.bs-section-title { margin: 2rem 0 1rem; }
.bs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
.bs-public .bs-card {
  display: block; overflow: hidden; background: var(--bs-card); border: 1px solid var(--bs-edge);
  border-radius: 1rem; color: var(--bs-text); text-decoration: none;
}
.bs-public .bs-link:hover, .bs-public .bs-link:focus-visible { border-color: var(--bs-accent); }
.bs-card-body { padding: 1.2rem; overflow-wrap: anywhere; }
.bs-card h4 { font-size: 1.4rem; margin: .45rem 0; }
.bs-picture { width: 100%; height: 11rem; display: block; object-fit: cover; }
.bs-pill {
  display: inline-block; padding: .2rem .65rem; border-radius: 999px;
  border: 1px solid var(--bs-edge); background: #0f131b; color: var(--bs-accent);
  font-size: .83rem; font-weight: 700;
}
.bs-pills { display: flex; flex-wrap: wrap; gap: .45rem; }
.bs-public .bs-back, .bs-cta { color: var(--bs-accent); font-weight: 750; }
.bs-back { display: inline-block; margin-bottom: .8rem; }
.bs-muted, .bs-result small { color: var(--bs-muted); }
.bs-rules { margin-top: 1.5rem; border-top: 1px solid var(--bs-edge); padding-top: .65rem; }
.bs-result { margin: .65rem 0; padding: .75rem; border-radius: .65rem; background: #10131d; border: 1px solid var(--bs-edge); }
.bs-result > * { display: block; }
.bs-result strong { color: var(--bs-accent); font-size: 1.3rem; }
.bs-countdown { font-variant-numeric: tabular-nums; font-size: 1.2rem; font-weight: 750; }
.bs-reveal { animation: bs-reveal 1.45s ease-out both; }
@keyframes bs-reveal {
  0% { opacity: .2; transform: translateY(.45rem); }
  45% { opacity: 1; border-color: var(--bs-accent); box-shadow: 0 0 1rem #ffcd7650; }
  100% { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .bs-reveal { animation: none; } }
.bs-control { max-width: 1000px; margin: 1rem auto; }
.bs-control form { margin-bottom: 1rem; }
.bs-admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: .8rem; }
.bs-admin-grid label, .bs-wide { display: block; font-weight: 600; }
.bs-admin-grid input, .bs-admin-grid select, .bs-control textarea { display: block; width: 100%; max-width: none; margin-top: .3rem; }
.bs-wide { margin: 1rem 0; }
.bs-wide small { display: block; font-weight: normal; }
.bs-actions, .bs-admin-events { display: flex; flex-wrap: wrap; gap: .55rem; padding: 0; }
.bs-admin-events li { list-style: none; border: 1px solid #8e8e8e; padding: .45rem .7rem; border-radius: .5rem; }
.bs-admin-events small { display: block; }
.bs-notice { padding: .6rem; border-inline-start: 4px solid #af741d; }
.bs-lookup { margin: 0 0 1rem; }
.bs-lookup input, .bs-lookup button { max-width: 100%; }
.bs-lookup p:empty { display: none; }
.bs-public .bs-match { border: 2px solid var(--bs-accent); }
.bs-control [hidden] { display: none !important; }
.bs-image-field label { margin-bottom: .45rem; }
.bs-image-field img {
  display: block; width: auto; max-width: 100%; max-height: 9rem;
  margin-top: .55rem; border-radius: .5rem;
}
.bs-prize-list { margin: 1rem 0; }
.bs-prize-editor {
  min-width: 0; margin: 0 0 1rem; padding: .9rem;
  border: 1px solid #8e8e8e; border-radius: .7rem;
}
.bs-prize-editor legend { padding: 0 .35rem; font-weight: 700; }
.bs-prize-editor > button { margin-top: .6rem; }
.bs-prize-editor small { display: block; font-weight: 400; }

/* Sorteos · escenario y entradas */
.bs-public {
  --bs-bg: #180d2b;
  --bs-card: #2d1944;
  --bs-edge: #604177;
  --bs-accent: #ffdb69;
  --bs-muted: #e4d5ee;
  --bs-text: #fff8ec;
  background: radial-gradient(ellipse at 15% 2%, #50226d 0, transparent 55%), var(--bs-bg);
  padding: clamp(.8rem, 3.4vw, 2.5rem);
}
.bs-public .bs-navidad { --bs-card: #223b38; --bs-edge: #5f8475; }
.bs-hero {
  text-align: center;
  padding: clamp(1.3rem, 4vw, 2.8rem) clamp(.85rem, 4vw, 2.5rem);
  background: radial-gradient(ellipse at top left, #773290, transparent 75%), #33194d;
  border-color: #a05bb4;
}
.bs-hero h2 { font-weight: 900; font-size: clamp(1.9rem, 7vw, 4rem); }
.bs-hero .bs-kicker { margin: 0 0 .7rem; }
.bs-hero .bs-pill { border-color: #a668b4; background: #261137; }
[data-bs-state="live"] .bs-hero .bs-pill::before {
  content: ""; display: inline-block; width: .55em; height: .55em; margin-inline-end: .45em;
  border-radius: 50%; background: #ff658e;
}
.bs-stage {
  position: relative; isolation: isolate; text-align: center; overflow: hidden;
  margin: 1rem 0; padding: clamp(1.1rem, 4vw, 2.7rem) clamp(.65rem, 4vw, 2.5rem);
  border: 2px solid #f798d7; border-radius: 1.25rem;
  background: radial-gradient(ellipse at center, #73286d, #41184f 70%);
  box-shadow: inset 0 0 1.5rem #f385e232, 0 .65rem 2rem #08040f50;
}
.bs-navidad .bs-stage { background: radial-gradient(ellipse at center, #39645b, #172d2c 75%); border-color: #f7c990; }
.bs-stage > p:last-child { margin: 1rem 0 0; }
.bs-party-icon { display: inline-block; font-size: clamp(2.3rem, 7vw, 4rem); line-height: 1; }
.bs-stage h3 { margin: .6rem 0; font-size: clamp(1.4rem, 5vw, 2.6rem); }
.bs-ticket-label { color: #ffe88c; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .65rem; }
.bs-stage-ticket {
  position: relative; width: min(100%, 34rem); margin: auto; padding: .9rem 1.4rem;
  border: 2px dashed #8d4b52; outline: .28rem solid #ffcb68; outline-offset: -.25rem;
  border-radius: .85rem; color: #36172c; background: linear-gradient(140deg, #fff2b5, #ffc36f);
  box-shadow: 0 .6rem 0 #a44869, 0 .9rem 2.4rem #200d2a75; overflow-wrap: anywhere;
}
.bs-stage-ticket span, .bs-stage-ticket strong { display: block; }
.bs-stage-ticket strong { font-size: clamp(1.55rem, 7vw, 3.4rem); line-height: 1.13; font-weight: 900; }
.bs-stage-ticket span { font-weight: 720; }
.bs-confetti {
  position: absolute; inset: 0; z-index: -1; opacity: .6; pointer-events: none;
  background:
    radial-gradient(circle at 8% 27%, #ffda62 0 3px, transparent 4px),
    radial-gradient(circle at 18% 73%, #ff7cae 0 4px, transparent 5px),
    radial-gradient(circle at 27% 13%, #84efda 0 3px, transparent 4px),
    radial-gradient(circle at 92% 18%, #84efda 0 4px, transparent 5px),
    radial-gradient(circle at 86% 77%, #ffda62 0 4px, transparent 5px),
    radial-gradient(circle at 75% 10%, #ff7cae 0 4px, transparent 5px),
    radial-gradient(circle at 5% 90%, #b8a1ff 0 3px, transparent 4px),
    radial-gradient(circle at 95% 95%, #b8a1ff 0 3px, transparent 4px);
}
.bs-celebrate .bs-stage-ticket { animation: bs-ticket-pop .85s cubic-bezier(.22,.85,.34,1.2) both; }
.bs-celebrate .bs-confetti { animation: bs-confetti-pop .9s ease-out both; }
@keyframes bs-ticket-pop {
  0% { opacity: 0; transform: translateY(.7rem) scale(.83) rotate(-3deg); }
  60% { opacity: 1; transform: scale(1.035) rotate(1deg); }
  100% { transform: none; }
}
@keyframes bs-confetti-pop {
  0% { opacity: 0; transform: scale(.6); }
  65% { opacity: 1; transform: scale(1.04); }
  100% { opacity: .6; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bs-celebrate .bs-stage-ticket, .bs-celebrate .bs-confetti { animation: none; }
}
.bs-public .bs-link { border-top: 4px solid var(--bs-accent); }
.bs-public .bs-cta { display: inline-block; margin-top: .35rem; }
.bs-public .bs-rules summary, .bs-admin-step summary { cursor: pointer; font-weight: 750; }
.bs-public .bs-lookup { margin: 1.25rem 0 0; }
.bs-admin-guide, .bs-admin-step, .bs-admin-live {
  border: 1px solid #bca9c5; border-radius: .65rem; padding: .8rem 1rem; margin: 1rem 0;
}
.bs-admin-guide, .bs-admin-live { border-inline-start: .35rem solid #8a389c; }
.bs-admin-step[open] .bs-admin-grid { margin-top: 1rem; }
.bs-admin-live h3 { font-size: clamp(1.35rem, 4vw, 2.25rem); margin: .4rem 0; }
.bs-admin-live .button { font-size: 1.05rem; min-height: 2.7rem; }
.bs-roster { margin-top: 1.5rem; border: 1px solid var(--bs-edge); border-radius: 1rem; padding: 1rem; background: var(--bs-card); }
.bs-roster h3 { margin: 0 0 .8rem; }
.bs-roster ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .5rem; padding: 0; margin: 0; list-style: none; }
.bs-roster li { padding: .45rem .65rem; border: 1px solid var(--bs-edge); border-radius: .5rem; overflow-wrap: anywhere; }

.bs-public, .bs-public h2, .bs-public h3, .bs-public h4, .bs-control,
.bs-control h1, .bs-control h2, .bs-control h3, .bs-control input,
.bs-control select, .bs-control textarea, .bs-control .button {
  font-family: "Outfit", system-ui, sans-serif;
}
.bs-public .bs-card > .bs-picture {
  width: 100%; height: auto; aspect-ratio: 16 / 10;
  object-fit: contain; object-position: center; background: #180d2b;
}
.bs-public .bs-hero > .bs-picture {
  position: static; width: 100%; height: auto; max-height: 26rem;
  object-fit: contain; margin: 1rem auto 0; border-radius: .8rem;
}
.bs-hero:has(> .bs-picture)::before { content: none; }
.bs-drawing > :not(.bs-draw-overlay) { display: none; }
.bs-draw-overlay {
  display: grid; align-content: center; justify-items: center;
  min-height: 10rem; gap: .45rem; overflow-wrap: anywhere;
}
.bs-draw-overlay p { margin: 0; }
.bs-draw-reel {
  display: grid; place-items: center; width: min(100%, 34rem); min-height: 3.6rem;
  padding: .5rem; border-radius: .65rem; border: 2px solid #ffcf70;
  background: #20102f; color: #fff0b4; font-size: clamp(1.25rem, 5vw, 2.2rem);
}

/* Compact public layout, with capped image heights across screen widths. */
.bs-public { max-width: 1040px; margin: .75rem auto; padding: clamp(.65rem, 2vw, 1.25rem); }
.bs-public .bs-back { margin-bottom: .45rem; font-size: .9rem; }
.bs-public .bs-hero { padding: clamp(.8rem, 2.6vw, 1.45rem); border-radius: .85rem; }
.bs-public .bs-hero h2 { font-size: clamp(1.55rem, 4.5vw, 2.6rem); margin: .25rem 0 .35rem; }
.bs-public .bs-hero p { margin: .3rem 0; }
.bs-public .bs-hero .bs-kicker { margin: 0 0 .35rem; }
.bs-public .bs-hero > .bs-picture { max-height: clamp(6rem, 20vw, 10rem); margin-top: .55rem; }
.bs-public .bs-stage { margin: .6rem 0; padding: .65rem .85rem; border-radius: .85rem; }
.bs-public .bs-stage h3 { margin: .25rem 0; font-size: clamp(1.15rem, 3.2vw, 1.55rem); }
.bs-public .bs-stage > p:last-child { margin: .3rem 0 0; }
.bs-public .bs-party-icon { font-size: 1.5rem; }
.bs-public .bs-section-title { margin: .85rem 0 .45rem; font-size: 1.25rem; }
.bs-public .bs-grid { gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.bs-public .bs-card-body { padding: .65rem .8rem; }
.bs-public .bs-card h4 { margin: .1rem 0 .3rem; font-size: 1.13rem; }
.bs-public .bs-card-body p { margin: .25rem 0; }
.bs-public .bs-card > .bs-picture { height: clamp(6rem, 17vw, 9rem); aspect-ratio: auto; padding: .35rem; }
.bs-public .bs-draw-overlay { min-height: 6rem; }
.bs-public .bs-roster, .bs-public .bs-rules { margin-top: .85rem; }
.bs-public .bs-roster summary { cursor: pointer; font-weight: 750; }
.bs-public .bs-roster[open] ul { margin-top: .55rem; }

.bs-public.bs-hub {
  --bs-text: #fff5de;
  --bs-muted: #dcc9dd;
  --bs-accent: #ffda70;
  --bs-edge: #745478;
  background: #180e21;
  border: 1px solid #4b3153;
}
.bs-hub .bs-hub-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .94fr);
  align-items: center; text-align: left; gap: .65rem;
  padding: clamp(1rem, 3vw, 1.8rem);
  background: radial-gradient(ellipse at 81% 45%, #763e74, transparent 59%), #26142e;
}
.bs-hub .bs-hub-hero h2 {
  font-size: clamp(2rem, 5.3vw, 3.6rem); letter-spacing: -.035em; line-height: .99;
  margin: .42rem 0 .65rem;
}
.bs-hub .bs-hub-hero h2 em { display: block; color: var(--bs-accent); font-style: normal; }
.bs-hub .bs-hub-copy > p:not(.bs-kicker) { color: var(--bs-muted); }
.bs-hub .bs-hub-button {
  display: inline-flex; gap: .85rem; align-items: center; margin-top: .7rem;
  border-radius: 999px; padding: .44rem .8rem; background: var(--bs-accent);
  color: #2c1630; font-weight: 800; text-decoration: none;
}
.bs-hub-art { display: block; width: 100%; height: auto; max-height: 12.5rem; }
.bs-hub #bs-eventos { scroll-margin-top: 5rem; }
.bs-hub .bs-section-title {
  display: flex; align-items: center; gap: .65rem; margin: 1rem 0 .55rem;
}
.bs-hub .bs-section-title::after {
  content: ""; flex: 1; height: 1px; background: #745478;
}
.bs-public.bs-hub .bs-event-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 23rem), 1fr));
}
.bs-hub .bs-event-grid .bs-link {
  display: grid; grid-template-columns: minmax(6rem, .36fr) minmax(0, 1fr);
  align-items: stretch; border: 1px solid var(--bs-edge); border-radius: .85rem;
  background: #27192f;
}
.bs-hub .bs-event-grid .bs-link:hover { border-color: var(--bs-accent); background: #34223e; }
.bs-hub .bs-event-grid .bs-link:focus-visible,
.bs-hub .bs-hub-button:focus-visible { outline: 2px solid var(--bs-accent); outline-offset: 3px; }
.bs-hub .bs-event-art {
  display: grid; place-items: center; min-width: 0; padding: .55rem;
  background: radial-gradient(ellipse at center, #513256, transparent 75%), #211528;
  border-inline-end: 1px dashed var(--bs-edge);
}
.bs-hub .bs-event-art .bs-picture {
  width: 100%; height: clamp(4.5rem, 12vw, 7.2rem);
  object-fit: contain; object-position: center; background: transparent;
}
.bs-hub .bs-event-grid .bs-card-body { align-self: center; padding: .7rem clamp(.65rem, 2vw, 1.05rem); }
.bs-hub .bs-event-grid .bs-card h4 { margin: .35rem 0 .2rem; font-size: clamp(1.1rem, 2.3vw, 1.55rem); }
.bs-hub .bs-event-grid .bs-card p { color: var(--bs-muted); font-size: .9rem; }
.bs-hub .bs-event-grid .bs-cta span { margin-left: .25em; }
@media (max-width: 520px) {
  .bs-hub .bs-hub-hero { grid-template-columns: minmax(0, 1fr) minmax(0, .59fr); gap: .25rem; }
  .bs-hub .bs-hub-hero h2 { font-size: clamp(1.48rem, 6.5vw, 2rem); }
  .bs-hub .bs-hub-copy > p:not(.bs-kicker) { font-size: .88rem; }
  .bs-hub .bs-event-grid .bs-link { grid-template-columns: minmax(4.4rem, .34fr) minmax(0, 1fr); }
}

.bs-hub .bs-page-nav { display: flex; flex-wrap: wrap; gap: .3rem .55rem; margin-bottom: .55rem; }
.bs-hub .bs-page-nav .bs-back {
  display: inline-flex; align-items: center; margin: 0; padding: .32rem .68rem;
  border: 1px solid var(--bs-edge); border-radius: 999px; text-decoration: none;
}
.bs-hub .bs-page-nav .bs-back:hover,
.bs-hub .bs-page-nav .bs-back:focus-visible { border-color: var(--bs-accent); }
.bs-event-detail .bs-hub-hero { grid-template-columns: minmax(0, 1fr) minmax(0, .65fr); }
.bs-event-detail .bs-hub-hero h2 { font-size: clamp(1.55rem, 4.6vw, 3rem); }
.bs-event-detail .bs-detail-art { display: grid; place-items: center; min-width: 0; }
.bs-event-detail .bs-detail-art .bs-picture {
  width: 100%; height: clamp(5rem, 19vw, 11rem); object-fit: contain; object-position: center;
}
.bs-event-detail .bs-stage { background: radial-gradient(ellipse at 72% 10%, #5e315b, transparent 75%), #27192f; border-color: var(--bs-edge); }
.bs-event-detail .bs-card { background: #27192f; }
.bs-event-detail .bs-card > .bs-picture { background: #211528; }
@media (max-width: 520px) {
  .bs-event-detail .bs-hub-hero { grid-template-columns: minmax(0, 1fr) minmax(0, .45fr); }
}

.bs-event-detail .bs-prize-heading {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .15rem .6rem;
}
.bs-event-detail .bs-quantity {
  display: inline-block; padding: .18rem .52rem; border: 1px solid currentColor;
  border-radius: 999px; color: var(--bs-accent); font-size: .75rem; font-weight: 750; white-space: nowrap;
}
.bs-hub .bs-countdown-panel {
  width: fit-content; max-width: 100%; margin: .65rem 0 0; padding: .35rem .8rem .45rem;
  border: 1px solid #c49459; border-radius: .65rem; background: #1d1127;
  color: var(--bs-accent);
}
.bs-hub .bs-countdown-panel span {
  display: block; color: var(--bs-muted); font-size: .7rem; font-weight: 750;
  letter-spacing: .1em; text-transform: uppercase;
}
.bs-hub .bs-countdown {
  display: block; font-size: clamp(1.45rem, 5vw, 3rem); line-height: 1.07; letter-spacing: -.025em;
}
.bs-hub .bs-countdown-ended { font-size: 1.15rem; }

.bs-event-grid .bs-countdown-panel { margin: .4rem 0 .25rem; padding: .26rem .6rem .35rem; }
.bs-event-grid .bs-countdown { font-size: clamp(1.4rem, 4vw, 2.1rem); }
.bs-event-grid .bs-countdown-ended { font-size: 1rem; }

a.bs-promo-card {
  box-sizing: border-box; display: grid; grid-template-columns: minmax(0, clamp(4.5rem, 23%, 9rem)) minmax(0, max-content);
  align-items: center; justify-content: center; gap: clamp(.45rem, 2vw, 1rem);
  width: 100%; max-width: none; margin-inline: auto; min-height: 6rem;
  padding: .55rem .7rem; border: 1px solid #886291; border-radius: .85rem;
  background: radial-gradient(ellipse at 12% 30%, #613559, transparent 66%), #25152f;
  color: #fff5de; font-family: "Outfit", system-ui, sans-serif; text-decoration: none; line-height: 1.18;
}
a.bs-promo-card:hover, a.bs-promo-card:focus-visible { border-color: #ffda70; color: #fff5de; }
a.bs-promo-card:focus-visible { outline: 2px solid #ffda70; outline-offset: 3px; }
.bs-promo-card img { display: block; width: 100%; height: auto; }
.bs-promo-copy { display: grid; justify-items: start; gap: .25rem; overflow-wrap: anywhere; }
.bs-promo-copy strong { font-size: clamp(1.15rem, 4vw, 1.48rem); }
.bs-promo-brand { color: #f9a9d7; font-size: .67rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.bs-promo-cta { color: #ffda70; font-size: .86rem; font-weight: 800; }
