/* =====================================================================
   APP PARITY — the website mirrors the mobile app's design system
   (mobile/src/constants/theme.ts + components/ui.tsx). Loaded LAST on
   every page. Keep both in sync: a visual change in one goes to the other.
   ===================================================================== */

:root {
  /* Manrope is loaded as a webfont on every public and admin page. Keeping it
     first avoids OS-specific glyph metrics (SF on macOS vs Segoe on Windows). */
  --app-sans: "Manrope", Arial, sans-serif;
  --app-serif: Georgia, "Times New Roman", serif;
  --app-bg: #faf5f4;
  --app-band: #f3e9e6;
  --app-hero: #f9e1dc;
  --app-card: #ffffff;
  --app-ink: #3f2623;
  --app-muted: #6d5250;
  --app-wine: #a64b43;
  --app-fill: rgba(166, 75, 67, 0.08);
  --app-separator: rgba(60, 40, 38, 0.12);
  --app-shadow: 0 1px 2px rgba(63, 38, 35, 0.04), 0 8px 24px rgba(63, 38, 35, 0.06);
  --app-radius: 20px;
  --app-radius-btn: 14px;

  /* Re-point the existing layers to the app tokens */
  --p-sans: var(--app-sans);
  --p-serif: var(--app-serif);
  --b-sans: var(--app-sans);
  --b-serif: var(--app-serif);
}

/* ---------- Base: system font everywhere, warm grouped background ---------- */
body.theme-premium,
body.mcp-brand {
  background: var(--app-bg) !important;
  font-family: var(--app-sans) !important;
  letter-spacing: -0.01em;
}
:is(.theme-premium, .mcp-brand) :where(*:not(i):not(svg):not(svg *):not(.fa):not(.fas):not(.far):not(.fab):not([class^="fa-"]):not([class*=" fa-"]):not(.iti__flag):not([data-lucide])) {
  font-family: var(--app-sans) !important;
}

/* ---------- Titles: bold system font, like the app's large titles ---------- */
:is(.theme-premium, .mcp-brand) :is(h1, h2, h3, h4),
:is(.theme-premium, .mcp-brand) :is(h1, h2, h3) :is(span, em, strong, b),
body.mcp-brand[class] :is(h1, h2, h3),
body.mcp-brand[class] .admin-card h3,
.theme-premium .section-header-premium h2,
.theme-premium :is(#invitees, #about, #events, #donate, #gallery, #contact, #join, #timeline, #soundcloud) h2,
.theme-premium .youtube-explore h2,
.theme-premium .p-app h2,
.theme-premium .ofrecemos-section h2 {
  font-family: var(--app-sans) !important;
  font-weight: 700 !important;
  font-style: normal !important;
  letter-spacing: -0.025em !important;
  color: var(--app-ink) !important;
  -webkit-text-fill-color: currentColor !important;
}
.theme-premium .section-header-premium h2,
.theme-premium :is(#invitees, #about, #events, #donate, #gallery, #contact, #timeline) .section-header-premium h2,
.theme-premium .youtube-explore h2,
.theme-premium .p-app h2,
.theme-premium #join .join-copy h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem) !important;
  line-height: 1.12 !important;
}
.theme-premium .section-header-premium { text-align: left !important; margin-left: 0 !important; margin-right: 0 !important; max-width: none !important; }
.theme-premium .section-header-premium .p-eyebrow { justify-content: flex-start !important; }
.theme-premium .youtube-explore,
.theme-premium #about,
.theme-premium #gallery { text-align: left !important; }
.theme-premium .youtube-explore .yt-kicker { justify-content: flex-start !important; }
.theme-premium #about > p { margin-left: 0 !important; }

/* Card-level titles (19px semibold in the app) */
:is(.theme-premium, .mcp-brand) :is(.card h3, .ofrecemos-card h3, #timeline .timeline-step h3, .gallery-activity-title, .dev-card h2, .dev-card h3, .admin-content-item strong) {
  font-family: var(--app-sans) !important;
  font-weight: 600 !important;
  font-size: 1.15rem !important;
  letter-spacing: -0.02em !important;
  line-height: 1.25 !important;
}
.theme-premium #timeline .timeline-step .year {
  font-family: var(--app-serif) !important;
  font-weight: 400 !important;
  font-size: 1.6rem !important;
  color: var(--app-wine) !important;
}

/* ---------- Editorial serif only where the app uses it ---------- */
.theme-premium .hero-premium h2,
.theme-premium .hero-premium h2 span,
.theme-premium .verse-block p,
.theme-premium .dev-hero h1,
.theme-premium .dev-hero h1 em,
.theme-premium .dev-hero-quote p {
  font-family: var(--app-serif) !important;
  font-weight: 400 !important;
  letter-spacing: -0.015em !important;
}
.theme-premium .hero-premium h2 .hero-title-accent { font-style: italic !important; color: var(--app-wine) !important; }
.theme-premium .verse-block p { font-style: italic !important; }

/* ---------- Eyebrows: 12px semibold uppercase, no dashes ---------- */
:is(.theme-premium, .mcp-brand) :is(.p-eyebrow, .hero-kicker, .yt-kicker, .join-eyebrow, .calendar-eyebrow, .admin-hero-badge, .private-access-eyebrow, .dev-eyebrow, .admin-dashboard-kicker, .admin-topbar-kicker) {
  font-family: var(--app-sans) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  color: var(--app-wine) !important;
}
:is(.theme-premium, .mcp-brand) :is(.p-eyebrow, .hero-kicker, .yt-kicker, .join-eyebrow)::before,
:is(.theme-premium, .mcp-brand) :is(.p-eyebrow, .hero-kicker, .yt-kicker, .join-eyebrow)::after { content: none !important; display: none !important; }

/* ---------- Body copy ---------- */
.theme-premium :is(p, li) { letter-spacing: -0.01em; }
.theme-premium #about > p,
.theme-premium #donate .donate-text {
  font-family: var(--app-sans) !important;
  font-size: 1.05rem !important;
  line-height: 1.55 !important;
  color: var(--app-muted) !important;
  font-weight: 400 !important;
}

/* ---------- Hero: soft pink block with rounded bottom, like the app ---------- */
.theme-premium .hero-premium {
  background: var(--app-hero) !important;
  border-radius: 0 0 28px 28px !important;
}
.theme-premium .hero-premium .p-hero-grain { display: none !important; }
.theme-premium .hero-stat strong { font-family: var(--app-sans) !important; font-weight: 700 !important; font-size: 1rem !important; }

/* ---------- Cards: white, 20px radius, soft shadow, no border ---------- */
:is(.theme-premium, .mcp-brand) :is(.card, .ofrecemos-card, #timeline .timeline-step, .contact-form-card, .soundcloud-mini, .admin-card, .stat-card, .panel, .dev-card, .admin-stat-tile, .p-sync-panel) {
  background: var(--app-card) !important;
  border: 0 !important;
  border-radius: var(--app-radius) !important;
  box-shadow: var(--app-shadow) !important;
}
.theme-premium .calendar-card-premium { background: var(--app-card) !important; border: 0 !important; border-radius: var(--app-radius) !important; box-shadow: var(--app-shadow) !important; }

/* ---------- Section bands (same sections as the app's Home) ---------- */
.theme-premium :is(#about, .ofrecemos-section, #events, #donate, #contact) {
  position: relative;
  padding-bottom: clamp(48px, 6vw, 72px) !important;
  margin-top: clamp(40px, 5vw, 64px) !important;
  padding-top: clamp(40px, 5vw, 64px) !important;
  background: var(--app-band) !important;
  box-shadow: 0 0 0 100vmax var(--app-band) !important;
  clip-path: inset(0 -100vmax);
}
.theme-premium :is(#about, .ofrecemos-section, #events, #donate, #contact)::before {
  content: "";
  position: absolute;
  left: -100vmax; right: -100vmax; top: 0;
  border-top: 1px solid rgba(166, 75, 67, 0.10);
}

/* ---------- Buttons: 14px radius; primary filled, secondary tinted ---------- */
:is(.theme-premium, .mcp-brand) :is(.btn:not(.btn-soft):not(.btn-clear), .hero-main-btn, .donate-btn-new, #cSubmitBtn, .btn-secondary, #adminLoginBtn, #dashboardLoginBtn, #savePasswordBtn, .dev-hero-link, #homeBtn, .menu-donate-btn) {
  border-radius: var(--app-radius-btn) !important;
  background: var(--app-wine) !important;
  border-color: var(--app-wine) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-family: var(--app-sans) !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  letter-spacing: -0.01em !important;
  box-shadow: 0 8px 20px rgba(166, 75, 67, 0.22) !important;
}
:is(.theme-premium, .mcp-brand) :is(.hero-secondary-link, .about-more-btn, .youtube-more, .p-sync summary, .p-sync-option, .private-passkey-btn, .private-cancel-btn, .btn.btn-soft, .btn.btn-clear, .dev-back, .gallery-tabs .tab:not(.active)) {
  border-radius: var(--app-radius-btn) !important;
  background: var(--app-fill) !important;
  border: 0 !important;
  color: var(--app-wine) !important;
  -webkit-text-fill-color: var(--app-wine) !important;
  font-family: var(--app-sans) !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}
.theme-premium .gallery-tabs { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; gap: 8px !important; }
.theme-premium .gallery-tabs .tab { border-radius: 999px !important; }
.theme-premium .gallery-tabs .tab.active { background: var(--app-wine) !important; color: #fff !important; -webkit-text-fill-color: #fff !important; box-shadow: none !important; }

/* Header pill keeps its shape; nav links use the app font */
.theme-premium header h1 { font-family: var(--app-serif) !important; font-weight: 400 !important; }
.theme-premium header #nav-menu a { font-family: var(--app-sans) !important; font-weight: 600 !important; }
.theme-premium header #nav-menu a.menu-donate-btn { border-radius: 999px !important; box-shadow: none !important; }

/* Footer brand line in serif like the app header */
.theme-premium .site-footer :is(h2, h3, h4, strong) { font-family: var(--app-sans) !important; font-weight: 700 !important; }

/* ---------- Specificity boost: legacy rules use #id selectors ---------- */
html body.theme-premium[class] :is(#invitees, #about, #timeline, #events, #donate, #gallery, #contact, #join, #soundcloud, .ofrecemos-section, .youtube-explore, .p-app) :is(h2, h2 span:not(.icon)) {
  font-family: var(--app-sans) !important;
  font-weight: 700 !important;
  font-style: normal !important;
  letter-spacing: -0.025em !important;
  text-align: left !important;
  color: var(--app-ink) !important;
  -webkit-text-fill-color: currentColor !important;
}
html body.theme-premium[class] :is(#invitees, #about, #timeline, #events, #donate, #gallery, #contact, .ofrecemos-section, .youtube-explore) .section-header-premium,
html body.theme-premium[class] :is(#invitees, #about, #timeline, #events, #donate, #gallery, #contact, .ofrecemos-section, .youtube-explore) .section-header-premium :is(h2, p, .subtitle),
html body.theme-premium[class] :is(#about, .youtube-explore) > :is(p, .youtube-subtitle) {
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
html body.theme-premium[class] .section-header-premium { margin-bottom: 28px !important; }
html body.theme-premium[class] .section-header-premium :is(p, .subtitle) { margin-top: 8px !important; font-size: 1rem !important; }
html body.theme-premium[class] #about > p { max-width: 720px; }
html body.theme-premium[class] #soundcloud .sc-mini-head h2 { font-size: 1.3rem !important; }
html body.theme-premium[class] .p-sync { margin-left: 0 !important; text-align: left !important; }
html body.theme-premium[class] .p-sync-panel { text-align: left !important; }

/* Event cards like the app's MeetingCard: left-aligned, title + schedule, full-width CTA */
html body.theme-premium[class] #eventsGrid .card {
  align-items: stretch !important;
  text-align: left !important;
  padding: 18px !important;
  gap: 4px;
}
html body.theme-premium[class] #eventsGrid .card .card-icon { margin: 0 0 12px !important; align-self: flex-start; width: 50px !important; height: 50px !important; border-radius: 14px !important; background: #f9e4e0 !important; }
html body.theme-premium[class] #eventsGrid .card h3 { min-height: 0 !important; justify-content: flex-start !important; text-align: left !important; }
html body.theme-premium[class] #eventsGrid .card > p { margin: 0 0 16px !important; color: var(--app-muted) !important; text-align: left !important; }
html body.theme-premium[class] #eventsGrid .card > p strong { font-weight: 500 !important; }
html body.theme-premium[class] #eventsGrid .card > a.btn { width: 100%; margin-top: auto !important; min-height: 50px; }

/* ---------- Section titles: one size everywhere (app 26pt) ---------- */
html body.theme-premium[class] :is(#invitees, #about, #timeline, #events, #donate, #gallery, #contact, .ofrecemos-section, .youtube-explore, .p-app) h2:not(.sc-mini-head h2) {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem) !important;
  line-height: 1.12 !important;
  white-space: normal !important;
}
html body.theme-premium[class] .youtube-explore .yt-kicker { letter-spacing: 0.06em !important; font-size: 0.75rem !important; font-weight: 600 !important; }

/* ---------- Donation card: same structure as the app ---------- */
html body.theme-premium[class] :is(#donate .give-card, #oracion .prayer-card) {
  max-width: 560px !important;
  margin: 0 !important;
  padding: 22px !important;
  display: flex; flex-direction: column; gap: 18px;
  text-align: left !important;
  border-radius: 24px !important;
  border: 1px solid rgba(201, 164, 107, 0.35) !important;
  background: linear-gradient(135deg, #fffaf8, #fbe9e4 55%, #f6dcd5) !important;
  box-shadow: 0 14px 34px rgba(166, 75, 67, 0.14) !important;
}
:is(#donate, #oracion, #donateModal) .give-head { display: flex; align-items: center; gap: 14px; }
:is(#donate, #oracion, #donateModal) .give-icon { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 16px; background: var(--app-wine); color: #fff; display: grid; place-items: center; font-size: 22px; box-shadow: 0 8px 18px rgba(166, 75, 67, 0.35); }
html body.theme-premium[class] :is(#donate, #oracion, #donateModal) .give-title { margin: 0 !important; font-size: 1.2rem !important; font-weight: 700 !important; letter-spacing: -0.02em !important; color: var(--app-ink) !important; }
#donate .give-copy, #oracion .give-copy, #donateModal .give-copy { margin: 3px 0 0 !important; font-size: 0.92rem !important; line-height: 1.45 !important; color: var(--app-muted) !important; }
html body.theme-premium[class] :is(#donate, #oracion, #donateModal) .give-quote { margin: 0 !important; padding: 14px 16px !important; border-radius: 16px !important; border: 0 !important; border-left: 3px solid #c9a46b !important; background: rgba(255, 255, 255, 0.7) !important; box-shadow: none !important; }
:is(#donate, #oracion, #donateModal) .give-quote-mark { display: block; height: 22px; font-family: var(--app-serif); font-size: 40px; line-height: 40px; color: #c9a46b; }
html body.theme-premium[class] :is(#donate, #oracion, #donateModal) .give-quote p { margin: 0 !important; font-family: var(--app-serif) !important; font-style: italic !important; font-size: 1.25rem !important; line-height: 1.3 !important; color: var(--app-ink) !important; }
:is(#donate, #oracion, #donateModal) .give-quote cite { display: block; margin-top: 6px; font-style: normal; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--app-wine); }
:is(#donate, #oracion, #donateModal) .give-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
:is(#donate, #oracion, #donateModal) .give-way { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.25; min-width: 0; gap: 6px; padding: 12px 8px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, 0.75); color: var(--app-ink); font: 600 0.78rem var(--app-sans); cursor: pointer; }
:is(#donate, #oracion, #donateModal) .give-way i { font-size: 20px; color: var(--app-wine); }
:is(#donate, #oracion, #donateModal) .give-way:hover { background: #fff; }
html body.theme-premium[class] :is(#donate, #oracion) .give-cta { width: 100%; min-height: 52px; justify-content: center; gap: 8px; }
#donate .give-note { margin: -8px 0 0 !important; text-align: center !important; font-size: 0.75rem !important; color: var(--app-muted) !important; }

/* Donation copy and ministry cards left-aligned like the app */
html body.theme-premium[class] :is(#donate, #oracion, #donateModal) :is(.give-copy, .give-title, .give-quote, .give-quote p, .give-quote cite) { text-align: left !important; }
html body.theme-premium[class] .ofrecemos-card { text-align: left !important; align-items: flex-start !important; padding: 22px !important; }
html body.theme-premium[class] .ofrecemos-card .icon { margin: 0 0 16px !important; }
html body.theme-premium[class] .ofrecemos-card :is(h3, p) { text-align: left !important; }
html body.theme-premium[class] .ofrecemos-grid { gap: 14px !important; }

html body.theme-premium[class] .ofrecemos-card h3 { display: block !important; justify-content: flex-start !important; width: 100%; }

/* Devotional page hero: editorial serif throughout (same as the app's welcome title) */
html body.mcp-brand[class] .dev-hero h1,
html body.mcp-brand[class] .dev-hero h1 :is(em, span) {
  font-family: var(--app-serif) !important;
  font-weight: 400 !important;
  letter-spacing: -0.02em !important;
}
html body.mcp-brand[class] .dev-hero h1 em { font-style: italic !important; color: var(--app-wine) !important; }

/* ---------- Destacadas: whole flyer over a blurred fill (app PosterCard) ---------- */
/* 2:3 frame, the house format: 2:3 flyers fill it; others are shown whole over the blurred fill. */
html body.theme-premium[class] #inviteesTrack .poster-media {
  position: relative;
  aspect-ratio: 2 / 3;
  margin: 0 0 16px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--app-band);
}
html body.theme-premium[class] #inviteesTrack .poster-media::before {
  content: "";
  position: absolute;
  inset: -24px;
  background: var(--poster) center / cover no-repeat;
  filter: blur(26px) saturate(1.05);
  opacity: 0.9;
}
html body.theme-premium[class] #inviteesTrack .poster-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 247, 246, 0.3);
}
html body.theme-premium[class] #inviteesTrack .poster-media > img {
  position: relative;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  margin: 0 !important;
  border-radius: 0 !important;
  transform: none !important;
}
html body.theme-premium[class] #inviteesTrack .card { padding: 10px 10px 18px !important; text-align: left !important; }
html body.theme-premium[class] #inviteesTrack .card :is(h3, .invitee-title) { text-align: left !important; padding: 0 6px; }
html body.theme-premium[class] #invitees :is(.invitees-wrapper, .invitees-track) { background: none !important; box-shadow: none !important; border: 0 !important; }
html body.theme-premium[class] #invitees #inviteesTrack .card h3 {
  text-align: left !important; justify-content: flex-start !important; display: block !important;
  font-size: 1.05rem !important; font-weight: 600 !important; margin: 0 0 3px !important;
}
html body.theme-premium[class] #invitees #inviteesTrack .card .invitee-title {
  text-align: left !important; text-transform: none !important; letter-spacing: -0.01em !important;
  font-size: 0.85rem !important; font-weight: 400 !important; color: var(--app-muted) !important; line-height: 1.35 !important;
}
html body.theme-premium[class] #invitees #inviteesTrack > .card { display: flex !important; flex-direction: column !important; align-items: stretch !important; }
/* Poster captions centered (web + app PosterCard) */
html body.theme-premium[class] #invitees #inviteesTrack .card :is(h3, .invitee-title) { text-align: center !important; }

/* ---------- Eventos + Lo que hacemos: centered (web) ---------- */
html body.theme-premium[class] :is(#events, .ofrecemos-section) .section-header-premium,
html body.theme-premium[class] :is(#events, .ofrecemos-section) .section-header-premium :is(h2, p, .subtitle) { text-align: center !important; margin-left: auto !important; margin-right: auto !important; }
html body.theme-premium[class] :is(#events, .ofrecemos-section) .section-header-premium .p-eyebrow { justify-content: center !important; width: 100%; }
html body.theme-premium[class] #events .p-sync { margin-left: auto !important; margin-right: auto !important; text-align: center !important; }
html body.theme-premium[class] #events .p-sync-panel { text-align: center !important; }

html body.theme-premium[class] #eventsGrid .card { align-items: center !important; text-align: center !important; }
html body.theme-premium[class] #eventsGrid .card .card-icon { align-self: center !important; margin: 0 auto 12px !important; }
html body.theme-premium[class] #eventsGrid .card :is(h3, > p) { text-align: center !important; justify-content: center !important; }

html body.theme-premium[class] .ofrecemos-card { align-items: center !important; text-align: center !important; }
html body.theme-premium[class] .ofrecemos-card .icon { margin: 0 auto 16px !important; }
html body.theme-premium[class] .ofrecemos-card :is(h3, p) { text-align: center !important; }

/* ---------- App promo phone: real app screenshot + iOS-style notification ---------- */
html body.theme-premium[class] .p-phone { width: min(100%, 300px); padding: 11px; border-radius: 48px; background: #2b1b1a; box-shadow: 0 30px 70px rgba(63, 38, 35, 0.28); }
html body.theme-premium[class] .p-phone-screen { position: relative; padding: 0 !important; border-radius: 38px; overflow: hidden; background: var(--app-bg); display: block; }
html body.theme-premium[class] .p-phone-shot { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
html body.theme-premium[class] .p-phone-notif {
  position: absolute; left: 10px; right: 10px; top: 14px;
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 12px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(18px) saturate(160%) !important; backdrop-filter: blur(18px) saturate(160%) !important;
  border: 0 !important;
  box-shadow: 0 10px 30px rgba(63, 38, 35, 0.22);
  animation: p-notif 6s var(--p-ease) infinite;
}
html body.theme-premium[class] .p-notif-icon { width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto; object-fit: cover; }
html body.theme-premium[class] .p-notif-body { flex: 1; min-width: 0; text-align: left; font-size: 0.72rem; line-height: 1.3; color: var(--app-ink); }
html body.theme-premium[class] .p-notif-top { display: flex; justify-content: space-between; gap: 6px; color: var(--app-muted); font-size: 0.66rem; margin-bottom: 2px; }
html body.theme-premium[class] .p-notif-body b { display: block; font-size: 0.78rem; font-weight: 700; }
html body.theme-premium[class] .p-notif-text { display: block; color: var(--app-ink); }
html body.theme-premium[class] .p-phone-tile { display: none !important; }
html body.theme-premium[class] .p-phone-notif {
  background: rgba(255, 255, 255, 0.97) !important;
  opacity: 1 !important;
  animation: p-notif-in 7s cubic-bezier(0.22, 1, 0.36, 1) infinite !important;
}
html body.theme-premium[class] .p-notif-icon { background: #f9e4e0; padding: 3px; border-radius: 9px; }
@keyframes p-notif-in {
  0% { transform: translateY(-120%); }
  10%, 88% { transform: translateY(0); }
  100% { transform: translateY(-120%); }
}
@media (prefers-reduced-motion: reduce) { html body.theme-premium[class] .p-phone-notif { animation: none !important; } }
/* Notification gets its own band at the top of the screen, so nothing shows through it */
html body.theme-premium[class] .p-phone-screen { padding-top: 92px !important; }
html body.theme-premium[class] .p-phone-notif { background: #fff !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

/* ---------- Realistic iPhone mockup (titanium frame, buttons, Dynamic Island) ---------- */
html body.theme-premium[class] .p-phone.ip {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 9 / 19.4;
  margin: 0 auto;
  padding: 10px;
  border-radius: 54px;
  background:
    linear-gradient(145deg, #8a7570 0%, #4a3835 22%, #2a1e1c 48%, #5c4844 76%, #9b8580 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.22),
    inset 0 0 0 4px #120c0b,
    0 2px 2px rgba(0, 0, 0, 0.15),
    0 34px 70px rgba(63, 38, 35, 0.32),
    0 10px 24px rgba(63, 38, 35, 0.18);
}
html body.theme-premium[class] .p-phone.ip::after {
  /* glass glare */
  content: ""; position: absolute; inset: 10px; border-radius: 44px; pointer-events: none; z-index: 4;
  background: linear-gradient(115deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 32%);
}
.ip-btn { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #2a1e1c, #7d6a66 50%, #2a1e1c); }
.ip-action   { left: -3px; top: 17%; height: 5%; }
.ip-vol-up   { left: -3px; top: 26%; height: 9.5%; }
.ip-vol-down { left: -3px; top: 38%; height: 9.5%; }
.ip-power    { right: -3px; top: 30%; height: 14%; }

html body.theme-premium[class] .p-phone.ip .ip-screen {
  position: relative;
  height: 100%;
  padding: 0 !important;
  border-radius: 44px !important;
  overflow: hidden;
  background: var(--app-bg) !important;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.ip-status {
  position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: 46px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 24px 0 30px;
  color: #1c1117;
  background: linear-gradient(var(--app-bg) 70%, rgba(250, 245, 244, 0));
}
.ip-time { font: 600 14px var(--app-sans); letter-spacing: -0.01em; }
.ip-icons { display: flex; align-items: center; gap: 5px; }
.ip-icons svg { fill: currentColor; display: block; }
.ip-island {
  position: absolute; left: 50%; top: 10px; transform: translateX(-50%);
  width: 34%; height: 28px; border-radius: 20px; background: #000;
  display: flex; align-items: center; justify-content: flex-end; padding-right: 10px;
}
.ip-cam { width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3a4a7a, #0b0d18 60%); box-shadow: 0 0 0 1.5px #111; }
html body.theme-premium[class] .p-phone.ip .p-phone-shot {
  position: absolute; left: 0; right: 0; top: 42px; bottom: 0;
  width: 100%; height: calc(100% - 42px); object-fit: cover; object-position: top;
}
.ip-home { position: absolute; z-index: 3; left: 50%; bottom: 7px; transform: translateX(-50%); width: 36%; height: 5px; border-radius: 3px; background: #1c1117; opacity: 0.85; }

/* Notification drops out of the Dynamic Island */
html body.theme-premium[class] .p-phone.ip .p-phone-notif {
  position: absolute; z-index: 5; left: 8px; right: 8px; top: 46px;
  transform-origin: 50% 0;
  animation: ip-notif 7s cubic-bezier(0.22, 1, 0.36, 1) infinite !important;
}
@keyframes ip-notif {
  0%   { transform: translateY(-40px) scale(0.35, 0.3); opacity: 0; border-radius: 30px; }
  9%   { transform: translateY(0) scale(1); opacity: 1; border-radius: 22px; }
  86%  { transform: translateY(0) scale(1); opacity: 1; }
  96%  { transform: translateY(-40px) scale(0.35, 0.3); opacity: 0; }
  100% { transform: translateY(-40px) scale(0.35, 0.3); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html body.theme-premium[class] .p-phone.ip .p-phone-notif { animation: none !important; transform: none; opacity: 1; }
}
@media (max-width: 520px) {
  html body.theme-premium[class] .p-phone.ip { width: min(82%, 300px); }
}
html body.theme-premium[class] .p-notif-icon { padding: 0 !important; background: #fdf4f1 !important; border-radius: 9px !important; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.08); }

/* Social provider actions for the private web panels. */
.social-login-divider { display: flex; align-items: center; gap: 14px; margin: 20px 0 14px; color: var(--b-muted); font-size: .82rem; font-weight: 650; }
.social-login-divider::before, .social-login-divider::after { content: ""; height: 1px; flex: 1; background: var(--b-line); }
.social-login-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.social-login-divider[hidden], .social-login-actions[hidden], .social-login-btn[hidden] { display: none !important; }
.social-login-btn {
  display: inline-flex; min-height: 54px; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid var(--b-line-strong); border-radius: 16px; background: rgba(255,255,255,.88); color: var(--b-ink);
  font: 700 .96rem/1 var(--b-sans); cursor: pointer; box-shadow: 0 8px 20px rgba(63,38,35,.06);
  transition: transform .18s var(--b-ease), box-shadow .18s var(--b-ease), opacity .18s ease;
}
.social-login-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(63,38,35,.1); }
.social-login-btn:active { transform: scale(.985); }
.social-login-btn:disabled { cursor: wait; opacity: .75; }
.social-login-apple { color: #fff; border-color: #211d1c; background: linear-gradient(145deg, #312c2b, #171514); }
.social-login-apple-mark { font: 1.5rem/1 Arial, sans-serif; }
.social-login-google-mark { display: inline-grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: #4285f4; background: #fff; font: 800 1rem/1 Arial, sans-serif; }
.social-login-spinner { width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: mcp-social-spin .7s linear infinite; }
@keyframes mcp-social-spin { to { transform: rotate(360deg); } }
@media (max-width: 440px) { .social-login-actions { grid-template-columns: 1fr; } }


/* ---------- Prayer section (replaces the donation block) ---------- */
html body.theme-premium[class] #oracion {
  width: min(calc(100% - 40px), var(--p-max)) !important;
  margin: clamp(40px, 5vw, 64px) auto 0 !important;
  padding: clamp(40px, 5vw, 64px) 0 clamp(48px, 6vw, 72px) !important;
  position: relative;
  background: var(--app-band) !important;
  box-shadow: 0 0 0 100vmax var(--app-band) !important;
  clip-path: inset(0 -100vmax);
}
html body.theme-premium[class] #oracion .prayer-card {
  max-width: 560px; padding: 22px; display: flex; flex-direction: column; gap: 18px;
}
html body.theme-premium[class] #oracion .prayer-points .give-way { cursor: default; }
html body.theme-premium[class] #oracion .give-icon { font-size: 22px; }

/* ---------- Donar modal: the donation card header on top ---------- */
html body.theme-premium[class] #donateModal .donate-modal-give {
  display: flex; flex-direction: column; gap: 14px;
  margin: 4px 0 18px; padding: 18px; border-radius: 20px;
  border: 1px solid rgba(201, 164, 107, 0.35);
  background: linear-gradient(135deg, #fffaf8, #fbe9e4 55%, #f6dcd5);
}
html body.theme-premium[class] #donateModal .donate-modal-give .give-title { font-size: 1.15rem !important; margin: 0 !important; padding-right: 36px; }
html body.theme-premium[class] #donateModal .donate-modal-give .give-quote p { font-size: 1.1rem !important; }
html body.theme-premium[class] #donateModal .donate-subtitle { text-align: left !important; font-weight: 600 !important; color: var(--app-ink) !important; margin: 0 0 10px !important; }
html body.theme-premium[class] #oracion .section-header-premium,
html body.theme-premium[class] #oracion .section-header-premium :is(.p-eyebrow, h2, p) { text-align: center !important; margin-left: auto !important; margin-right: auto !important; }
html body.theme-premium[class] #oracion .prayer-card { margin: 0 auto !important; }
html body.theme-premium[class] #oracion .prayer-points { margin: 0 !important; }
html body.theme-premium[class] #oracion .prayer-points .give-way { text-align: center !important; justify-content: center; }
html body.theme-premium[class] #donateModal .donate-modal-give .give-title { font-family: var(--app-sans, -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif) !important; font-weight: 700 !important; letter-spacing: -0.02em !important; }
html body.theme-premium[class] #oracion .give-cta { margin-top: 0 !important; }

/* New vector-based brand icon: the flower already fills the tile, no zoom needed. */
html body.theme-premium[class] header a.logo img { transform: scale(1.3) !important; }

/* Hero lead: premium editorial sentence (mirrors the app hero). */
html body.theme-premium[class] .hero-premium-content p.hero-lead {
  font-family: Georgia, "New York", "Times New Roman", serif !important;
  font-size: clamp(19px, 1.7vw, 23px) !important;
  line-height: 1.55 !important;
  letter-spacing: -0.005em !important;
  color: rgba(63, 38, 35, 0.86) !important;
  max-width: 34em !important;
  margin-top: 26px !important;
  padding-left: 20px !important;
  border-left: 2px solid #c9a46b !important;
  text-align: left !important;
}
html body.theme-premium[class] .hero-premium-content p.hero-lead em {
  font-family: Georgia, "New York", "Times New Roman", serif !important;
  font-style: italic !important;
  color: #a64b43 !important;
}

/* =====================================================================
   Reuniones (web) — mirrors the app's Reuniones tab
   ===================================================================== */
html body.theme-premium[class] #events .mt { width: min(100%, 1120px); margin: 28px auto 0; padding: 0 4px; text-align: left; }
html body.theme-premium[class] #events .mt * { box-sizing: border-box; }
html body.theme-premium[class] #events .mt-loading,
html body.theme-premium[class] #events .mt-empty { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-radius: 18px; background: #f6ebe8; color: #6d5250; font-size: 15px; }
html body.theme-premium[class] #events .mt-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }

/* Hero */
html body.theme-premium[class] #events .mt-hero { position: relative; overflow: hidden; border-radius: 28px; padding: 26px; display: flex; flex-direction: column; gap: 16px; color: #fff;
  background: radial-gradient(120% 80% at 100% 0%, rgba(255,255,255,0.14), transparent 55%), linear-gradient(140deg, #b8645a 0%, #a64b43 45%, #7f3530 100%);
  box-shadow: 0 22px 48px rgba(127, 53, 48, 0.28); }
html body.theme-premium[class] #events .mt-hero.is-live { background: radial-gradient(120% 80% at 100% 0%, rgba(255,255,255,0.16), transparent 55%), linear-gradient(140deg, #d85a4e, #b8433b 50%, #8f2f2a); }
html body.theme-premium[class] #events .mt-hero-top { display: flex; align-items: center; justify-content: space-between; }
html body.theme-premium[class] #events .mt-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,0.18); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
html body.theme-premium[class] #events .mt-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: mtPulse 1.6s ease-in-out infinite; }
@keyframes mtPulse { 50% { opacity: .35; } }
html body.theme-premium[class] #events .mt-hero-art { width: 52px; height: 52px; border-radius: 16px; background: transparent; overflow: hidden; display: grid; place-items: center; font-size: 24px; }
html body.theme-premium[class] #events .mt-hero-art img, html body.theme-premium[class] #events .mt-row-art img { width: 130%; height: 130%; object-fit: cover; }
html body.theme-premium[class] #events .mt-hero-title { margin: 6px 0 0 !important; font-family: Georgia, "New York", serif !important; font-weight: 400 !important; font-size: clamp(30px, 3.2vw, 40px) !important; line-height: 1.1 !important; color: #fff !important; text-align: left !important; }
html body.theme-premium[class] #events .mt-hero-when { display: flex; align-items: center; gap: 16px; }
html body.theme-premium[class] #events .mt-hero-time { font-size: clamp(48px, 5vw, 60px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; }
html body.theme-premium[class] #events .mt-hero-when strong { display: block; font-size: 17px; color: #fff; }
html body.theme-premium[class] #events .mt-hero-when small { display: block; font-size: 14px; color: rgba(255,255,255,0.82); margin-top: 2px; }
html body.theme-premium[class] #events .mt-join { margin-top: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 22px; border-radius: 16px; background: #fff !important; color: #a64b43 !important; font-weight: 700; font-size: 16px; text-decoration: none !important; transition: transform .2s ease, box-shadow .2s ease; }
html body.theme-premium[class] #events .mt-join:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,0.16); }

/* Week + agenda */
html body.theme-premium[class] #events .mt-week-head h3 { margin: 4px 0 12px !important; font-size: 22px !important; font-weight: 700 !important; letter-spacing: -0.02em !important; color: #3f2623 !important; text-align: left !important; }
html body.theme-premium[class] #events .mt-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 6px; border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgba(63,38,35,0.04), 0 8px 24px rgba(63,38,35,0.06); }
html body.theme-premium[class] #events .mt-day { appearance: none; border: 0; background: transparent; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 0 9px; border-radius: 14px; color: #3f2623; transition: background .2s ease; }
html body.theme-premium[class] #events .mt-day:hover { background: rgba(166,75,67,0.07); }
html body.theme-premium[class] #events .mt-day span { font-size: 11px; font-weight: 700; letter-spacing: .05em; color: #6d5250; }
html body.theme-premium[class] #events .mt-day strong { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
html body.theme-premium[class] #events .mt-day.is-today:not(.is-on) strong { color: #a64b43; }
html body.theme-premium[class] #events .mt-dot { width: 5px; height: 5px; border-radius: 50%; background: #a64b43; }
html body.theme-premium[class] #events .mt-dot.is-empty { opacity: 0; }
html body.theme-premium[class] #events .mt-day.is-on { background: #a64b43; box-shadow: 0 8px 18px rgba(166,75,67,0.3); }
html body.theme-premium[class] #events .mt-day.is-on span { color: rgba(255,255,255,0.85); }
html body.theme-premium[class] #events .mt-day.is-on strong { color: #fff; }
html body.theme-premium[class] #events .mt-day.is-on .mt-dot { background: #fff; }
html body.theme-premium[class] #events .mt-day-title { margin: 20px 0 10px 4px !important; font-size: 15px !important; font-weight: 700 !important; color: #6d5250 !important; text-align: left !important; }
html body.theme-premium[class] #events .mt-list { display: flex; flex-direction: column; gap: 10px; }
html body.theme-premium[class] #events .mt-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(63,38,35,0.04), 0 6px 18px rgba(63,38,35,0.05); }
html body.theme-premium[class] #events .mt-row.is-live { outline: 1.5px solid rgba(214,69,69,0.4); }
html body.theme-premium[class] #events .mt-row.is-past { opacity: .5; }
html body.theme-premium[class] #events .mt-row-time { width: 58px; flex: none; }
html body.theme-premium[class] #events .mt-row-time strong { display: block; font-size: 17px; font-weight: 700; color: #3f2623; font-variant-numeric: tabular-nums; }
html body.theme-premium[class] #events .mt-row-time small { display: block; font-size: 11px; font-weight: 600; color: #6d5250; }
html body.theme-premium[class] #events .mt-row.is-live .mt-row-time :is(strong, small) { color: #d64545; }
html body.theme-premium[class] #events .mt-row-rule { width: 3px; align-self: stretch; border-radius: 2px; background: #f9e4e0; }
html body.theme-premium[class] #events .mt-row.is-live .mt-row-rule { background: #d64545; }
html body.theme-premium[class] #events .mt-row-art { width: 40px; height: 40px; flex: none; border-radius: 12px; background: transparent; overflow: hidden; display: grid; place-items: center; font-size: 18px; }
html body.theme-premium[class] #events .mt-platform-icon { font-size: 21px; color: currentColor; }
html body.theme-premium[class] #events .mt-hero-art .mt-platform-icon { font-size: 27px; color: #fff; }
html body.theme-premium[class] #events .mt-row-copy { flex: 1; min-width: 0; }
html body.theme-premium[class] #events .mt-row-copy strong { display: block; font-size: 16px; font-weight: 600; color: #3f2623; line-height: 1.25; }
html body.theme-premium[class] #events .mt-row-copy small { display: block; font-size: 13px; color: #6d5250; margin-top: 2px; }
html body.theme-premium[class] #events .mt-join-round { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(166,75,67,0.08); color: #a64b43 !important; text-decoration: none !important; transition: transform .2s ease, background .2s ease; }
html body.theme-premium[class] #events .mt-join-round:hover { background: rgba(166,75,67,0.15); transform: scale(1.05); }
html body.theme-premium[class] #events .mt-join-round.is-live { background: #d64545; color: #fff !important; }

@media (max-width: 900px) {
  html body.theme-premium[class] #events .mt-grid { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 560px) {
  html body.theme-premium[class] #events .mt { padding: 0; margin-top: 20px; }
  html body.theme-premium[class] #events .mt-hero { padding: 20px; border-radius: 24px; }
  html body.theme-premium[class] #events .mt-join { width: 100%; }
  html body.theme-premium[class] #events .mt-day { padding: 8px 0 7px; }
  html body.theme-premium[class] #events .mt-day strong { font-size: 17px; }
}

/* =====================================================================
   Calendario (contact aside) — Apple widget style
   ===================================================================== */
html body.theme-premium[class] #calendarCard.cal-widget { padding: 0 !important; overflow: hidden !important; border-radius: 26px !important; background: #fff !important; border: 1px solid rgba(63,38,35,0.06) !important; box-shadow: 0 1px 2px rgba(63,38,35,0.04), 0 18px 44px rgba(63,38,35,0.08) !important; text-align: left !important; }
html body.theme-premium[class] #calendarCard.cal-widget *::before,
html body.theme-premium[class] #calendarCard.cal-widget *::after { content: none !important; display: none !important; }
html body.theme-premium[class] #calendarCard .calendar-head { display: flex !important; align-items: center !important; gap: 16px !important; padding: 22px 22px 18px !important; margin: 0 !important; border: 0 !important; border-bottom: 1px solid rgba(63,38,35,0.07) !important; background: linear-gradient(180deg, #fffaf8, #fff) !important; }
html body.theme-premium[class] #calendarCard .cal-date { width: 74px; flex: none; border-radius: 18px; overflow: hidden; text-align: center; background: #fff; box-shadow: 0 2px 10px rgba(63,38,35,0.10); }
html body.theme-premium[class] #calendarCard .cal-date span { display: block; padding: 5px 0 4px; background: #a64b43; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
html body.theme-premium[class] #calendarCard .cal-date strong { display: block; padding: 4px 0 8px; font-size: 34px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; color: #3f2623; font-variant-numeric: tabular-nums; }
html body.theme-premium[class] #calendarCard .cal-head-copy { min-width: 0; }
html body.theme-premium[class] #calendarCard .calendar-eyebrow { display: block !important; margin: 0 !important; padding: 0 !important; background: none !important; font-size: 11px !important; font-weight: 700 !important; letter-spacing: .14em !important; text-transform: uppercase !important; color: #a64b43 !important; }
html body.theme-premium[class] #calendarCard .calendar-head h3 { margin: 4px 0 2px !important; font-family: inherit !important; font-size: 21px !important; font-weight: 700 !important; letter-spacing: -0.02em !important; color: #3f2623 !important; }
html body.theme-premium[class] #calendarCard #calendarTodayText { margin: 0 !important; font-family: inherit !important; font-size: 14px !important; color: #6d5250 !important; text-transform: none !important; }
html body.theme-premium[class] #calendarCard .calendar-block { margin: 0 !important; padding: 16px 22px 18px !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
html body.theme-premium[class] #calendarCard .calendar-block + .calendar-block { border-top: 1px solid rgba(63,38,35,0.07) !important; }
html body.theme-premium[class] #calendarCard .cal-block-title { margin: 0 0 10px !important; font-family: inherit !important; font-size: 12px !important; font-weight: 700 !important; letter-spacing: .1em !important; text-transform: uppercase !important; color: #6d5250 !important; }
html body.theme-premium[class] #calendarCard .calendar-list { display: flex !important; flex-direction: column !important; gap: 8px !important; margin: 0 !important; }
html body.theme-premium[class] #calendarCard .calendar-item { display: flex !important; align-items: center !important; gap: 12px !important; margin: 0 !important; padding: 10px 12px !important; border: 0 !important; border-radius: 14px !important; background: #faf5f4 !important; box-shadow: none !important; min-height: 0 !important; }
html body.theme-premium[class] #calendarCard .calendar-item-time { flex: none !important; width: 78px !important; height: auto !important; min-height: 0 !important; padding: 0 0 0 10px !important; margin: 0 !important; border: 0 !important; border-left: 3px solid #a64b43 !important; border-radius: 0 !important; background: none !important; display: block !important; white-space: pre-line !important; text-align: left !important; font-size: 15px !important; line-height: 1.2 !important; font-weight: 700 !important; letter-spacing: -0.01em !important; color: #3f2623 !important; font-variant-numeric: tabular-nums; text-transform: capitalize; }
html body.theme-premium[class] #calendarCard .calendar-item-birthday .calendar-item-time { border-left-color: #c9a46b !important; font-size: 20px !important; }
html body.theme-premium[class] #calendarCard .calendar-item-copy { flex: 1 !important; min-width: 0 !important; }
html body.theme-premium[class] #calendarCard .calendar-item-title { margin: 0 !important; font-family: inherit !important; font-size: 15px !important; font-weight: 600 !important; color: #3f2623 !important; line-height: 1.25 !important; }
html body.theme-premium[class] #calendarCard .calendar-item-desc { margin: 2px 0 0 !important; font-size: 13px !important; color: #6d5250 !important; line-height: 1.3 !important; }
html body.theme-premium[class] #calendarCard .calendar-empty,
html body.theme-premium[class] #calendarCard .calendar-note { margin: 0 !important; padding: 12px 14px !important; border: 0 !important; border-radius: 14px !important; background: #faf5f4 !important; box-shadow: none !important; font-size: 14px !important; font-weight: 500 !important; color: #6d5250 !important; text-align: left !important; }

/* ---------- Floating "EN VIVO AHORA" banner (mirrors the app) ---------- */
.mt-live-banner { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 1200; width: min(560px, calc(100% - 32px));
  display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 16px; border-radius: 22px;
  background: rgba(255,255,255,0.94); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid rgba(214,69,69,0.18); box-shadow: 0 18px 40px rgba(63,38,35,0.18), 0 2px 6px rgba(63,38,35,0.08);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", sans-serif; animation: mtLiveIn .45s cubic-bezier(.22,1,.36,1); }
@keyframes mtLiveIn { from { opacity: 0; transform: translate(-50%, 24px); } to { opacity: 1; transform: translate(-50%, 0); } }
.mt-live-pulse { position: relative; width: 38px; height: 38px; flex: none; border-radius: 50%; background: rgba(214,69,69,0.12); display: grid; place-items: center; }
.mt-live-pulse i { width: 12px; height: 12px; border-radius: 50%; background: #d64545; box-shadow: 0 0 0 0 rgba(214,69,69,0.6); animation: mtLivePulse 1.6s ease-out infinite; }
@keyframes mtLivePulse { 70% { box-shadow: 0 0 0 10px rgba(214,69,69,0); } 100% { box-shadow: 0 0 0 0 rgba(214,69,69,0); } }
.mt-live-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mt-live-copy small { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #d64545; }
.mt-live-copy strong { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: #3f2623; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-live-join { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; background: #d64545; color: #fff !important; font-weight: 700; font-size: 15px; text-decoration: none !important; box-shadow: 0 8px 18px rgba(214,69,69,0.3); transition: transform .2s ease; }
.mt-live-join:hover { transform: translateY(-1px); }
.mt-live-close { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: #3f2623; font-size: 17px; cursor: pointer; }
.mt-live-close:hover { background: rgba(63,38,35,0.07); }
@media (max-width: 560px) {
  .mt-live-banner { bottom: 14px; gap: 10px; padding: 10px 8px 10px 12px; }
  .mt-live-copy strong { font-size: 15px; }
  .mt-live-join { padding: 10px 14px; font-size: 14px; }
}
body:has(.mt-live-banner) :is(.back-to-top, #backToTop) { bottom: 104px !important; }
/* Keep floating buttons clear of the live banner. */
body:has(.mt-live-banner) .social-follow,
body:has(.mt-live-banner) .whatsapp-float { transform: translateY(-92px) !important; transition: transform .35s cubic-bezier(.22,1,.36,1); }
@media (min-width: 900px) {
  body:has(.mt-live-banner) .social-follow,
  body:has(.mt-live-banner) .whatsapp-float { transform: none !important; }
}

/* ---------- Visual review fixes (2026-11-15) ---------- */
/* Join photo caption: both lines left-aligned. */
html body.theme-premium[class] .join-image-overlay,
html body.theme-premium[class] .join-image-overlay :is(span, p) { text-align: left !important; }
/* Audio playlist: titles read left to right, not centered. */
html body.theme-premium[class] .sc-track-title { text-align: left !important; flex: 1 1 auto !important; }
/* Gallery country tabs: a horizontal pill row on phones instead of stacked buttons. */
@media (max-width: 640px) {
  html body.theme-premium[class] #gallery .gallery-tabs { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; gap: 8px !important; overflow-x: auto !important; scrollbar-width: none; padding-bottom: 4px !important; }
  html body.theme-premium[class] #gallery .gallery-tabs::-webkit-scrollbar { display: none; }
  html body.theme-premium[class] #gallery .gallery-tabs .tab { flex: 0 0 auto !important; width: auto !important; white-space: nowrap !important; padding: 10px 16px !important; }
}
/* Hero seal: new logo, a bit larger inside the circle. */
html body.theme-premium[class] .p-hero-seal { object-fit: contain !important; padding: 10px !important; }
/* Footer mark uses the square flower icon. */
html body.theme-premium[class] .footer-logo { object-fit: cover !important; border-radius: 14px !important; }

/* ---------- ¿Quiénes somos?: intro + Misión / Visión cards ---------- */
html body.theme-premium[class] #about .about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; align-items: center; margin-top: 8px; }
html body.theme-premium[class] #about .about-intro p { margin: 0 0 24px !important; max-width: 34em; }
html body.theme-premium[class] #about .about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
html body.theme-premium[class] #about .about-card { background: #fff; border-radius: 22px; padding: 24px 22px; text-align: left; box-shadow: 0 1px 2px rgba(63,38,35,0.04), 0 10px 28px rgba(63,38,35,0.06); }
html body.theme-premium[class] #about .about-card-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: #f9e4e0; color: #a64b43; font-size: 18px; margin-bottom: 14px; }
html body.theme-premium[class] #about .about-card h3 { margin: 0 0 8px !important; font-family: Georgia, "New York", serif !important; font-weight: 400 !important; font-size: 24px !important; color: #3f2623 !important; text-align: left !important; }
html body.theme-premium[class] #about .about-card p { margin: 0 !important; font-size: 15px !important; line-height: 1.6 !important; color: #6d5250 !important; text-align: left !important; text-indent: 0 !important; }
@media (max-width: 900px) {
  html body.theme-premium[class] #about .about-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px) {
  html body.theme-premium[class] #about .about-cards { grid-template-columns: 1fr; gap: 12px; }
}

/* Join form: Día / Mes / Año instead of the US-style native date input. */
html body.theme-premium[class] .dob-picker { display: grid; grid-template-columns: 0.8fr 1.4fr 1fr; gap: 8px; }
html body.theme-premium[class] .dob-picker select { width: 100% !important; min-width: 0 !important; }
html body.theme-premium[class] #about .about-intro p { text-align: left !important; text-indent: 0 !important; }
html body.theme-premium[class] #calendarCard .calendar-item-birthday .calendar-item-date { font-size: 13px !important; letter-spacing: .04em !important; color: #a64b43 !important; }
html body.theme-premium[class] #calendarCard .calendar-block[hidden] { display: none !important; }
html body.theme-premium[class] #events .mt-row-bday { background: linear-gradient(135deg, #fffaf8, #fbeee9) !important; }
html body.theme-premium[class] #events .mt-row-bday .mt-row-rule { background: #c9a46b !important; }
html body.theme-premium[class] #events .mt-row-bday .mt-row-time strong { font-size: 20px !important; }

/* ---------- Event sign-up (destacadas with inscripción abierta) ---------- */
html body.theme-premium[class] .invitee-signup { margin: 10px auto 2px; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--app-wine); color: #fff; font: 600 14px/1 var(--app-sans); cursor: pointer; }
html body.theme-premium[class] .invitee-signup:hover { filter: brightness(1.06); }
html.es-lock { overflow: hidden; }
.es-backdrop { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; padding: 16px; background: rgba(25, 14, 16, 0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: es-fade .2s ease; }
.es-sheet { position: relative; width: min(440px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 22px; border-radius: 24px; background: var(--app-bg, #faf5f4); box-shadow: 0 24px 60px rgba(25, 14, 16, 0.25); font-family: var(--app-sans); color: var(--app-ink, #3f2623); animation: es-rise .25s cubic-bezier(.2,.8,.2,1); }
html body .es-backdrop .es-close { box-shadow: none !important; padding: 0 !important; min-height: 0 !important; }
.es-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--app-fill, rgba(166,75,67,.08)); color: var(--app-ink, #3f2623); cursor: pointer; }
.es-head { display: flex; gap: 14px; align-items: center; padding-right: 36px; }
.es-head img { width: 60px; height: 74px; object-fit: cover; border-radius: 12px; flex: none; }
.es-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--app-wine, #a64b43); }
.es-head h3 { margin: 2px 0 0; font-size: 20px; font-weight: 700; letter-spacing: -.3px; color: inherit; }
.es-head p { margin: 2px 0 0; font-size: 14px; color: var(--app-muted, #6d5250); }
.es-facts { list-style: none; margin: 16px 0 0; padding: 4px 14px; border-radius: 16px; background: var(--app-card, #fff); }
.es-facts li { display: flex; gap: 10px; align-items: center; padding: 10px 0; font-size: 15px; }
.es-facts li + li { border-top: 1px solid var(--app-separator, rgba(60,40,38,.12)); }
.es-facts i { width: 16px; color: var(--app-wine, #a64b43); text-align: center; }
.es-form { display: grid; gap: 12px; margin-top: 16px; }
.es-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--app-muted, #6d5250); text-align: left; }
.es-form label em { font-style: normal; font-weight: 400; }
.es-form input { min-height: 48px; padding: 0 14px; border: 1px solid var(--app-separator, rgba(60,40,38,.12)); border-radius: 14px; background: var(--app-card, #fff); font: 16px var(--app-sans); color: var(--app-ink, #3f2623); }
.es-form input:focus { outline: 2px solid var(--app-wine, #a64b43); outline-offset: 0; border-color: transparent; }
.es-stepper { display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 8px 14px; border-radius: 14px; background: var(--app-card, #fff); font-size: 15px; }
.es-stepper div { display: flex; align-items: center; gap: 12px; }
html body .es-backdrop .es-stepper button { width: 34px !important; height: 34px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 10px !important; background: var(--app-fill, rgba(166,75,67,.08)) !important; color: var(--app-wine, #a64b43) !important; box-shadow: none !important; font: 600 20px/1 var(--app-sans) !important; cursor: pointer; }
.es-stepper output { min-width: 18px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.es-error { margin: 0; color: #b3261e; font-size: 14px; }
.es-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; border: 0; border-radius: 16px; background: var(--app-wine, #a64b43); color: #fff; font: 700 16px var(--app-sans); cursor: pointer; }
.es-btn:disabled { opacity: .6; }
.es-note, .es-done small { display: block; text-align: center; font-size: 12px; color: var(--app-muted, #6d5250); }
.es-done { display: grid; justify-items: center; gap: 8px; margin-top: 20px; text-align: center; }
.es-done-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--app-fill, rgba(166,75,67,.08)); color: var(--app-wine, #a64b43); font-size: 22px; }
.es-done-icon.is-ok { background: #2e7d4f; color: #fff; }
.es-done h4 { margin: 4px 0 0; font-size: 20px; color: inherit; }
.es-done p { margin: 0 0 8px; color: var(--app-muted, #6d5250); font-size: 15px; }
@keyframes es-fade { from { opacity: 0; } }
@keyframes es-rise { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@media (max-width: 560px) { .es-backdrop { place-items: end center; padding: 0; } .es-sheet { width: 100%; border-radius: 24px 24px 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .es-backdrop, .es-sheet { animation: none; } }

/* Destacadas with registration: a tag on the poster; details open on press. */
html body.theme-premium[class] .invitees-track .card.has-signup { position: relative; cursor: pointer; }
html body.theme-premium[class] .invitee-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  background: var(--app-wine, #a64b43); color: #fff; font: 700 12px/1 var(--app-sans, system-ui);
  border: 1px solid rgba(255,255,255,.35); box-shadow: 0 4px 14px rgba(0,0,0,.22); pointer-events: none;
}
html body.theme-premium[class] .invitee-details {
  margin: 10px auto 2px; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 16px;
  border: 0; border-radius: 999px; background: rgba(166,75,67,.1); color: var(--app-wine, #a64b43);
  font: 600 14px/1 var(--app-sans, system-ui); cursor: pointer;
}
html body.theme-premium[class] .invitee-details:hover { background: rgba(166,75,67,.16); }
html body.theme-premium[class] .invitee-details i { font-size: 11px; }

/* Event address opens the device's maps */
.es-facts .es-map-link { display: grid; gap: 2px; color: inherit; text-decoration: none; }
.es-facts .es-map-link span { font-size: 13px; font-weight: 600; color: var(--app-wine, #a64b43); }
.es-facts .es-map-link:hover span { text-decoration: underline; }
