/* Sitio web de la comunidad (docs/web-por-bloques.md). Tres temas: classic, bright, warm (html[data-theme]).
   El acento lo calcula el servidor (/website/palette.css) con contraste suficiente. Sin CDN: fuentes propias. */

/* ---------- base y variables ---------- */
:root {
  --accent: #1d5a9e; --accent-ink: #1d5a9e; --accent-soft: #e3ecf6;
  --bg: #f4f7fa; --surface: #ffffff; --ink: #0f1b2b; --muted: #526070; --line: #d5dde7;
  --dark: #0d2340; --dark-ink: #eef3f8; --metal: #a9b6c4;
  --display: 'Frank Ruhl Libre', Georgia, serif; --body: 'Newsreader', Georgia, serif; --ui: 'Inter', system-ui, sans-serif;
  --display-w: 500; --display-track: -0.01em; --display-lh: 1.06;
  --radius: 2px; --radius-img: 0; --radius-btn: 2px;
  --wrap: 1180px; --gutter: clamp(20px, 5vw, 56px); --section: clamp(72px, 11vw, 144px);
  --fs-body: 1.1875rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--fs-body)/1.6 var(--body); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--display); font-weight: var(--display-w); letter-spacing: var(--display-track); line-height: var(--display-lh); margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); }
p { margin: 0; text-wrap: pretty; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
.muted { color: var(--muted); }
.preview-bar { background: #fbe9a6; color: #3d3200; font: 500 0.8125rem/1.4 var(--ui); text-align: center; padding: 6px 12px; }

.eyebrow { font: 500 0.75rem/1.3 var(--ui); letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 18px; }
.lead { font-size: clamp(1.125rem, 1rem + 0.45vw, 1.375rem); line-height: 1.5; color: var(--muted); max-width: 42ch; }
.display { font-size: clamp(2.75rem, 1.4rem + 5.4vw, 5.75rem); }
.prose { max-width: 66ch; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 1em; }
.prose ul { padding-left: 1.2em; margin: 0; }
.prose li { margin: 0.3em 0; }
.prose li::marker { color: var(--accent-ink); }

.blk { padding-block: var(--section); }
.head { margin-bottom: clamp(36px, 5vw, 64px); display: grid; gap: 16px; }
.head-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.head-row .lead { margin-top: 16px; }

/* botones */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: var(--radius-btn); font: 500 0.9375rem/1 var(--ui); letter-spacing: 0.01em; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .18s, color .18s, border-color .18s, transform .18s; }
.btn.primary { background: var(--accent); color: var(--on-accent, #fff); }
.btn.primary:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn.ghost { border-color: currentColor; color: inherit; }
.btn.ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.btn.link { padding: 0; min-height: 0; color: var(--accent-ink); border-bottom: 1px solid currentColor; border-radius: 0; padding-bottom: 4px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.frame { margin: 0; overflow: hidden; border-radius: var(--radius-img); background: var(--line); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.pos-top { object-position: 50% 20%; }
.pos-bottom { object-position: 50% 80%; }
/* punto de interés de las fotos subidas (editor): redondeado a cuartos */
.fp-0-0 { object-position: 0% 0%; }
.fp-0-25 { object-position: 0% 25%; }
.fp-0-50 { object-position: 0% 50%; }
.fp-0-75 { object-position: 0% 75%; }
.fp-0-100 { object-position: 0% 100%; }
.fp-25-0 { object-position: 25% 0%; }
.fp-25-25 { object-position: 25% 25%; }
.fp-25-50 { object-position: 25% 50%; }
.fp-25-75 { object-position: 25% 75%; }
.fp-25-100 { object-position: 25% 100%; }
.fp-50-0 { object-position: 50% 0%; }
.fp-50-25 { object-position: 50% 25%; }
.fp-50-75 { object-position: 50% 75%; }
.fp-50-100 { object-position: 50% 100%; }
.fp-75-0 { object-position: 75% 0%; }
.fp-75-25 { object-position: 75% 25%; }
.fp-75-50 { object-position: 75% 50%; }
.fp-75-75 { object-position: 75% 75%; }
.fp-75-100 { object-position: 75% 100%; }
.fp-100-0 { object-position: 100% 0%; }
.fp-100-25 { object-position: 100% 25%; }
.fp-100-50 { object-position: 100% 50%; }
.fp-100-75 { object-position: 100% 75%; }
.fp-100-100 { object-position: 100% 100%; }

/* ---------- cabecera y pie ---------- */
.top { position: relative; z-index: 10; border-bottom: 1px solid var(--line); background: var(--bg); }
.top-in { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; margin-right: auto; }
.brand-logo { height: 44px; width: auto; }
.brand-name { font: var(--display-w) 1.375rem/1.1 var(--display); letter-spacing: var(--display-track); }
.nav { display: flex; gap: 30px; }
.nav a, .langs a { font: 500 0.875rem/1 var(--ui); color: inherit; text-decoration: none; padding: 8px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-bottom-color: currentColor; }
.langs { display: flex; gap: 10px; }
.langs a { opacity: .6; letter-spacing: .08em; font-size: .75rem; }
.langs a[aria-current] { opacity: 1; }
.nav-mob { display: none; }
body.over-hero .top { position: absolute; inset: 0 0 auto 0; background: transparent; border-bottom-color: rgb(255 255 255 / .22); color: #fff; }
body.over-hero .preview-bar + .top { top: 30px; }

@media (max-width: 860px) {
  .nav, .langs-top { display: none; }
  .nav-mob { display: block; position: relative; }
  .nav-mob summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; }
  .nav-mob summary::-webkit-details-marker { display: none; }
  .nav-mob summary span { display: block; width: 22px; height: 1.5px; background: currentColor; }
  .nav-mob-list { position: absolute; right: 0; top: 52px; min-width: 220px; background: var(--surface); color: var(--ink); box-shadow: 0 18px 50px rgb(0 0 0 / .18); border-radius: calc(var(--radius) + 4px); padding: 10px; display: grid; }
  .nav-mob-list a { padding: 12px 14px; font: 500 1rem/1 var(--ui); color: inherit; text-decoration: none; }
  .nav-mob-list .langs { padding: 8px 14px; border-top: 1px solid var(--line); margin-top: 6px; }
}

.foot { background: var(--dark); color: var(--dark-ink); padding-top: clamp(56px, 8vw, 96px); }
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.foot-name { font: var(--display-w) 1.75rem/1.1 var(--display); }
.foot-tag { margin-top: 10px; opacity: .7; max-width: 34ch; }
.foot-col { display: grid; gap: 8px; align-content: start; font: 400 0.9375rem/1.5 var(--ui); opacity: .85; }
.foot-base { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; border-top: 1px solid rgb(255 255 255 / .14); padding-block: 22px 28px; font: 400 0.8125rem/1.4 var(--ui); opacity: .6; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr; } }

/* ---------- hero ---------- */
.hero-photo { position: relative; padding: 0; min-height: min(92svh, 880px); display: grid; align-items: end; color: #fff; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; background: var(--dark); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(10 8 6 / .5) 0%, rgb(10 8 6 / .18) 28%, rgb(10 8 6 / .5) 58%, rgb(10 8 6 / .86) 100%), linear-gradient(90deg, rgb(10 8 6 / .5) 0%, rgb(10 8 6 / 0) 62%); }
.hero-photo .display { text-shadow: 0 2px 28px rgb(10 8 6 / .3); }
[data-theme="classic"] .hero-media::after { background: linear-gradient(180deg, rgb(8 22 44 / .55) 0%, rgb(8 22 44 / .45) 40%, rgb(8 22 44 / .62) 70%, rgb(8 22 44 / .88) 100%); }
.hero-in { padding-block: 160px clamp(56px, 9vw, 112px); }
.hero-photo .eyebrow { color: rgb(255 255 255 / .85); }
.hero-photo .lead { color: rgb(255 255 255 / .86); max-width: 36ch; margin-top: 24px; }
.hero-photo .display { max-width: 14ch; }
.hero-photo .btn.primary { background: #fff; color: #10131c; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero-split { padding-block: clamp(56px, 8vw, 112px); }
.hero-split .lead, .hero-type .lead { margin-top: 24px; }
.hero-fig { aspect-ratio: 4 / 5; }
.hero-type { padding-block: clamp(96px, 14vw, 200px) clamp(56px, 8vw, 104px); }
.hero-type .display { max-width: 16ch; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-fig { aspect-ratio: 4 / 3; } }

/* ---------- texto ---------- */
.text-columns .prose { max-width: none; columns: 2 320px; column-gap: clamp(32px, 5vw, 72px); }
.text-columns .prose p, .text-columns .prose ul { break-inside: avoid; }
.text-single .wrap { max-width: 760px; }
.text-highlight { padding-block: clamp(64px, 9vw, 120px); }
.quote { margin: 0 auto; max-width: 30ch; text-align: center; font: var(--display-w) clamp(1.75rem, 1rem + 2.8vw, 3rem)/1.2 var(--display); letter-spacing: var(--display-track); text-wrap: balance; }

/* ---------- foto y texto ---------- */
.media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 112px); align-items: center; }
.media-right .media-fig { order: 2; }
.media-fig { aspect-ratio: 4 / 5; }
.media-text h2 { margin-bottom: 24px; }
@media (max-width: 860px) { .media-grid { grid-template-columns: 1fr; } .media-right .media-fig { order: 0; } .media-fig { aspect-ratio: 4 / 3; } }

/* ---------- galería ---------- */
.gal { display: grid; gap: clamp(8px, 1.2vw, 16px); grid-template-columns: repeat(3, 1fr); }
.gallery-grid .gal figure { aspect-ratio: 1; }
.gallery-mosaic .gal { grid-auto-rows: clamp(140px, 17vw, 230px); grid-template-columns: repeat(4, 1fr); }
.gallery-mosaic .gal figure:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; }
.gallery-mosaic .gal { grid-auto-flow: dense; }
.gallery-mosaic .gal figure:nth-child(6n+4), .gallery-mosaic .gal figure:nth-child(6n+5) { grid-row: span 2; }
.gallery-mosaic .gal figure:nth-child(6n+6) { grid-column: span 2; }
@media (max-width: 700px) { .gal, .gallery-mosaic .gal { grid-template-columns: repeat(2, 1fr); } .gallery-mosaic .gal figure:nth-child(n) { grid-column: auto; grid-row: auto; } .gallery-mosaic .gal figure:nth-child(3n+1) { grid-column: span 2; } }

/* ---------- vídeo ---------- */
.video-grid { display: grid; gap: 40px; }
.video-aside .video-grid { grid-template-columns: 1fr 1.6fr; align-items: center; }
.player { position: relative; aspect-ratio: 16 / 9; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .92); color: var(--ink); cursor: pointer; display: grid; place-items: center; box-shadow: 0 10px 40px rgb(0 0 0 / .3); transition: transform .2s; }
.play:hover { transform: scale(1.06); }
.play svg { width: 30px; height: 30px; fill: currentColor; margin-left: 4px; }
@media (max-width: 860px) { .video-aside .video-grid { grid-template-columns: 1fr; } }

/* ---------- personas ---------- */
.people-list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(28px, 4vw, 48px); grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.person { display: grid; gap: 20px; align-content: start; }
.avatar { width: 112px; height: 112px; border-radius: 50%; overflow: hidden; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font: var(--display-w) 2.25rem/1 var(--display); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.person-name { font: var(--display-w) 1.5rem/1.2 var(--display); }
.person-role { font: 500 0.8125rem/1.4 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-top: 6px; }
.person-bio { color: var(--muted); margin-top: 12px; font-size: 1.0625rem; }
.people .head { max-width: 720px; }
.people-list .person:only-child { max-width: 560px; }
.people-list:has(.person:nth-child(3):last-child) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

/* ---------- preguntas ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative; font: var(--display-w) 1.3125rem/1.3 var(--display); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 1.5px solid var(--accent-ink); border-bottom: 1.5px solid var(--accent-ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-list .prose { padding-bottom: 26px; color: var(--muted); }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- llamada ---------- */
.cta-band .cta-box { background: var(--accent); color: var(--on-accent, #fff); padding: clamp(48px, 7vw, 96px); border-radius: var(--radius); text-align: center; }
.cta-band .lead { color: rgb(255 255 255 / .85); margin: 20px auto 0; }
.cta-band .actions { justify-content: center; }
.cta-band .btn.primary { background: #fff; color: #10131c; }
.cta-card .cta-box { display: grid; grid-template-columns: 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cta-card .cta-box.has-img { grid-template-columns: 1fr 1.1fr; }
.cta-fig { margin: 0; min-height: 320px; }
.cta-fig img { width: 100%; height: 100%; object-fit: cover; }
.cta-text { padding: clamp(36px, 5vw, 72px); align-self: center; }
.cta-card .lead { margin-top: 18px; }
@media (max-width: 760px) { .cta-card .cta-box.has-img { grid-template-columns: 1fr; } .cta-fig { min-height: 220px; } }

/* ---------- formularios ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: clamp(28px, 4vw, 44px); }
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 8px; font: 500 0.8125rem/1.3 var(--ui); letter-spacing: .02em; color: var(--muted); }
.form input, .form textarea { font: 400 1rem/1.4 var(--ui); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-btn); padding: 14px 16px; width: 100%; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent-ink); outline-offset: 0; border-color: transparent; }
.form .btn { justify-self: start; margin-top: 6px; }

/* ---------- contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 112px); align-items: start; }
.contact-info .lead { margin-top: 20px; }
.facts { margin: 40px 0 0; display: grid; gap: 24px; }
.facts dt { font: 500 0.75rem/1.3 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 6px; }
.facts dd { margin: 0; display: grid; }
.contact-info:only-child { max-width: 720px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- eventos ---------- */
.ev-list { list-style: none; margin: 0; padding: 0; }
.ev-link { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(18px, 3vw, 40px); align-items: center; color: inherit; text-decoration: none; padding: 28px 0; border-top: 1px solid var(--line); transition: background-color .2s; }
.ev:last-child .ev-link { border-bottom: 1px solid var(--line); }
.ev-date { width: 76px; text-align: center; display: grid; gap: 2px; }
.ev-date b { font: var(--display-w) 2.75rem/1 var(--display); }
.ev-date span { font: 500 0.75rem/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); }
.ev-body { display: grid; gap: 6px; }
.ev-meta { font: 500 0.8125rem/1.4 var(--ui); color: var(--muted); }
.ev-title { font: var(--display-w) clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem)/1.2 var(--display); }
.ev-desc { color: var(--muted); font-size: 1.0625rem; max-width: 60ch; }
.ev-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tag { font: 500 0.75rem/1 var(--ui); padding: 7px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); }
.tag.heb { background: transparent; color: var(--muted); padding-inline: 0; }
.ev-go { font: 500 0.875rem/1 var(--ui); color: var(--accent-ink); white-space: nowrap; }
.ev-link:hover .ev-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.events-cards .ev-list { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.events-cards .ev-link { grid-template-columns: 1fr; align-content: start; height: 100%; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); }
.events-cards .ev:last-child .ev-link { border-bottom: 1px solid var(--line); }
.events-cards .ev-date { text-align: left; display: flex; align-items: baseline; gap: 10px; width: auto; }
.events-cards .ev-go { margin-top: 10px; }
.events-cards .ev-link:hover { border-color: var(--accent-ink); }
@media (max-width: 640px) { .events-list .ev-link { grid-template-columns: auto 1fr; } .events-list .ev-go { grid-column: 2; } }

/* ---------- Shabat ---------- */
.shabbat-band { position: relative; background: var(--dark); color: var(--dark-ink); isolation: isolate; overflow: hidden; }
.shabbat-media { position: absolute; inset: 0; z-index: -1; }
.shabbat-media img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.shabbat-media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 40%, transparent 0%, var(--dark) 80%); }
.shabbat-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.shabbat-band .eyebrow { color: #e9c77b; }
.shabbat-band .lead { color: rgb(255 255 255 / .75); margin-top: 20px; }
.times { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgb(255 255 255 / .16); border: 1px solid rgb(255 255 255 / .16); }
.times > div { background: rgb(20 16 12 / .55); padding: clamp(22px, 3vw, 36px); backdrop-filter: blur(6px); }
.times dt { font: 500 0.75rem/1.3 var(--ui); letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.times dd { margin: 14px 0 0; display: grid; gap: 6px; }
.times b { font: var(--display-w) clamp(2.5rem, 1.6rem + 3vw, 4rem)/1 var(--display); letter-spacing: -0.02em; }
.times dd span { font: 400 0.875rem/1.3 var(--ui); opacity: .7; }
.shabbat-data { display: grid; gap: 18px; }
.next, .city { font: 400 0.9375rem/1.4 var(--ui); opacity: .8; }
.city { opacity: .5; font-size: .8125rem; margin-top: -10px; }
.shabbat-card .shabbat-in { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: clamp(28px, 4vw, 56px); }
.shabbat-card .times { background: var(--line); border-color: var(--line); }
.shabbat-card .times > div { background: var(--surface); backdrop-filter: none; }
@media (max-width: 860px) { .shabbat-in { grid-template-columns: 1fr; } }

/* ---------- campaña ---------- */
.camp { display: grid; grid-template-columns: 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); overflow: hidden; }
.camp.has-img { grid-template-columns: 1fr 1.15fr; }
.camp-fig { margin: 0; min-height: 360px; }
.camp-fig img { width: 100%; height: 100%; object-fit: cover; }
.camp-text { padding: clamp(32px, 5vw, 72px); align-self: center; }
.camp-text .lead { margin-top: 18px; }
.camp-raised { margin-top: 32px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.camp-raised b { font: var(--display-w) clamp(2.5rem, 1.5rem + 3vw, 3.75rem)/1 var(--display); letter-spacing: -0.02em; }
.camp-raised span { color: var(--muted); font: 400 1rem/1.3 var(--ui); }
.bar { appearance: none; -webkit-appearance: none; width: 100%; height: 8px; margin: 18px 0 10px; border: 0; border-radius: 99px; background: var(--accent-soft); overflow: hidden; }
.bar::-webkit-progress-bar { background: var(--accent-soft); border-radius: 99px; }
.bar::-webkit-progress-value { background: var(--accent); border-radius: 99px; }
.bar::-moz-progress-bar { background: var(--accent); border-radius: 99px; }
.camp .muted { font: 400 0.875rem/1.4 var(--ui); }
@media (max-width: 860px) { .camp.has-img { grid-template-columns: 1fr; } .camp-fig { min-height: 240px; } }

/* ---------- hazte miembro y portal ---------- */
.join { background: var(--accent-soft); }
.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 112px); align-items: center; }
.join-text .lead { margin-top: 20px; }
.checks { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.checks li::before { content: ""; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--accent) url("check.svg") center / 13px no-repeat; }
@media (max-width: 860px) { .join-grid { grid-template-columns: 1fr; } }
.portal { padding-block: clamp(48px, 6vw, 80px); }
.portal-in { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.portal-in h2 { font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem); }
.portal-in .lead { margin-top: 10px; max-width: 56ch; }
.portal-band { border-top: 1px solid var(--line); }

/* =====================================================================
   TEMA «classic» (Tejelet): serif editorial, blanco frío y azul tejelet, detalles en plata, centrado.
   ===================================================================== */
[data-theme="classic"] .head:not(.head-row) { text-align: center; justify-items: center; }
[data-theme="classic"] .head .lead { margin-inline: auto; }
[data-theme="classic"] .head:not(.head-row) h2::after { content: ""; display: block; width: 56px; height: 1px; background: var(--metal); margin: 26px auto 0; box-shadow: 0 4px 0 var(--metal); }
[data-theme="classic"] .hero-photo .hero-in, [data-theme="classic"] .hero-type-in { text-align: center; display: grid; justify-items: center; }
[data-theme="classic"] .hero-photo .display, [data-theme="classic"] .hero-type .display { max-width: 18ch; }
[data-theme="classic"] .hero-photo .lead, [data-theme="classic"] .hero-type .lead { text-align: center; }
[data-theme="classic"] .hero .actions { justify-content: center; }
[data-theme="classic"] .hero-split .actions { justify-content: start; }
[data-theme="classic"] .frame { box-shadow: 0 0 0 1px var(--line); }
[data-theme="classic"] .media-fig, [data-theme="classic"] .hero-fig { outline: 1px solid var(--line); outline-offset: 14px; }
[data-theme="classic"] .eyebrow { font-family: var(--display); font-size: 0.8125rem; letter-spacing: 0.22em; }
[data-theme="classic"] .blk + .blk:not(.shabbat-band):not(.join):not(.portal) { border-top: 1px solid var(--line); }
[data-theme="classic"] .quote::before { content: "“"; display: block; font-size: 4rem; line-height: .6; color: var(--accent-ink); margin-bottom: 18px; }
[data-theme="classic"] .text-highlight { background: var(--surface); }

/* =====================================================================
   TEMA «bright»: sans contemporánea, blanco, fotos redondeadas, mosaicos.
   ===================================================================== */
[data-theme="bright"] {
  --bg: #ffffff; --surface: #f3f4f6; --ink: #0d1014; --muted: #5d6470; --line: #e4e6ea;
  --dark: #0d1014; --dark-ink: #f3f4f6;
  --display: 'Inter', system-ui, sans-serif; --body: 'Inter', system-ui, sans-serif;
  --display-w: 600; --display-track: -0.035em; --display-lh: 1.02;
  --radius: 22px; --radius-img: 22px; --radius-btn: 999px;
  --fs-body: 1.0625rem;
}
[data-theme="bright"] body { line-height: 1.65; }
[data-theme="bright"] .eyebrow { letter-spacing: .04em; text-transform: none; font-size: .875rem; font-weight: 600; display: inline-flex; align-items: center; gap: 10px; }
[data-theme="bright"] .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
[data-theme="bright"] .hero-photo { margin: 12px; border-radius: 28px; overflow: hidden; min-height: min(88svh, 860px); }
[data-theme="bright"] body.over-hero .top { inset: 12px 12px auto 12px; border-bottom: 0; }
[data-theme="bright"] .hero-photo .display { font-size: clamp(3rem, 1.2rem + 6.4vw, 6.75rem); max-width: 12ch; }
[data-theme="bright"] .top { border-bottom: 0; }
[data-theme="bright"] .brand-name { font-weight: 600; letter-spacing: -0.02em; }
[data-theme="bright"] .nav { background: var(--surface); padding: 4px; border-radius: 999px; gap: 2px; }
[data-theme="bright"] .nav a { padding: 10px 16px; border-radius: 999px; border: 0; }
[data-theme="bright"] .nav a[aria-current], [data-theme="bright"] .nav a:hover { background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .08); }
[data-theme="bright"] body.over-hero .nav { background: rgb(255 255 255 / .14); backdrop-filter: blur(12px); }
[data-theme="bright"] body.over-hero .nav a[aria-current], [data-theme="bright"] body.over-hero .nav a:hover { background: rgb(255 255 255 / .22); box-shadow: none; }
[data-theme="bright"] h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem); }
[data-theme="bright"] .ev-date b { font-weight: 600; letter-spacing: -0.04em; }
[data-theme="bright"] .media-grid { background: var(--surface); border-radius: 28px; padding: clamp(16px, 2vw, 24px); gap: clamp(24px, 5vw, 72px); }
[data-theme="bright"] .media-text { padding: clamp(8px, 3vw, 40px); }
[data-theme="bright"] .camp, [data-theme="bright"] .cta-card .cta-box, [data-theme="bright"] .events-cards .ev-link, [data-theme="bright"] .card { border: 0; background: var(--surface); }
[data-theme="bright"] .card { background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 12px 40px rgb(0 0 0 / .06); }
[data-theme="bright"] .join { background: var(--surface); }
[data-theme="bright"] .shabbat-band { margin: 0 12px; border-radius: 28px; }
[data-theme="bright"] .times { border-radius: 18px; overflow: hidden; }
[data-theme="bright"] .times b { font-weight: 600; letter-spacing: -0.04em; }
[data-theme="bright"] .faq-list details { border: 0; background: var(--surface); border-radius: 16px; margin-bottom: 10px; padding-inline: 24px; }
[data-theme="bright"] .faq-list details:last-child { border: 0; }
[data-theme="bright"] .faq-list summary { font-size: 1.125rem; }
[data-theme="bright"] .avatar { border-radius: 24px; width: 100%; height: auto; aspect-ratio: 1; font-size: 3rem; }
[data-theme="bright"] .text-highlight .quote { font-weight: 600; letter-spacing: -0.03em; }
[data-theme="bright"] .portal-band { border: 0; }
[data-theme="bright"] .portal-band .portal-in { background: var(--accent); color: #fff; border-radius: 28px; padding: clamp(32px, 5vw, 56px); }
[data-theme="bright"] .portal-band .lead { color: rgb(255 255 255 / .8); }
[data-theme="bright"] .portal-band .btn.primary { background: #fff; color: var(--ink); }
[data-theme="bright"] .foot { margin-top: 12px; }

/* =====================================================================
   TEMA «warm» (Piedra de Jerusalén): caliza dorada, tinta oliva y verde olivo, titulares rotundos,
   fotos en arco (las ventanas de las sinagogas antiguas) y bandas de noche oliva con oro.
   ===================================================================== */
[data-theme="warm"] {
  --bg: #e9e2cc; --surface: #f3eee0; --ink: #1c1f15; --muted: #565a45; --line: #cfc5a8;
  --dark: #1d2417; --dark-ink: #ede7d3; --gold: #d4ae5c;
  --display: 'Frank Ruhl Libre', Georgia, serif; --body: 'Inter', system-ui, sans-serif;
  --display-w: 700; --display-track: -0.025em; --display-lh: 1.02;
  --radius: 3px; --radius-img: 3px; --radius-btn: 3px;
  --fs-body: 1.0625rem;
}
[data-theme="warm"] .eyebrow { display: flex; align-items: center; gap: 12px; letter-spacing: 0.2em; }
[data-theme="warm"] .eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
[data-theme="warm"] .hero-photo .eyebrow { color: #fff; }
[data-theme="warm"] .display { font-size: clamp(3rem, 1.4rem + 6vw, 6.5rem); }
[data-theme="warm"] .hero-photo .hero-in { display: grid; justify-items: start; }
[data-theme="warm"] .arch, [data-theme="warm"] .hero-fig { border-radius: 999px 999px var(--radius-img) var(--radius-img); }
[data-theme="warm"] .media-fig, [data-theme="warm"] .hero-fig { aspect-ratio: 3 / 4; max-height: 720px; }
[data-theme="warm"] .media-grid { grid-template-columns: .85fr 1fr; }
[data-theme="warm"] .media-right .media-grid { grid-template-columns: 1fr .85fr; }
[data-theme="warm"] .events-cards .ev-link { background: var(--surface); }
[data-theme="warm"] .times b { font-weight: 500; color: var(--gold); }
[data-theme="warm"] .shabbat-band .eyebrow { color: var(--gold); }
[data-theme="warm"] .text-highlight { background: var(--dark); color: var(--dark-ink); }
[data-theme="warm"] .quote { font-weight: 500; }
[data-theme="warm"] .text-highlight .quote::before { content: ""; display: block; width: 40px; height: 2px; background: var(--gold); margin: 0 auto 28px; }
[data-theme="warm"] .join { background: #dfd6bc; }
[data-theme="warm"] .gal figure { border-radius: var(--radius-img); }
[data-theme="warm"] .gallery-mosaic .gal figure:nth-child(6n+1) { border-radius: 999px 999px var(--radius-img) var(--radius-img); }
[data-theme="warm"] .avatar { background: var(--dark); color: var(--gold); }
@media (max-width: 860px) { [data-theme="warm"] .media-grid, [data-theme="warm"] .media-right .media-grid { grid-template-columns: 1fr; } [data-theme="warm"] .media-fig { aspect-ratio: 4 / 5; max-height: 560px; } }

/* =====================================================================
   TEMA «night» (Noche de Shabat): oscuro, azul noche profundo y oro de vela. Titulares ligeros y grandes,
   cuerpo en serif, fotos con filo dorado y un resplandor cálido arriba, como la luz de las velas.
   ===================================================================== */
[data-theme="night"] {
  color-scheme: dark;
  --bg: #0c0f1c; --surface: #141a2d; --ink: #efe8d8; --muted: #a9a698; --line: #262d45;
  --dark: #070912; --dark-ink: #efe8d8;
  --display: 'Frank Ruhl Libre', Georgia, serif; --body: 'Newsreader', Georgia, serif;
  --display-w: 400; --display-track: -0.015em; --display-lh: 1.03;
  --radius: 2px; --radius-img: 2px; --radius-btn: 2px;
  --fs-body: 1.1875rem;
}
[data-theme="night"] body { background: radial-gradient(1100px 520px at 85% -8%, rgb(226 166 75 / .10), transparent 65%) no-repeat, var(--bg); }
[data-theme="night"] .eyebrow { font: italic 400 1.1875rem/1.3 var(--body); letter-spacing: 0; text-transform: none; }
[data-theme="night"] .display { font-size: clamp(3rem, 1.3rem + 6.6vw, 7rem); }
[data-theme="night"] h2 { font-size: clamp(2.25rem, 1.3rem + 3.2vw, 3.75rem); }
[data-theme="night"] .top { background: transparent; }
[data-theme="night"] .frame { box-shadow: 0 0 0 1px rgb(226 166 75 / .28); }
[data-theme="night"] .media-fig, [data-theme="night"] .hero-fig { box-shadow: 0 0 0 1px rgb(226 166 75 / .35), 0 40px 90px rgb(0 0 0 / .55); }
[data-theme="night"] .media-fig { aspect-ratio: 3 / 4; }
[data-theme="night"] .hero-media::after { background: linear-gradient(180deg, rgb(6 8 18 / .55) 0%, rgb(6 8 18 / .25) 30%, rgb(6 8 18 / .6) 62%, var(--bg) 100%), linear-gradient(90deg, rgb(6 8 18 / .55) 0%, rgb(6 8 18 / 0) 62%); }
[data-theme="night"] .head:not(.head-row) h2::after, [data-theme="night"] .head-row h2::after { content: ""; display: block; width: 64px; height: 1px; margin-top: 24px; background: linear-gradient(90deg, var(--accent-ink), transparent); }
[data-theme="night"] .ev-date b, [data-theme="night"] .times b, [data-theme="night"] .camp-raised b { color: var(--accent-ink); }
[data-theme="night"] .events-cards .ev-link { background: linear-gradient(180deg, var(--surface), rgb(20 26 45 / .4)); }
[data-theme="night"] .shabbat-band { background: var(--dark); }
[data-theme="night"] .shabbat-band .eyebrow { color: var(--accent-ink); }
[data-theme="night"] .times > div { background: rgb(7 9 18 / .6); }
[data-theme="night"] .text-highlight { background: var(--surface); }
[data-theme="night"] .quote { font: italic 400 clamp(1.75rem, 1rem + 2.8vw, 3.125rem)/1.25 var(--body); color: var(--accent-ink); }
[data-theme="night"] .join { background: linear-gradient(135deg, var(--accent-soft), var(--bg) 70%); }
[data-theme="night"] .checks li::before { width: 9px; height: 9px; margin: 9px 0 0 6px; border-radius: 0; background: var(--accent-ink); transform: rotate(45deg); }
[data-theme="night"] .avatar { background: var(--surface); box-shadow: inset 0 0 0 1px rgb(226 166 75 / .45); }
[data-theme="night"] .card, [data-theme="night"] .camp, [data-theme="night"] .cta-card .cta-box { border-color: var(--line); }
[data-theme="night"] .form input, [data-theme="night"] .form textarea { background: rgb(7 9 18 / .5); }
[data-theme="night"] .portal-band { border-top-color: var(--line); }
[data-theme="night"] .foot { border-top: 1px solid var(--line); }
[data-theme="night"] .tag { background: transparent; box-shadow: inset 0 0 0 1px rgb(226 166 75 / .4); }

/* =====================================================================
   TEMA «telaviv» (Ciudad Blanca): la sobriedad de la Bauhaus de Tel Aviv. Yeso blanco, gris carbón y un único acento
   color vino; sans limpia, filetes finos y la geometría de la arquitectura en las fotos (círculo, cuarto de círculo).
   ===================================================================== */
[data-theme="telaviv"] {
  --bg: #f1f1ef; --surface: #ffffff; --ink: #1e2023; --muted: #5a5d63; --line: #d9d9d5;
  --dark: #1e2023; --dark-ink: #f1f1ef;
  --display: 'Inter', system-ui, sans-serif; --body: 'Inter', system-ui, sans-serif; --ui: 'Inter', system-ui, sans-serif;
  --display-w: 500; --display-track: -0.035em; --display-lh: 1.04;
  --radius: 0; --radius-img: 0; --radius-btn: 0;
  --fs-body: 1.0625rem;
}
[data-theme="telaviv"] .display { font-size: clamp(2.75rem, 1.2rem + 5.8vw, 6.25rem); max-width: 14ch; }
[data-theme="telaviv"] h2 { font-size: clamp(2rem, 1.2rem + 2.8vw, 3.375rem); }
[data-theme="telaviv"] .brand-name { font-weight: 500; letter-spacing: -0.02em; }
[data-theme="telaviv"] .nav a { font-weight: 400; }
[data-theme="telaviv"] .eyebrow { color: var(--muted); letter-spacing: .2em; font-size: .6875rem; }
[data-theme="telaviv"] .hero-photo .eyebrow { color: rgb(255 255 255 / .8); }
[data-theme="telaviv"] .head h2::after { content: ""; display: block; width: 32px; height: 2px; margin-top: 22px; background: var(--accent); }
[data-theme="telaviv"] .head:has(.head-row) h2::after, [data-theme="telaviv"] .head-row h2::after { display: block; }
[data-theme="telaviv"] .blk + .blk:not(.shabbat-band):not(.join):not(.portal):not(.text-highlight) { border-top: 1px solid var(--line); }
[data-theme="telaviv"] .btn { font-weight: 500; }
[data-theme="telaviv"] .hero-fig { aspect-ratio: 1; border-radius: 50%; }
[data-theme="telaviv"] .media-fig { aspect-ratio: 1; border-radius: 0 0 0 50%; }
[data-theme="telaviv"] .media-right .media-fig { border-radius: 0 0 50% 0; }
[data-theme="telaviv"] .events-cards .ev-link, [data-theme="telaviv"] .camp, [data-theme="telaviv"] .card, [data-theme="telaviv"] .cta-card .cta-box { background: var(--surface); border-color: var(--line); }
[data-theme="telaviv"] .ev-date b, [data-theme="telaviv"] .times b, [data-theme="telaviv"] .camp-raised b { font-weight: 400; letter-spacing: -0.04em; }
[data-theme="telaviv"] .ev-title, [data-theme="telaviv"] .person-name, [data-theme="telaviv"] .faq-list summary { font-weight: 500; letter-spacing: -0.015em; }
[data-theme="telaviv"] .tag { border-radius: 0; }
[data-theme="telaviv"] .bar, [data-theme="telaviv"] .bar::-webkit-progress-bar, [data-theme="telaviv"] .bar::-webkit-progress-value, [data-theme="telaviv"] .bar::-moz-progress-bar { height: 4px; border-radius: 0; }
[data-theme="telaviv"] .quote { font-weight: 400; letter-spacing: -0.025em; }
[data-theme="telaviv"] .text-highlight { background: var(--surface); }
[data-theme="telaviv"] .join { background: var(--surface); border-top: 1px solid var(--line); }
[data-theme="telaviv"] .checks li::before { border-radius: 0; }
[data-theme="telaviv"] .avatar { border-radius: 0; font-weight: 400; }

/* formularios públicos: campo trampa (invisible para las personas) y aviso del envío */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 0 0 4px; padding: 10px 12px; border-radius: 6px; font-size: .95rem; background: var(--accent-soft); color: var(--ink, inherit); }
.form-note-busy, .form-note-expired, .form-note-invalid { background: #fdecea; color: #7a1c14; }
.preview-broken { padding: 2rem 0; }
