/* ==========================================================================
   Janucá 5787 · Jabad Barcelona
   ========================================================================== */
:root {
  --night-0: #060a1b;
  --night-1: #0c1331;
  --night-2: #151e47;
  --line: rgba(242, 196, 109, .18);
  --line-soft: rgba(255, 255, 255, .08);
  --gold: #f2c46d;
  --gold-hi: #ffe2a3;
  --gold-lo: #c98a2e;
  --flame: #ffab2e;
  --cream: #f6efe0;
  --muted: #b4b2c8;
  --blue: #7ea6ff;
  --card: rgba(255, 255, 255, .045);
  --radius: 20px;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-he: 'Frank Ruhl Libre', 'Times New Roman', 'Arial Hebrew', 'David', serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--cream);
  background: var(--night-0);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1100px 600px at 50% -12%, rgba(126, 166, 255, .16), transparent 62%),
    radial-gradient(900px 520px at 50% 38%, rgba(242, 196, 109, .06), transparent 70%),
    linear-gradient(180deg, var(--night-1), var(--night-0) 65%);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 24px 36px, #fff, transparent),
    radial-gradient(1px 1px at 132px 92px, rgba(255,255,255,.8), transparent),
    radial-gradient(1.6px 1.6px at 214px 168px, #fff, transparent),
    radial-gradient(1px 1px at 318px 44px, rgba(255,255,255,.6), transparent),
    radial-gradient(1.2px 1.2px at 392px 236px, #fff, transparent),
    radial-gradient(1px 1px at 66px 268px, rgba(255,255,255,.7), transparent),
    radial-gradient(1.4px 1.4px at 268px 286px, rgba(255,226,163,.9), transparent);
  background-size: 430px 310px;
  opacity: .45;
  animation: twinkle 7s ease-in-out infinite alternate;
}
@keyframes twinkle { to { opacity: .2; } }

img, svg { max-width: 100%; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-hi); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.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; }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--gold); color: #1b1408; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 10, 27, .72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; line-height: 1.1; }
.brand:hover { color: var(--cream); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; letter-spacing: -.01em; }
.brand small { display: block; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { color: var(--muted); text-decoration: none; font-size: .9rem; padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--cream); background: rgba(255,255,255,.07); }
.nav a.nav-cta { background: var(--gold); color: #1b1408; font-weight: 650; margin-left: 6px; }
.nav a.nav-cta:hover, .nav a.nav-cta[aria-current="page"] { background: var(--gold-hi); color: #1b1408; }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line-soft); color: var(--cream); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px 16px 20px;
    background: rgba(6, 10, 27, .97);
    border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  .nav a { padding: 13px 14px; font-size: 1rem; border-radius: 12px; }
  .nav a.nav-cta { margin: 6px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  font: inherit; font-weight: 650; font-size: .95rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-gold { background: var(--gold); color: #17110a; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 22px -12px rgba(242,196,109,.6); }
.btn-gold:hover { background: #f7d389; color: #17110a; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 10px 28px -10px rgba(255,190,90,.7); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--line); color: var(--cream); }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: var(--cream); border-color: rgba(242,196,109,.4); }
.btn-sm { padding: 9px 14px; font-size: .86rem; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .76rem; font-weight: 650; letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
  margin: 0;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--flame); box-shadow: 0 0 12px 3px rgba(255,171,46,.7); }
.display {
  font-family: var(--font-display); font-weight: 600; font-variation-settings: "opsz" 144;
  font-size: clamp(2.8rem, 8vw, 5.6rem); line-height: .98; letter-spacing: -.025em;
  margin: .25em 0 .2em;
}
.display em {
  font-style: italic; font-weight: 500;
  background: linear-gradient(180deg, var(--gold-hi), var(--flame));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .16em; margin-right: -.1em;
}
.lede { color: var(--muted); font-size: clamp(1.02rem, 2.2vw, 1.18rem); max-width: 46ch; margin: 0 auto; }
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(28px, 5vw, 48px); }
.section-head h2, .h2 {
  font-variant-numeric: lining-nums;
  font-family: var(--font-display); font-weight: 600; font-variation-settings: "opsz" 96;
  font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.05; letter-spacing: -.02em; margin: .3em 0 .3em;
}
.section-head p { color: var(--muted); margin: 0; }

/* ---------- Hero / landing ---------- */
.hero { padding: clamp(28px, 5vw, 56px) 0 24px; text-align: center; position: relative; }
.countdown { display: inline-flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; justify-content: center; }
.countdown div {
  min-width: 62px; padding: 8px 8px 6px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line-soft);
}
.countdown b { display: block; font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; color: var(--gold-hi); }
.countdown span { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.today-pill {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
  padding: 10px 18px; border-radius: 999px;
  background: rgba(242,196,109,.12); border: 1px solid rgba(242,196,109,.4); color: var(--cream); font-weight: 550;
}
@keyframes pulse { 50% { opacity: .45; } }

/* ---------- Menorah ---------- */
.menorah-stage { position: relative; width: min(900px, 100%, max(340px, (100vh - 340px) * 1.6)); margin: 0 auto; aspect-ratio: 800 / 500; }
.hero .display { font-size: clamp(2.6rem, 7vw, 4.6rem); }
.hero .countdown { margin-top: 16px; }
.menorah-stage::before {
  content: ""; position: absolute; inset: -6% 0 6%; pointer-events: none;
  background: radial-gradient(closest-side at 50% 36%, rgba(255, 186, 84, .34), rgba(255, 140, 40, .08) 60%, transparent);
  opacity: calc(.12 + var(--lit) * .88);
  transition: opacity .9s ease;
}
.menorah-stage svg { position: relative; display: block; width: 100%; height: 100%; overflow: visible; -webkit-tap-highlight-color: transparent; }
#menorah .metal { fill: url(#goldU); }
#menorah .arm { fill: none; stroke: url(#goldU); stroke-width: 9; stroke-linecap: round; }
#menorah .candle { cursor: pointer; transform-box: view-box; transition: transform .6s cubic-bezier(.2,.9,.3,1.15), opacity .35s; }
#menorah .candle.absent { transform: scaleY(0); opacity: 0; pointer-events: none; }
#menorah .candle:focus { outline: none; }
#menorah .ring { fill: transparent; stroke: var(--gold); stroke-width: 2; stroke-opacity: 0; stroke-dasharray: 5 7; pointer-events: all; transition: stroke-opacity .3s; }
#menorah .candle.next .ring { stroke-opacity: .85; animation: ringdash 1.1s linear infinite; }
#menorah .candle:focus-visible .ring { stroke-opacity: 1; stroke-dasharray: none; }
@keyframes ringdash { to { stroke-dashoffset: -24; } }
#menorah .wick { stroke: #3b2a17; stroke-width: 2.2; stroke-linecap: round; }
#menorah .lit .wick { stroke: #1b120a; }
#menorah .flame-g { opacity: 0; transform: scale(.1); transform-box: view-box; transition: opacity .2s, transform .5s cubic-bezier(.3,1.8,.5,1); pointer-events: none; }
#menorah .lit .flame-g { opacity: 1; transform: none; }
#menorah .flame { transform-box: view-box; animation: flicker 1.25s ease-in-out infinite alternate; }
#menorah .halo { opacity: 0; pointer-events: none; transition: opacity .9s; }
#menorah .lit .halo { opacity: 1; animation: halo 2.4s ease-in-out infinite alternate; }
#menorah .order { opacity: 0; transition: opacity .4s; pointer-events: none; }
#menorah .order.show { opacity: 1; }
#menorah .order circle { fill: rgba(6,10,27,.85); stroke: rgba(242,196,109,.45); }
#menorah .order text { fill: var(--muted); font: 600 13px var(--font-body); text-anchor: middle; dominant-baseline: central; }
#menorah .order.is-next circle { fill: var(--gold); stroke: var(--gold-hi); }
#menorah .order.is-next text { fill: #1b1408; }
#menorah .order.done circle { stroke: rgba(255,171,46,.9); }
#menorah .order.done text { fill: var(--gold-hi); }
#menorah .shake { animation: shake .45s; }
@keyframes flicker {
  0%   { transform: scale(1, 1) rotate(-1.2deg); }
  35%  { transform: scale(.93, 1.06) rotate(1.4deg); }
  65%  { transform: scale(1.05, .95) rotate(-.6deg); }
  100% { transform: scale(.97, 1.08) rotate(1deg); }
}
@keyframes halo { from { opacity: .7; } to { opacity: 1; } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.ember { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 8px 2px rgba(255,171,46,.9); pointer-events: none; animation: ember 2.6s ease-out forwards; }
@keyframes ember { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), -150px) scale(.2); } }

.menorah-ui { text-align: center; }
.menorah-status { min-height: 3.2em; margin: 4px auto 14px; max-width: 560px; }
.menorah-status strong { display: block; font-family: var(--font-display); font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 600; color: var(--gold-hi); line-height: 1.2; }
.menorah-status span { color: var(--muted); font-size: .95rem; }
.menorah-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.nights { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.night-btn {
  position: relative; min-width: 64px; padding: 9px 8px 8px; border-radius: 14px;
  border: 1px solid var(--line-soft); background: rgba(255,255,255,.03); color: var(--muted);
  font: inherit; font-size: .72rem; line-height: 1.2; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .15s;
}
.night-btn b { display: block; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--cream); }
.night-btn:hover { border-color: var(--line); color: var(--cream); transform: translateY(-1px); }
.night-btn[aria-pressed="true"] { background: rgba(242,196,109,.14); border-color: var(--gold); color: var(--cream); }
.night-btn .tag { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); background: var(--flame); color: #1b1408; font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 6px; border-radius: 6px; white-space: nowrap; }

@media (max-width: 560px) {
  .night-btn { min-width: calc(25% - 6px); }
  .menorah-actions .btn { flex: 1 1 auto; }
}

/* ---------- Event cards ---------- */
.events-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.event-card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 22px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.02));
  border: 1px solid var(--line-soft);
  transition: transform .25s ease, border-color .25s, box-shadow .25s;
}
.event-card:hover { transform: translateY(-3px); border-color: var(--line); box-shadow: 0 18px 40px -24px rgba(242,196,109,.5); }
.event-card.is-next { border-color: rgba(242,196,109,.55); box-shadow: 0 0 0 1px rgba(242,196,109,.25), 0 20px 50px -28px rgba(255,171,46,.7); }
.event-card.is-past { opacity: .55; }
.ev-badge { position: absolute; top: -10px; left: 22px; font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: var(--flame); color: #1b1408; }
.is-past .ev-badge { background: rgba(255,255,255,.12); color: var(--muted); }

.ev-date { display: flex; align-items: center; gap: 10px; }
.ev-day { font-family: var(--font-display); font-size: 3.1rem; font-weight: 600; line-height: .9; color: var(--gold-hi); font-variant-numeric: lining-nums; }
.ev-mon { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; line-height: 1.3; color: var(--cream); font-weight: 600; }
.ev-mon small { display: block; color: var(--muted); font-weight: 500; letter-spacing: .08em; }
.ev-mini { display: flex; align-items: flex-end; gap: 3px; height: 30px; padding-bottom: 2px; }
.ev-mini i { display: block; width: 4px; height: 14px; border-radius: 2px; background: rgba(255,255,255,.14); position: relative; }
.ev-mini i.sh { height: 22px; margin: 0 3px; }
.ev-mini i.on { background: var(--cream); }
.ev-mini i.on::before { content: ""; position: absolute; left: 50%; top: -7px; width: 5px; height: 7px; transform: translateX(-50%); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--flame); box-shadow: 0 0 6px 1px rgba(255,171,46,.9); }
.ev-kicker { margin: 4px 0 0; font-size: .74rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.event-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
.ev-meta { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .92rem; }
.ev-meta li { display: flex; gap: 8px; align-items: flex-start; }
.ev-meta svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--gold); }
.ev-meta small { display: block; color: var(--muted); }
.ev-desc { margin: 0; color: var(--muted); font-size: .93rem; }
.compact .ev-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ev-actions { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ev-cal { position: relative; }
.ev-cal summary { list-style: none; }
.ev-cal summary::-webkit-details-marker { display: none; }
.ev-cal-menu {
  position: absolute; z-index: 5; bottom: calc(100% + 8px); left: 0; min-width: 200px;
  display: grid; padding: 6px; border-radius: 14px;
  background: #121a3f; border: 1px solid var(--line); box-shadow: 0 20px 40px -12px rgba(0,0,0,.7);
}
.ev-cal-menu a, .ev-cal-menu button { display: block; text-align: left; padding: 10px 12px; border-radius: 10px; color: var(--cream); text-decoration: none; background: none; border: 0; font: inherit; font-size: .9rem; cursor: pointer; }
.ev-cal-menu a:hover, .ev-cal-menu button:hover { background: rgba(255,255,255,.07); }
.icon-btn { width: 40px; height: 40px; padding: 0; }

/* ---------- Topic cards ---------- */

.topic-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(242,196,109,.1); border: 1px solid var(--line); color: var(--gold); }
.topic-ico svg { width: 24px; height: 24px; }

/* ---------- Quote / CTA bands ---------- */
.quote { text-align: center; max-width: 820px; margin: 0 auto; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(1.7rem, 4.4vw, 2.8rem); line-height: 1.2; letter-spacing: -.01em; }
.quote p { color: var(--muted); max-width: 58ch; margin: 18px auto 0; }
.quote .mini-flame { width: 30px; height: 44px; margin: 0 auto 14px; display: block; }

.band-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
@media (max-width: 760px) {  .band-actions { justify-content: flex-start; } }

/* ---------- Inner pages ---------- */
.page-hero { padding: clamp(40px, 7vw, 80px) 0 clamp(20px, 3vw, 32px); text-align: center; }
.page-hero h1 { font-family: var(--font-display); font-weight: 600; font-variation-settings: "opsz" 144; font-size: clamp(2.4rem, 6.4vw, 4.2rem); line-height: 1; letter-spacing: -.025em; margin: .3em 0 .25em; }
.page-hero h1 em { font-style: italic; font-weight: 500; color: var(--gold); }
.page-hero p { color: var(--muted); max-width: 54ch; margin: 0 auto; font-size: 1.08rem; }
.crumbs { font-size: .82rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }

.prose { max-width: 740px; margin: 0 auto; }
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3.4vw, 2.1rem); line-height: 1.15; letter-spacing: -.015em; margin: 2em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin: 1.6em 0 .4em; color: var(--gold-hi); }
.prose p, .prose li { color: #ddd8e8; }
.prose strong { color: var(--cream); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--gold); }
.card {
  padding: clamp(20px, 3.5vw, 30px); border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line-soft);
}
.callout {
  margin: 1.6em 0; padding: 20px 22px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(242,196,109,.12), rgba(242,196,109,.03));
  border: 1px solid var(--line); border-left: 3px solid var(--gold);
}
.callout p { margin: .3em 0 0; }
.callout-title { font-weight: 700; color: var(--gold-hi); display: flex; gap: 8px; align-items: center; margin: 0; }
.callout-title svg { width: 18px; height: 18px; }
.miracles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 1.4em 0; }
.miracle { position: relative; padding: 26px 22px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line-soft); }
.miracle .num { font-family: var(--font-display); font-size: 3.4rem; line-height: .8; font-weight: 600; color: transparent; -webkit-text-stroke: 1px var(--gold); }
.miracle h3 { margin: .5em 0 .3em; color: var(--cream); }
.miracle p { margin: 0; font-size: .96rem; }

.steps { list-style: none; padding: 0 !important; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 16px 18px 16px 62px; border-radius: 16px; background: var(--card); border: 1px solid var(--line-soft); margin: 0 !important; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(242,196,109,.14); border: 1px solid var(--line); color: var(--gold-hi); font-family: var(--font-display); font-weight: 600; }

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line-soft); background: var(--card); }
table.sched { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 600px; }
.sched th, .sched td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.sched th { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 650; background: rgba(255,255,255,.02); }
.sched tr:last-child td { border-bottom: 0; }
.sched td small { display: block; color: var(--muted); }
.sched .n { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; white-space: nowrap; }
.sched .warn { color: var(--gold-hi); font-weight: 650; }
.sched tr.today td { background: rgba(242,196,109,.1); }
.sched tr.today .n::after { content: "Hoy"; margin-left: 8px; font: 700 .62rem var(--font-body); letter-spacing: .1em; text-transform: uppercase; background: var(--flame); color: #1b1408; padding: 2px 6px; border-radius: 6px; vertical-align: middle; }
@media (max-width: 640px) {
  table.sched { min-width: 0; }
  .sched thead { display: none; }
  .sched tr { display: grid; grid-template-columns: 44px 1fr; gap: 2px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
  .sched tr:last-child { border-bottom: 0; }
  .sched td { padding: 0; border: 0; grid-column: 2; }
  .sched td.n { grid-column: 1; grid-row: 1 / span 4; font-size: 1.35rem; }
  .sched td:first-child + td { font-weight: 650; }
  .sched td:last-child::before { content: "Bendiciones "; color: var(--muted); }
  .sched tr.today td { background: none; }
  .sched tr.today { background: rgba(242,196,109,.1); }
  .sched tr.today .n::after { display: block; margin: 6px 0 0; width: max-content; }
}
.page-hero h1, .display, .ev-day, .countdown b, .section-head h2 { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.dots { display: inline-flex; flex-direction: row-reverse; gap: 3px; vertical-align: middle; margin-right: 6px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.15); }
.dots i.on { background: var(--flame); box-shadow: 0 0 5px rgba(255,171,46,.9); }

.blessing { margin: 0 0 16px; }
.blessing .tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.blessing .he { font-family: var(--font-he); font-size: clamp(1.35rem, 3.2vw, 1.7rem); line-height: 1.7; direction: rtl; text-align: right; color: var(--cream); margin: 0 0 12px; }
.blessing .tr { font-style: italic; color: var(--gold-hi); margin: 0 0 8px; }
.blessing .es { margin: 0; color: var(--muted); }
.song { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; line-height: 1.7; color: var(--cream); margin: 0; }

.dreidel-play { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: center; margin: 1.6em 0; }
@media (max-width: 680px) { .dreidel-play { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.dreidel-box { position: relative; width: 220px; height: 260px; display: grid; place-items: center; }
.dreidel-box::after { content: ""; position: absolute; bottom: 10px; width: 120px; height: 18px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent); }
#dreidel { width: 170px; height: auto; transform-origin: 50% 92%; position: relative; z-index: 1; }
#dreidel.spinning { animation: wobble .28s ease-in-out infinite alternate; }
@keyframes wobble { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
#dreidel-face { transform-box: fill-box; transform-origin: center; }
.dreidel-result { min-height: 2.6em; font-size: 1.05rem; }
.dreidel-result b { font-family: var(--font-display); font-size: 1.4rem; color: var(--gold-hi); }
.letters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 1em 0; padding: 0 !important; list-style: none; }
.letters li { margin: 0 !important; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line-soft); transition: border-color .3s, background .3s; }
.letters li.hit { border-color: var(--gold); background: rgba(242,196,109,.12); }
.letters .he { font-family: var(--font-he); font-size: 2rem; line-height: 1; color: var(--gold-hi); width: 34px; text-align: center; }
.letters small { display: block; color: var(--muted); font-size: .85rem; }
@media (max-width: 480px) { .letters { grid-template-columns: 1fr; } }

.recipe { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; align-items: start; }
@media (max-width: 820px) { .recipe { grid-template-columns: 1fr; } }
.ingredients { list-style: none; padding: 0 !important; margin: 0; }
.ingredients li { margin: 0 !important; }
.ingredients label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 4px; border-bottom: 1px dashed var(--line-soft); cursor: pointer; }
.ingredients input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 6px; border: 1.5px solid var(--gold); display: grid; place-items: center; cursor: pointer; }
.ingredients input::after { content: ""; width: 10px; height: 6px; border: 2px solid #1b1408; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.ingredients input:checked { background: var(--gold); }
.ingredients input:checked::after { opacity: 1; }
.ingredients input:checked + span { color: var(--muted); text-decoration: line-through; }
.ingredients small { color: var(--muted); }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.chip { display: inline-flex; gap: 6px; align-items: center; font-size: .82rem; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-soft); color: var(--cream); }
.chip svg { width: 15px; height: 15px; color: var(--gold); }

.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; max-width: 740px; margin: clamp(48px, 7vw, 72px) auto 0; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.pager a { display: flex; flex-direction: column; text-decoration: none; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line-soft); color: var(--cream); min-width: 200px; transition: border-color .2s, background .2s; }
.pager a:hover { border-color: var(--line); background: var(--card); color: var(--cream); }
.pager small { color: var(--muted); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.pager .next { margin-left: auto; text-align: right; }
.pager b { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }

.contact-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.contact-grid .card h3 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.contact-grid .card p { margin: 0 0 12px; color: var(--muted); font-size: .94rem; }
.placeholder { color: var(--gold-hi); font-style: italic; }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(64px, 10vw, 110px); border-top: 1px solid var(--line-soft); padding: 40px 0 48px; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer p { margin: 6px 0 0; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.hero .rise { animation: rise .9s cubic-bezier(.2,.8,.2,1) both; }
.hero .rise:nth-child(2) { animation-delay: .08s; }
.hero .rise:nth-child(3) { animation-delay: .16s; }
.hero .rise:nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   v2 · mejoras
   ========================================================================== */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }
::selection { background: rgba(242,196,109,.35); color: #fff; }

/* Hero */
.hero { overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% 30%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 25% 30%, rgba(126,166,255,.16), transparent 70%),
    radial-gradient(35% 45% at 78% 22%, rgba(186,120,255,.10), transparent 70%);
  animation: aurora 18s ease-in-out infinite alternate;
}
@keyframes aurora { to { transform: translate3d(4%, 3%, 0) scale(1.06); } }

.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: center; align-items: center; margin-top: 18px; }
.hero .countdown { margin: 0; gap: 6px; }
.hero .countdown div { min-width: 54px; padding: 6px 6px 5px; border-radius: 12px; }
.hero .countdown b { font-size: 1.25rem; }
.hero .countdown span { font-size: .62rem; }

/* Escena: ciudad + alféizar */
.menorah-scene { position: relative; margin-top: 10px; --lit: 0; }
.menorah-stage { width: min(900px, 100%, max(320px, (100vh - 440px) * 1.6)); }
.menorah-stage svg { transform: translateY(2.4%); }
.skyline { position: absolute; left: 0; right: 0; bottom: 15px; width: 100%; height: clamp(80px, 16vw, 190px); pointer-events: none; }
.skyline .far { fill: #0d1534; }
.skyline .near { fill: #0a1029; }
.skyline .win { fill: #ffcf7a; opacity: .5; }
.skyline .win.t { animation: win 4s ease-in-out infinite alternate; }
.skyline .win.t2 { animation: win 6s ease-in-out 1.5s infinite alternate; }
@keyframes win { to { opacity: .12; } }
.sill {
  position: relative; height: 18px; z-index: 1;
  background: linear-gradient(180deg, #2b3157, #161c3b 55%, #0b1027);
  border-top: 1px solid rgba(242,196,109,.28);
  box-shadow: 0 -30px 70px -20px rgba(255,171,46, calc(var(--lit) * .5));
  transition: box-shadow .9s;
}
.sill::after { content: ""; position: absolute; left: 50%; top: 0; width: min(560px, 70%); height: 26px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255,190,90, calc(var(--lit) * .35)), transparent); }

/* Panel de la noche */
.night-panel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 22px auto 0; text-align: left; }
@media (max-width: 1000px) { .night-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .night-panel { grid-template-columns: 1fr; } }
.np-card { padding: 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line-soft); }
.np-card h4 { margin: 0 0 10px; display: flex; align-items: center; gap: 8px; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.np-card h4 svg { width: 16px; height: 16px; }
.np-big { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.28rem; line-height: 1.2; color: var(--cream); }
.np-card p { margin: 6px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.np-card .np-alert { color: var(--gold-hi); }
.np-time { display: inline-block; margin-top: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(242,196,109,.12); border: 1px solid var(--line); color: var(--gold-hi); font-weight: 650; font-size: .85rem; }
.np-light { background: linear-gradient(160deg, rgba(255,171,46,.16), rgba(255,171,46,.03)); border-color: var(--line); }
.np-quote { font-family: var(--font-display); font-style: italic; font-size: 1.06rem; line-height: 1.35; color: var(--cream) !important; margin: 0 !important; }
.np-event { display: flex; gap: 10px; align-items: center; margin-top: 12px; padding: 8px; border-radius: 12px; background: rgba(6,10,27,.55); border: 1px solid var(--line); color: var(--cream); text-decoration: none; font-size: .86rem; line-height: 1.3; transition: border-color .2s; }
.np-event:hover { color: var(--cream); border-color: var(--gold); }
.np-event img { width: 48px; height: 48px; border-radius: 9px; object-fit: cover; flex: none; }
.np-event small { display: block; color: var(--gold); font-weight: 650; }
.blessing-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.blessing-list li { display: flex; gap: 10px; align-items: baseline; font-size: .9rem; color: var(--cream); }
.blessing-list b { flex: none; width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .7rem; background: rgba(242,196,109,.15); color: var(--gold-hi); }
.blessing-list li.off { opacity: .38; text-decoration: line-through; }
.np-card a.more { display: inline-block; margin-top: 10px; font-size: .85rem; font-weight: 650; text-decoration: none; }

/* Tarjetas de evento con foto */
.event-card { padding: 0; gap: 0; overflow: hidden; }
.ev-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #111a3d; }
.ev-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.event-card:hover .ev-media img { transform: scale(1.06); }
.ev-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,10,27,.1) 40%, rgba(6,10,27,.85)); }
.ev-media .ev-date { position: absolute; left: 16px; bottom: 12px; z-index: 1; }
.ev-media .ev-mon small { color: rgba(255,255,255,.75); }
.ev-chip { position: absolute; right: 12px; top: 12px; z-index: 1; display: inline-flex; gap: 6px; align-items: center; padding: 5px 10px; border-radius: 999px; background: rgba(6,10,27,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid var(--line); font-size: .72rem; font-weight: 700; color: var(--cream); }
.ev-chip .ev-mini { height: 18px; gap: 2px; padding: 0; }
.ev-chip .ev-mini i { width: 3px; height: 9px; }
.ev-chip .ev-mini i.sh { height: 14px; margin: 0 2px; }
.ev-chip .ev-mini i.on::before { top: -5px; width: 4px; height: 5px; }
.ev-credit { position: absolute; right: 12px; bottom: 10px; z-index: 1; font-size: .6rem; letter-spacing: .04em; color: rgba(255,255,255,.55); }
.ev-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.ev-badge { top: 12px; left: 12px; z-index: 2; }

/* Detalle de eventos */
.filter-bar { position: sticky; top: 66px; z-index: 20; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 12px 0; margin-bottom: 18px; background: linear-gradient(180deg, rgba(6,10,27,.92) 70%, rgba(6,10,27,0)); }
.filter-bar a { text-decoration: none; font-size: .85rem; font-weight: 600; color: var(--cream); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-soft); background: rgba(255,255,255,.04); transition: border-color .2s, background .2s; }
.filter-bar a:hover { border-color: var(--gold); background: rgba(242,196,109,.1); color: var(--cream); }
.ev-detail { display: grid; grid-template-columns: 1.05fr 1fr; margin-bottom: 22px; border-radius: 26px; overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid var(--line-soft); scroll-margin-top: 66px; }
.ev-detail.featured { border-color: rgba(242,196,109,.5); box-shadow: 0 30px 70px -40px rgba(255,171,46,.6); }
.ev-detail:nth-child(even) .ev-detail-media { order: 2; }
.ev-detail-media { position: relative; min-height: 340px; overflow: hidden; }
.ev-detail-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev-detail-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(6,10,27,.7)); }
.ev-detail-body { padding: clamp(22px, 4vw, 40px); display: flex; flex-direction: column; gap: 12px; }
.ev-detail-body h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3.2vw, 2.2rem); line-height: 1.1; margin: 0; letter-spacing: -.015em; }
.ev-detail-body > p { margin: 0; color: var(--muted); }
.ev-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin: 6px 0; }
.fact { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; line-height: 1.4; }
.fact svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--gold); }
.fact small { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.ev-program { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ev-program li { font-size: .82rem; padding: 6px 11px; border-radius: 999px; background: rgba(242,196,109,.08); border: 1px solid var(--line); color: var(--cream); }
.ev-notice { margin: 0; font-size: .86rem; color: var(--gold-hi); background: rgba(242,196,109,.07); border: 1px solid var(--line); padding: 10px 12px; border-radius: 12px; }
@media (max-width: 860px) {
  .ev-detail { grid-template-columns: 1fr; }
  .ev-detail-media { min-height: 0; aspect-ratio: 16 / 10; }
  .ev-detail:nth-child(even) .ev-detail-media { order: 0; }
}
@media (max-width: 480px) { .ev-facts { grid-template-columns: 1fr; } }

/* 8 noches */

.center-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

/* Kit / formularios */
.kit { display: grid; grid-template-columns: 1fr 1.15fr; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); scroll-margin-top: 80px; }
.kit-info { padding: clamp(24px, 4vw, 44px); background: radial-gradient(420px 260px at 0% 0%, rgba(255,171,46,.22), transparent 70%), linear-gradient(160deg, #1a2453, #0d1433); }
.kit-info h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.05; margin: .35em 0 .4em; letter-spacing: -.02em; }
.kit-info p { color: var(--muted); margin: 0 0 18px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1408' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
.kit-form { padding: clamp(24px, 4vw, 44px); background: rgba(255,255,255,.03); }
@media (max-width: 860px) { .kit { grid-template-columns: 1fr; } }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line-soft); margin-bottom: 18px; flex-wrap: wrap; }
.tabs button { font: inherit; font-size: .88rem; font-weight: 650; padding: 8px 16px; border-radius: 999px; border: 0; background: none; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.tabs button[aria-selected="true"] { background: var(--gold); color: #1b1408; }
[role="tabpanel"][hidden] { display: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .78rem; font-weight: 650; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(6,10,27,.6); color: var(--cream); font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242,196,109,.18); }
.form-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 16px; }
.form-note { font-size: .8rem; color: var(--muted); margin: 0; max-width: 34ch; }
.form-msg { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(242,196,109,.1); border: 1px solid var(--line); font-size: .92rem; }
.form-msg:empty { display: none; }

/* Diálogo */
dialog.modal { width: min(500px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 1px solid var(--line); border-radius: 22px; background: #0f1738; color: var(--cream); box-shadow: 0 30px 80px -20px rgba(0,0,0,.85); }
dialog.modal[open] { animation: pop .28s cubic-bezier(.2,.9,.3,1.2); }
dialog.modal::backdrop { background: rgba(3,6,18,.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.modal-in { padding: 24px; position: relative; }
.modal-in h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.15; margin: 4px 0 6px; padding-right: 36px; }
.modal-in > p { color: var(--muted); margin: 0 0 16px; font-size: .93rem; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-soft); background: rgba(255,255,255,.05); color: var(--cream); cursor: pointer; font-size: 1.2rem; line-height: 1; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: 16px; background: var(--card); border: 1px solid var(--line-soft); padding: 0 18px; transition: border-color .2s; }
.faq details[open] { border-color: var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 650; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 10px; font-size: 1.5rem; font-weight: 400; color: var(--gold); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--muted); }
.roles { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }

/* Páginas internas */
.figure { margin: 1.6em 0; border-radius: 20px; overflow: hidden; position: relative; border: 1px solid var(--line-soft); }
.figure img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.figure figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 14px; font-size: .86rem; color: var(--cream); background: linear-gradient(180deg, transparent, rgba(6,10,27,.85)); }
.story { list-style: none; padding: 0 !important; margin: 1.5em 0; position: relative; }
.story::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--gold), rgba(242,196,109,.1)); }
.story li { position: relative; padding: 0 0 22px 44px; margin: 0 !important; }
.story li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--night-1); border: 2px solid var(--gold); box-shadow: 0 0 10px rgba(242,196,109,.5); }
.story li:last-child::before { background: var(--flame); border-color: var(--gold-hi); }
.story b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--gold-hi); }
.diagram { margin: 1.2em 0; padding: 18px; border-radius: 20px; background: var(--card); border: 1px solid var(--line-soft); }
.diagram svg { display: block; width: 100%; height: auto; }
.pot { display: flex; gap: 10px; margin: 14px 0; flex-wrap: wrap; }
.pot div { flex: 1; min-width: 110px; padding: 12px 14px; border-radius: 14px; background: rgba(6,10,27,.5); border: 1px solid var(--line-soft); }
.pot small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pot b { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold-hi); font-feature-settings: "lnum" 1; }
.page-tools { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.site-footer .foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; width: 100%; }
.site-footer h4 { margin: 0 0 10px; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.site-footer .foot-links { display: grid; gap: 6px; }
.site-footer .legal { width: 100%; padding-top: 22px; margin-top: 8px; border-top: 1px solid var(--line-soft); font-size: .8rem; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
@media (max-width: 760px) { .site-footer .foot-grid { grid-template-columns: 1fr 1fr; } .site-footer .foot-grid > :first-child { grid-column: 1 / -1; } }

@media print {
  body { background: #fff !important; color: #000 !important; font-size: 12pt; }
  body::before, body::after, .site-header, .site-footer, .pager, .no-print, .skip, .page-tools { display: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .card, .callout, .steps li { background: none !important; border: 1px solid #bbb !important; break-inside: avoid; }
  .prose p, .prose li, .blessing .he, .blessing .es, .song, .page-hero p { color: #000 !important; }
  .blessing .tr, .blessing .tag, .prose h3, .callout-title, .page-hero h1 em { color: #444 !important; }
  .page-hero { padding: 0 0 12px; }
  a { color: #000 !important; text-decoration: none; }
}

.hero { padding-top: clamp(22px, 4vw, 44px); }
.menorah-stage { width: min(900px, 100%, max(320px, (100vh - 400px) * 1.6)); }
.he-inline { font-family: var(--font-he); font-size: 1.15em; unicode-bidi: isolate; direction: rtl; color: var(--gold-hi); }

/* ==========================================================================
   v3 · entrada al deslizar, selector, bendiciones, cursor de llama, logo
   ========================================================================== */
.brand-logo { width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover; box-shadow: 0 0 0 1px rgba(242,196,109,.35), 0 4px 14px -4px rgba(0,0,0,.6); }
.site-footer .brand-logo { width: 44px; height: 44px; }

/* Hero con entrada al deslizar */
.hero-scroll { position: relative; height: 128vh; height: 128svh; }
.hero-sticky { position: sticky; top: 66px; height: calc(100vh - 66px); height: calc(100svh - 66px); display: flex; flex-direction: column; overflow: hidden; }
.hero-copy { padding-bottom: 0; will-change: transform, opacity; }
.hero-copy .display { margin: .1em 0 0; }
.hero-copy .display em { font-weight: 500; }
.hero-sub { margin: .1em 0 .35em; font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(1.5rem, 3.6vw, 2.3rem); line-height: 1.1; color: var(--gold); letter-spacing: -.01em; }
.hero-copy .lede { max-width: none; }
.hero-copy .hero-meta { margin-top: 16px; }
.hero-sticky .menorah-scene { margin-top: auto; }
.hero-sticky .menorah-stage { width: min(900px, 100%, max(300px, (100vh - 330px) * 1.6)); width: min(900px, 100%, max(300px, (100svh - 330px) * 1.6)); transform-origin: 50% 100%; will-change: transform; }
.hero-sticky .skyline { will-change: transform; }
.scroll-hint { position: absolute; left: 50%; bottom: 30px; z-index: 2; width: 22px; height: 34px; margin-left: -11px; border: 2px solid rgba(246,239,224,.45); border-radius: 12px; pointer-events: none; }
.scroll-hint span { position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: hint 1.6s ease-in-out infinite; }
@keyframes hint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
.menorah-ui-wrap { position: relative; padding: 26px 0 10px; }
@media (prefers-reduced-motion: reduce) {
  .hero-scroll { height: auto; }
  .hero-sticky { position: static; height: auto; }
  .scroll-hint { display: none; }
}

/* Selector de noches */
.nights { gap: 8px; }
.night-btn { min-width: 84px; padding: 10px 8px 9px; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.night-btn .nb-d { font-size: .74rem; }
.night-btn .nb-h { font-size: .66rem; color: var(--gold); opacity: .85; letter-spacing: .02em; }
.night-btn.has-event { border-color: rgba(242,196,109,.38); background: linear-gradient(180deg, rgba(242,196,109,.1), rgba(255,255,255,.02)); }
.ev-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--flame); box-shadow: 0 0 8px 2px rgba(255,171,46,.75); }
.night-btn .ev-dot { position: absolute; top: 7px; right: 7px; }
.nights-legend { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 12px 0 0; font-size: .82rem; color: var(--muted); }
@media (max-width: 560px) { .night-btn { min-width: calc(25% - 6px); padding: 9px 4px 8px; } .night-btn .nb-h { font-size: .6rem; } }

/* Bendiciones clicables */
.blessing-list button { display: flex; gap: 10px; align-items: center; width: 100%; padding: 7px 8px; margin: 0 -8px; border-radius: 10px; border: 0; background: none; color: var(--cream); font: inherit; font-size: .9rem; text-align: left; cursor: pointer; transition: background .2s; }
.blessing-list button:hover { background: rgba(242,196,109,.1); }
.blessing-list button svg { width: 15px; height: 15px; margin-left: auto; color: var(--gold); opacity: .7; }
.blessing-list li.off { text-decoration: none; }
.blessing-list li.off button { opacity: .45; }
.np-small { font-size: .78rem !important; }
.bless-modal { width: min(600px, calc(100% - 32px)); }
.bless-modal .bless-he { font-family: var(--font-he); font-size: clamp(1.4rem, 4vw, 1.85rem); line-height: 1.7; direction: rtl; text-align: right; margin: 16px 0 14px; color: var(--cream); }
.bless-modal .bless-tr { font-style: italic; color: var(--gold-hi); margin: 0 0 10px; }
.bless-modal .bless-es { color: var(--muted); margin: 0; }
.bless-nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-soft); }

/* Kit: solo contacto */
.kit-contact h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 3vw, 1.8rem); line-height: 1.15; margin: .4em 0 .8em; }
.contact-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--line-soft); }
.contact-list small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-list .topic-ico { width: 42px; height: 42px; border-radius: 12px; }

/* Cursor de llama + luz que lo sigue (solo ratón) */
@media (hover: hover) and (pointer: fine) {
  .cursor-light {
    position: fixed; left: 0; top: 0; z-index: 90; width: 360px; height: 360px; margin: -180px 0 0 -180px;
    border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .4s;
    background: radial-gradient(closest-side, rgba(255,190,100,.13), rgba(255,160,60,.05) 45%, transparent 72%);
    mix-blend-mode: screen; will-change: transform;
  }
  .cursor-light.on { opacity: 1; }
}
@media print { .cursor-light { display: none !important; } }
.hero-copy { flex-shrink: 0; overflow: visible; }
.hero-sticky .menorah-stage { width: min(900px, 100%, max(280px, (100vh - 390px) * 1.6)); width: min(900px, 100%, max(280px, (100svh - 390px) * 1.6)); }
@media (max-width: 700px) {
  .hero-copy .display { font-size: clamp(3rem, 14vw, 4rem); }
  .hero-copy { padding-top: 28px; }
  .hero-sticky .menorah-stage { width: 106%; max-width: none; margin-left: -3%; }
  .hero-sticky .sill { height: 12vh; height: 12svh; background: linear-gradient(180deg, #2b3157, #161c3b 18%, #0b1027 60%, var(--night-0)); }
  .hero-sticky .skyline { bottom: calc(12svh - 3px); height: 34vw; }
  .scroll-hint { bottom: 4svh; }
}

.modal-in .eyebrow { padding-right: 46px; }
.bless-modal .bless-only { color: var(--cream); font-family: var(--font-display); font-style: italic; font-size: 1.12rem; line-height: 1.6; margin-top: 12px; }
.bless-modal .modal-in { max-height: calc(100vh - 40px); overflow: auto; }
.blessing-list li:not(.song-item) + .song-item { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line-soft); }

/* Descubre Janucá: tarjetas ilustradas */
.topics2 { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .topics2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .topics2 { grid-template-columns: 1fr; } }
.tcard { position: relative; display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; text-decoration: none; color: var(--cream); background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid var(--line-soft); transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .35s; }
.tcard:hover { transform: translateY(-6px); border-color: rgba(242,196,109,.45); box-shadow: 0 26px 60px -30px rgba(255,171,46,.6); color: var(--cream); }
.tc-art { position: relative; aspect-ratio: 2 / 1; overflow: hidden; background: var(--tc-bg); }
.tc-art svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.tcard:hover .tc-art svg { transform: scale(1.06); }
.tc-art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(180deg, transparent, rgba(12,17,45,.55)); pointer-events: none; }
.tc-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.tc-chip { align-self: flex-start; font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); padding: 4px 9px; border-radius: 999px; background: rgba(242,196,109,.1); border: 1px solid var(--line); }
.tcard h3 { margin: 2px 0 0; font-family: var(--font-display); font-weight: 600; font-size: 1.42rem; line-height: 1.15; letter-spacing: -.01em; }
.tcard p { margin: 0; color: var(--muted); font-size: .93rem; }
.tcard .go { margin-top: auto; padding-top: 6px; display: inline-flex; gap: 6px; align-items: center; font-size: .87rem; font-weight: 650; color: var(--gold); }
.tcard .go svg { width: 16px; height: 16px; transition: transform .25s; }
.tcard:hover .go svg { transform: translateX(5px); }
.t-hist { --tc-bg: radial-gradient(60% 90% at 70% 60%, rgba(255,171,46,.22), transparent 70%), linear-gradient(160deg, #221a3c, #0e1330); }
.t-enc  { --tc-bg: radial-gradient(70% 90% at 50% 30%, rgba(242,196,109,.2), transparent 70%), linear-gradient(160deg, #1a2350, #0d1433); }
.t-hor  { --tc-bg: linear-gradient(180deg, #152457 0%, #33295a 55%, #6b3f4f 100%); }
.t-ben  { --tc-bg: radial-gradient(60% 80% at 50% 20%, rgba(186,150,255,.22), transparent 70%), linear-gradient(160deg, #221a48, #0f1233); }
.t-tra  { --tc-bg: radial-gradient(70% 90% at 35% 45%, rgba(126,166,255,.26), transparent 70%), linear-gradient(160deg, #122a4c, #0c1430); }
.t-rec  { --tc-bg: radial-gradient(70% 90% at 50% 55%, rgba(255,120,80,.22), transparent 70%), linear-gradient(160deg, #2b1a35, #120f2a); }
.tc-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 1.3s ease-in-out infinite alternate; }
.tc-flame.d1 { animation-delay: -.4s; } .tc-flame.d2 { animation-delay: -.8s; animation-duration: 1.5s; } .tc-flame.d3 { animation-delay: -.2s; animation-duration: 1.15s; }
.tc-glow { transform-box: fill-box; transform-origin: center; animation: halo 2.6s ease-in-out infinite alternate; }
.tc-twinkle circle { animation: twk 3s ease-in-out infinite alternate; }
.tc-twinkle circle:nth-child(2n) { animation-delay: -1.2s; animation-duration: 4s; }
.tc-twinkle circle:nth-child(3n) { animation-delay: -2.1s; }
@keyframes twk { from { opacity: .2; } to { opacity: 1; } }
.tc-dreidel { transform-box: fill-box; transform-origin: 50% 92%; transition: transform .4s; }
.t-tra:hover .tc-dreidel { animation: wobble .22s ease-in-out infinite alternate; }
.tc-steam path { animation: steam 2.8s ease-in-out infinite; }
.tc-steam path:nth-child(2) { animation-delay: -.9s; } .tc-steam path:nth-child(3) { animation-delay: -1.8s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(8px); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-10px); } }

/* Cielo: estrellas que titilan y alguna estrella fugaz */
.starfield { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.starfield i { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: #fff; box-shadow: 0 0 6px 1px rgba(255,255,255,.35); opacity: .15; animation: star var(--d) ease-in-out var(--l) infinite alternate; }
.starfield i.g { background: #ffe2a3; box-shadow: 0 0 6px 1px rgba(255,210,140,.45); }
@keyframes star { to { opacity: .95; } }
@media print { .starfield { display: none; } }

/* Logo de Jabad Barcelona: brillo dorado que lo recorre y halo cálido */
.brand-logo { border-radius: 0; box-shadow: none; object-fit: contain; filter: drop-shadow(0 0 7px rgba(255,186,90,.45)); }
.logo-shine { position: relative; display: block; isolation: isolate; }
.logo-shine img { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 14px rgba(255,190,90,.28)); }
.logo-shine::before { content: ""; position: absolute; inset: -18% -10% 18%; z-index: -1; background: radial-gradient(closest-side at 50% 32%, rgba(255,180,80,.32), transparent 75%); animation: halo 3.2s ease-in-out infinite alternate; pointer-events: none; }
.logo-shine::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255,236,180,.95) 50%, transparent 62%) 160% 0 / 260% 100% no-repeat;
  -webkit-mask: url("../img/jabad-barcelona.webp") center / contain no-repeat; mask: url("../img/jabad-barcelona.webp") center / contain no-repeat;
  animation: shine 6s ease-in-out 1.2s infinite;
}
@keyframes shine { 0% { background-position: 160% 0; } 45%, 100% { background-position: -60% 0; } }
.hero-logo { width: clamp(78px, 9vw, 108px); margin: 0 auto 4px; }
.hero-sticky .menorah-stage { width: min(900px, 100%, max(280px, (100vh - 480px) * 1.6)); width: min(900px, 100%, max(280px, (100svh - 480px) * 1.6)); }
.foot-brand { display: inline-block; }
.foot-logo { width: 120px; }
@media (max-width: 700px) {
  .hero-logo { width: 70px; }
  .hero-copy { padding-top: 18px; }
  .hero-sticky .menorah-stage { width: 106%; }
}
@media (prefers-reduced-motion: reduce) { .logo-shine::after { display: none; } }
.tc-day { opacity: .14; animation: dayLit 5.6s ease-in-out infinite; }
@keyframes dayLit { 0% { opacity: .14; } 8%, 70% { opacity: 1; } 85%, 100% { opacity: .14; } }
@media (prefers-reduced-motion: reduce) { .tc-day { opacity: 1; } }

/* Zona interactiva: aparición suave escalonada */
.menorah-actions.reveal { transition-delay: .08s; }
.nights.reveal { transition-delay: .14s; }
.nights-legend.reveal { transition-delay: .2s; }
.js .nights.reveal .night-btn { opacity: 0; }
.nights.reveal.in .night-btn { opacity: 1; animation: cardIn .55s cubic-bezier(.2,.8,.2,1) backwards; }
.nights.reveal.in .night-btn:nth-child(2) { animation-delay: .04s; } .nights.reveal.in .night-btn:nth-child(3) { animation-delay: .08s; }
.nights.reveal.in .night-btn:nth-child(4) { animation-delay: .12s; } .nights.reveal.in .night-btn:nth-child(5) { animation-delay: .16s; }
.nights.reveal.in .night-btn:nth-child(6) { animation-delay: .2s; } .nights.reveal.in .night-btn:nth-child(7) { animation-delay: .24s; }
.nights.reveal.in .night-btn:nth-child(8) { animation-delay: .28s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .nights.reveal .night-btn, .js .np-card.np-reveal { opacity: 1; transform: none; } }
@media print { .night-btn, .np-card { opacity: 1 !important; } }
#menorah .spark-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker .45s ease-in-out infinite alternate; }

/* Eventos: feedback del encendido visible */
.filter-bar a { position: relative; transition: border-color .25s, background .25s, color .25s, box-shadow .25s; }
.filter-bar a.is-active { background: var(--gold); border-color: var(--gold); color: #1b1408; box-shadow: 0 6px 22px -8px rgba(242,196,109,.8); }
.filter-bar a.is-active::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #1b1408; vertical-align: 1px; animation: pulse 1.4s ease-in-out infinite; }
.ev-detail { transition: border-color .4s, box-shadow .4s, opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.ev-detail.is-viewing { border-color: rgba(242,196,109,.6); box-shadow: 0 0 0 1px rgba(242,196,109,.3), 0 30px 70px -40px rgba(255,171,46,.7); }
@media (max-width: 700px) {
  .filter-bar { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding-left: 2px; padding-right: 2px; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-bar a { flex: none; }
}
.recipe-photo { margin: 0 0 22px; }
.recipe-photo img { aspect-ratio: 16 / 8; object-position: 50% 55%; }
.recipe-photo figcaption small { display: block; margin-top: 4px; font-size: .7rem; color: rgba(246,239,224,.6); }
@media (max-width: 600px) { .recipe-photo img { aspect-ratio: 4 / 3; } }

/* Panel de la noche: cada tarjeta aparece al entrar en pantalla */
.js .np-card.np-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.js .np-card.np-reveal.in { opacity: 1; transform: none; }
.blessing .ln { display: block; }
.blessing .es .ln + .ln { margin-top: .35em; }
[hidden] { display: none !important; }
.fact-wide { grid-column: 1 / -1; }
.fact em { display: block; font-style: normal; font-size: .85rem; color: var(--muted); }
.kit-cta { margin: 0 0 14px; }
.kit-soon { margin: 0 0 14px; max-width: none; }

/* Final de la cuenta atrás */
[data-countdown] { position: relative; transition: opacity .5s ease, transform .5s cubic-bezier(.2,.8,.2,1); }
[data-countdown].cd-out { opacity: 0; transform: scale(.92); }
[data-countdown].cd-in { animation: cdIn .7s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes cdIn { from { opacity: 0; transform: scale(.9) translateY(6px); } }
.cd-final .countdown b { color: #fff; text-shadow: 0 0 14px rgba(255,190,90,.9); }
.cd-final .countdown div { border-color: rgba(242,196,109,.55); box-shadow: 0 0 22px -6px rgba(255,171,46,.7); animation: cdPulse 1s ease-in-out infinite; }
@keyframes cdPulse { 50% { transform: scale(1.06); } }
.today-pill.is-arrived { font-size: 1.05rem; padding: 12px 22px; background: rgba(242,196,109,.2); border-color: var(--gold); box-shadow: 0 0 40px -8px rgba(255,171,46,.8); }

/* Diálogos: cabecera y acciones fijas, solo el texto hace scroll (también en móvil) */
html.modal-open, html.modal-open body { overflow: hidden; }
dialog.bless-modal { width: min(600px, calc(100% - 32px)); max-height: min(86vh, 760px); max-height: min(86dvh, 760px); overflow: hidden; }
dialog.bless-modal[open] { display: flex; flex-direction: column; }
.bless-modal .modal-head { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 18px 18px 14px 24px; border-bottom: 1px solid var(--line-soft); background: #0f1738; }
.bless-modal .modal-head .eyebrow { padding-right: 0; }
.bless-modal .modal-head h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; line-height: 1.15; margin: 4px 0 0; }
.bless-modal .modal-close { position: static; flex: none; }
.bless-modal .modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 4px 24px 22px; }
.bless-modal .modal-foot { flex: none; margin: 0; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-soft); background: #0f1738; }
@media (max-width: 600px) {
  /* en móvil, el diálogo sube desde abajo como una hoja */
  dialog.bless-modal { width: 100%; max-width: 100%; margin: auto 0 0; max-height: 88vh; max-height: 88dvh; border-radius: 22px 22px 0 0; border-bottom: 0; }
  dialog.bless-modal[open] { animation: sheet .32s cubic-bezier(.2,.9,.3,1); }
  .bless-modal .modal-head { padding: 16px 14px 12px 20px; }
  .bless-modal .modal-body { padding: 2px 20px 18px; }
  .bless-modal .modal-foot .btn { flex: 1 1 0; min-width: 0; white-space: normal; text-align: center; }
}
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
