/* =========================================================================
   Jesucristo Fuente de Redención — 50° Aniversario
   Design system. Poppins + church blue (#2250fc) + anniversary indigo/gold.
   ========================================================================= */

:root {
  --ink: #1e2022;
  --body: #3c4043;
  --muted: #6b7280;
  --line: #e7e8ef;
  --paper: #ffffff;
  --mist: #f5f6fb;

  --brand: #2250fc;          /* church blue — continuity */
  --brand-dark: #163cc9;
  --aniv: #202c5e;           /* muted deep navy-blue for dark sections */
  --aniv-2: #33419c;
  --aniv-deep: #131a3d;
  --gold: #c8912e;           /* anniversary gold */
  --gold-2: #e8c07f;
  --gold-soft: #f3e6c8;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 44px -22px rgba(24, 20, 48, .38);
  --shadow-sm: 0 8px 24px -14px rgba(24, 20, 48, .3);
  --wrap: 1180px;
  --ff: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff);
  color: var(--body);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16.5px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .18s; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 { font-family: var(--ff); color: var(--ink); line-height: 1.18; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.1vw, 2.2rem); letter-spacing: -.015em; }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1.05em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--mist { background: var(--mist); }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.center { text-align: center; }
.lead { font-size: 1.16rem; color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow--gold { color: var(--gold); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.center .eyebrow::after { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 54px); }
.section-head.center { text-align: center; }
.divider-gold { width: 64px; height: 3px; margin: 18px 0; border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.center .divider-gold { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--ff); font-weight: 600; font-size: .98rem;
  padding: .85em 1.6em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .16s, box-shadow .2s, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 14px 30px -14px rgba(34,80,252,.7); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-gold { background: linear-gradient(120deg, var(--gold), #b47f22); color: #fff; box-shadow: 0 14px 30px -14px rgba(200,145,46,.75); }
.btn-gold:hover { color: #fff; filter: brightness(1.05); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--aniv); border-color:#fff; }
.btn-lg { padding: 1em 2em; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(25, 19, 48, .96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-bar { display: flex; align-items: center; gap: 20px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 14px; margin-right: auto; }
.brand__logo { height: 34px; width: auto; }
.brand__badge {
  height: 40px; width: auto; padding-left: 14px; margin-left: 4px;
  border-left: 1px solid rgba(255,255,255,.22);
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: rgba(255,255,255,.86); font-weight: 500; font-size: .96rem; }
.nav > .nav-item > a {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .6em .95em; border-radius: 999px;
}
.nav > .nav-item > a:hover, .nav > .nav-item.is-active > a { color: #fff; background: rgba(255,255,255,.1); }
.nav-item { position: relative; }
.nav-item.has-menu > a::after {
  content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: .7;
}
.nav-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px;
  background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s; border: 1px solid var(--line);
}
.nav-item.has-menu:hover .nav-menu, .nav-item.has-menu:focus-within .nav-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu a { display: block; color: var(--body); padding: .6em .85em; border-radius: 8px; font-size: .95rem; }
.nav-menu a:hover { background: var(--mist); color: var(--brand); }
.nav__cta.btn { padding: .6em 1.25em; }
.nav .pill-50 {
  display: inline-flex; align-items: center; gap: .45em;
  background: linear-gradient(120deg, var(--gold), #b47f22); color: #fff !important;
  padding: .55em 1.15em; border-radius: 999px; font-weight: 600;
}
.nav .pill-50:hover { filter: brightness(1.06); background: linear-gradient(120deg, var(--gold), #b47f22); }
.pill-50 b { font-weight: 800; }

.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 0; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: ""; display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; position: relative; transition: .2s;
}
.menu-toggle span { margin: 0 auto; }
.menu-toggle span::before { position: absolute; top: -7px; }
.menu-toggle span::after { position: absolute; top: 7px; }
body.menu-open .menu-toggle span { background: transparent; }
body.menu-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
body.menu-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,22,58,.72) 0%, rgba(13,22,58,.62) 40%, rgba(9,16,44,.92) 100%);
}
/* Ensure headings on dark brand backgrounds are always legible */
.hero h1, .hero h2, .hero h3,
.pagehead h1, .pagehead h2, .pagehead h3,
.aniv-hero h1, .aniv-hero h2, .aniv-hero h3,
.verse h1, .verse h2, .verse h3 { color: #fff; }
.hero__inner { position: relative; z-index: 1; padding: clamp(90px, 15vw, 168px) 0; max-width: 780px; }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255,255,255,.9); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.text-rotate { color: var(--gold-2); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(34,80,252,.12), rgba(34,80,252,.04));
  color: var(--brand); font-size: 1.5rem; margin-bottom: 16px;
}
.card--gold .card__icon { background: linear-gradient(135deg, rgba(200,145,46,.18), rgba(200,145,46,.05)); color: var(--gold); }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card-photo { width: 100%; height: 210px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 18px; }

.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid img { border-radius: var(--radius); box-shadow: var(--shadow-sm); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
.split--wide-text { grid-template-columns: 1.05fr .95fr; }
.prose p { color: var(--body); }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 1em; }
.prose ul li { position: relative; padding-left: 1.7em; margin-bottom: .6em; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* verse block */
.verse { background: var(--aniv); color: #fff; border-radius: var(--radius); text-align: center; padding: clamp(40px,6vw,68px) 24px; position: relative; overflow: hidden; }
.verse::before { content: "\201C"; position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 12rem; color: rgba(232,192,127,.14); font-family: Georgia, serif; }
.verse p { font-size: clamp(1.25rem, 3vw, 1.7rem); font-weight: 500; color: #fff; position: relative; }
.verse cite { color: var(--gold-2); font-style: normal; font-weight: 600; letter-spacing: .04em; }

/* info list (contact / footer) */
.info-line { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.info-line .ic { color: var(--gold); flex: 0 0 auto; margin-top: 3px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--aniv-deep); color: rgba(255,255,255,.78); padding: 64px 0 26px; }
.site-footer h4 { color: #fff; font-size: 1rem; letter-spacing: .02em; margin-bottom: 18px; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: var(--gold-2); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 40px; }
.footer-brand img.f-logo { height: 40px; margin-bottom: 18px; }
.footer-brand img.f-50 { height: 62px; margin: 6px 0 14px; }
.social { display: flex; gap: 10px; margin-top: 8px; }
.social a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff; transition: .2s;
}
.social a:hover { background: var(--gold); color: #fff; transform: translateY(-3px); }
.inp-badge { display: flex; align-items: center; gap: 14px; }
.inp-badge img { height: 58px; width: auto; background:#fff; border-radius:8px; padding:6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 46px; padding-top: 22px; text-align: center; font-size: .88rem; color: rgba(255,255,255,.55); }

/* ---------- Countdown ---------- */
.countdown { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.count-box {
  min-width: 92px; padding: 18px 10px; border-radius: var(--radius);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); text-align: center;
}
.count-box .num { font-size: clamp(1.9rem, 5vw, 2.9rem); font-weight: 800; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.count-box .lbl { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); margin-top: 8px; }

/* ---------- Anniversary hero band ---------- */
.aniv-hero { background: radial-gradient(1100px 520px at 74% -20%, var(--aniv-2) 0%, var(--aniv) 55%, var(--aniv-deep) 100%); color: #fff; position: relative; overflow: hidden; }
.aniv-hero::after { content:""; position:absolute; inset:0; background: url('/assets/img/logo50/logo-50-aniv-blanco.png') no-repeat right -60px top 50%; background-size: 460px; opacity: .05; pointer-events:none; }
.aniv-hero .wrap { position: relative; z-index: 1; }
.aniv-hero h1 { color: #fff; }
.aniv-badge-lg { height: clamp(120px, 20vw, 180px); width: auto; margin-bottom: 26px; filter: drop-shadow(0 12px 30px rgba(0,0,0,.35)); }

/* schedule */
.schedule { display: grid; gap: 14px; max-width: 620px; margin: 0 auto; }
.sched-row { display: flex; align-items: center; gap: 20px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius-sm); padding: 18px 22px; box-shadow: var(--shadow-sm); }
.sched-row .time { font-weight: 800; color: var(--aniv); font-size: 1.15rem; min-width: 92px; }
.sched-row .what { color: var(--body); }
.sched-row .what b { color: var(--ink); display: block; }

/* ---------- Gallery ---------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.chip { border: 1px solid var(--line); background: #fff; color: var(--body); border-radius: 999px; padding: .5em 1.15em; font: inherit; font-size: .9rem; cursor: pointer; transition: .18s; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-active { background: var(--aniv); border-color: var(--aniv); color: #fff; }
.masonry { columns: 4 220px; column-gap: 16px; }
.masonry figure { margin: 0 0 16px; break-inside: avoid; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); cursor: zoom-in; position: relative; background: var(--mist); }
.masonry img { width: 100%; display: block; transition: transform .4s, filter .3s; filter: saturate(.96); }
.masonry figure:hover img { transform: scale(1.05); filter: saturate(1.05); }
.masonry figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; font-size: .78rem; color: #fff; background: linear-gradient(transparent, rgba(20,15,38,.78)); opacity: 0; transition: .25s; }
.masonry figure:hover figcaption { opacity: 1; }
.gallery-more { text-align: center; margin-top: 34px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15,11,30,.94); display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer; border-radius: 50%; width: 52px; height: 52px; font-size: 1.5rem; display: grid; place-items: center; transition: .2s; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--gold); }
.lightbox__close { top: 22px; right: 22px; }
.lightbox__nav.prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__nav.next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 42px); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); font-size: .92rem; margin-bottom: 7px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
.field input[type=text], .field input[type=email], .field textarea, .field input[type=password] {
  width: 100%; padding: .8em 1em; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: var(--mist); transition: .18s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(34,80,252,.1); }
.field textarea { min-height: 96px; resize: vertical; }
.dropzone { border: 2px dashed var(--line); border-radius: var(--radius); padding: 32px 20px; text-align: center; color: var(--muted); cursor: pointer; transition: .18s; background: var(--mist); }
.dropzone:hover, .dropzone.drag { border-color: var(--brand); color: var(--brand); background: rgba(34,80,252,.04); }
.dropzone .big { font-size: 2rem; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px,1fr)); gap: 10px; margin-top: 16px; }
.thumbs .t { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--mist); }
.thumbs .t img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .t button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: .8rem; line-height: 1; }
.form-note { font-size: .86rem; color: var(--muted); }
.alert { border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 18px; font-size: .95rem; }
.alert-ok { background: #e9f9ef; color: #17663a; border: 1px solid #b7e6c8; }
.alert-err { background: #fdecec; color: #9b1c1c; border: 1px solid #f5c2c2; }
.alert-info { background: #eef2ff; color: #26356e; border: 1px solid #cdd7fb; }

/* ---------- Admin ---------- */
.admin-shell { min-height: 70vh; }
.queue { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 20px; }
.q-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.q-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--mist); }
.q-card .q-body { padding: 14px 16px; }
.q-card .q-meta { font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.q-card .q-actions { display: flex; gap: 8px; }
.q-actions .btn { flex: 1; padding: .55em 1em; font-size: .88rem; }
.btn-approve { background: #17a34a; color: #fff; }
.btn-approve:hover { background: #128239; color:#fff; }
.btn-reject { background: #fff; color: #b91c1c; border-color: #f0c8c8; }
.btn-reject:hover { background: #b91c1c; color: #fff; }
.badge { display: inline-block; font-size: .72rem; font-weight: 600; padding: .2em .7em; border-radius: 999px; }
.badge-pending { background: var(--gold-soft); color: #8a6011; }
.badge-approved { background: #e9f9ef; color: #17663a; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.tabs button { background: none; border: 0; padding: .8em 1.1em; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs button.is-active { color: var(--aniv); border-color: var(--gold); }

/* misc */
.pagehead { background: var(--aniv); color: #fff; padding: clamp(48px,7vw,84px) 0 clamp(40px,6vw,64px); position: relative; overflow: hidden; }
.pagehead::after { content:""; position:absolute; right:-40px; top:50%; transform:translateY(-50%); width:320px; height:320px; background:url('/assets/img/logo50/logo-50-aniv-blanco.png') center/contain no-repeat; opacity:.06; }
.pagehead h1 { color: #fff; margin-bottom: .2em; }
.pagehead .crumb { color: rgba(255,255,255,.7); font-size: .9rem; }
.pagehead .crumb a { color: var(--gold-2); }
.hide { display: none !important; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack-sm > * + * { margin-top: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .split--wide-text { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .masonry { columns: 3 180px; }
}
@media (max-width: 780px) {
  .menu-toggle { display: block; }
  .brand__badge { height: 34px; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(84vw, 340px);
    background: var(--aniv-deep); flex-direction: column; align-items: stretch;
    padding: 90px 20px 30px; gap: 4px; transform: translateX(100%); transition: transform .28s ease;
    overflow-y: auto; box-shadow: -20px 0 50px rgba(0,0,0,.4);
  }
  body.menu-open .nav { transform: translateX(0); }
  body.menu-open { overflow: hidden; }
  .nav > .nav-item > a { padding: .8em .9em; border-radius: 10px; justify-content: space-between; }
  .nav-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 6px 14px; display: none; }
  .nav-item.has-menu.open .nav-menu { display: block; }
  .nav-menu a { color: rgba(255,255,255,.72); }
  .nav-menu a:hover { background: rgba(255,255,255,.08); color: #fff; }
  .nav .pill-50 { justify-content: center; margin-top: 8px; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(10,7,20,.5); opacity: 0; visibility: hidden; transition: .25s; z-index: 55; }
  body.menu-open .nav-backdrop { opacity: 1; visibility: visible; }
}
@media (max-width: 560px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .masonry { columns: 2 130px; }
  .sched-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero__actions .btn { flex: 1; }
}
