:root {
  --bg: #0F1F4A;
  --bg-deep: #0A1535;
  --surface: #16255C;
  --surface-hover: #1E3170;
  --gold: #F2C14E;
  --red: #B3261E;
  --red-dot: #E0393B;
  --light-bg: #F6F3EC;
  --light-card: #FFFFFF;
  --chip-bg: #FBF1D6;
  --chip-text: #7A5A0E;
  --text-on-dark: #FFFFFF;
  --text-on-dark-2: #D7DCF2;
  --text-on-dark-3: #AEB7DC;
  --footer-text: #8D96C4;
  --text-on-light: #0F1F4A;
  --text-on-light-2: #4A5163;
  --label-on-light: #6A7184;
  --input-border: #DDE1E8;
  --input-bg: #F7F8FA;
  --max-w: 1320px;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-on-dark);
  font-family: 'Archivo', sans-serif;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
a { color: var(--gold); text-decoration: none; }
input, textarea, select { font-family: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; }
p { margin: 0; }
em {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-style: italic;
  color: var(--gold);
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
.section { padding: clamp(80px, 11vw, 150px) 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold:hover { background: #fff; color: var(--bg); }
.btn-outline {
  border: 1px solid rgba(255,255,255,.4);
  color: var(--text-on-dark);
  font-weight: 500;
}
.btn-outline:hover { background: #fff; color: var(--bg); }
.btn-dark { background: var(--bg); color: var(--text-on-dark); }
.btn-dark:hover { background: var(--red); color: var(--text-on-dark); }
.btn-outline-dark {
  border: 1px solid var(--text-on-light);
  background: transparent;
  color: var(--text-on-light);
  font-weight: 600;
  padding: 12px 20px;
  font-size: 15px;
}
.btn-full { width: 100%; margin-top: 6px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.eyebrow-gold { color: var(--gold); }
.eyebrow-red { color: var(--red); }
.eyebrow.small { font-size: 12px; letter-spacing: .18em; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red-dot); }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  background: rgba(15,31,74,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.site-header.scrolled {
  background: rgba(15,31,74,.92);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.brand-logo-pill { transition: transform .2s ease; }
.brand:hover .brand-logo-pill { transform: scale(1.06); }
.main-nav a:not(.btn) { position: relative; transition: color .2s ease; }
.main-nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -4px;
  height: 2px;
  background: var(--gold);
  transition: right .25s ease;
}
.main-nav a:not(.btn):hover::after { right: 0; }
.header-inner {
  padding-top: 12px; padding-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 14px; color: #fff; }
.brand-logo-pill {
  background: #fff;
  border-radius: 10px;
  padding: 4px 8px;
  display: flex;
}
.brand-logo-pill img { height: 38px; width: auto; display: block; }
.brand-logo-pill.large { border-radius: 14px; padding: 8px 12px; }
.brand-logo-pill.large img { height: 64px; }
.brand-name { font-weight: 800; font-size: 15px; letter-spacing: .02em; line-height: 1.1; }

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 500;
}
.main-nav a:not(.btn) { color: var(--text-on-dark-2); }
.main-nav a:not(.btn):hover { color: var(--gold); }
.nav-cta { padding: 12px 22px; font-size: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,31,74,.35) 0%, rgba(15,31,74,.55) 45%, var(--bg) 100%);
}
.hero-inner {
  position: relative;
  width: 100%;
  padding-top: 160px;
  padding-bottom: clamp(48px, 6vw, 80px);
  display: grid;
  gap: 28px;
}
.hero h1 {
  font-weight: 800;
  font-size: clamp(48px, 8.4vw, 128px);
  line-height: .92;
  letter-spacing: -.035em;
  max-width: 13ch;
}
.hero-text {
  max-width: 52ch;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--text-on-dark-2);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-anim {
  opacity: 0;
  animation: heroIn .8s cubic-bezier(.16,.8,.3,1) forwards;
  animation-delay: calc(var(--d, 0) * .12s + .1s);
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.chip {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 14px;
  color: var(--text-on-dark);
}

/* Two column sections */
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

/* Nosotros */
.nosotros-text { display: grid; gap: 26px; }
.nosotros-text h2 { font-weight: 800; font-size: clamp(40px, 5.4vw, 76px); line-height: .96; }
.lead { font-size: 19px; line-height: 1.65; color: var(--text-on-dark-3); max-width: 50ch; }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin-top: 8px;
}
.pillar-card {
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  font-size: 19px;
}
.pillar-card .bar { width: 6px; height: 28px; border-radius: 3px; background: var(--gold); }

.nosotros-visual { position: relative; border-radius: 28px; overflow: hidden; }
.nosotros-visual img { width: 100%; aspect-ratio: 1/1; object-fit: cover; object-position: 50% 30%; }
.glass-card {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  padding: 20px 24px;
  border-radius: 18px;
  background: rgba(15,31,74,.78);
  backdrop-filter: blur(12px);
  display: grid;
  gap: 4px;
}
.glass-name { font-size: 22px; font-weight: 600; }

/* Horarios */
.horarios { background: var(--light-bg); color: var(--text-on-light); }
.horarios-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.horarios-head > div { display: grid; gap: 18px; }
.horarios-head h2 { font-weight: 800; font-size: clamp(40px, 5.4vw, 76px); line-height: .96; max-width: 16ch; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 20px;
  margin-bottom: 20px;
}
.service-card {
  border-radius: 28px;
  background: var(--light-card);
  padding: clamp(32px, 4vw, 48px);
  display: grid;
  gap: 14px;
  box-shadow: 0 1px 0 rgba(15,31,74,.06);
}
.service-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.service-day {
  font-size: 15px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--label-on-light);
}
.service-note {
  padding: 7px 14px; border-radius: 999px; background: var(--chip-bg); color: var(--chip-text); font-size: 13px; font-weight: 600;
}
.service-time { font-weight: 800; font-size: clamp(64px, 7vw, 96px); line-height: .9; letter-spacing: -.04em; }
.service-card h3 { margin-top: 8px; font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.service-card p { font-size: 17px; line-height: 1.55; color: var(--text-on-light-2); }

.prayer-block {
  border-radius: 28px;
  background: var(--bg);
  color: var(--text-on-dark);
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  gap: 24px;
  margin-top: 20px;
}
.prayer-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: baseline; }
.prayer-head h3 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.prayer-head span { font-size: 15px; color: var(--text-on-dark-3); }
.prayer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 12px;
}
.prayer-card {
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--surface);
  display: grid;
  gap: 6px;
}
.prayer-time {
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
}
.prayer-group { font-size: 18px; font-weight: 500; }

/* Soy nuevo */
.nuevo-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: 56px; }
.nuevo-head h2 { font-weight: 800; font-size: clamp(40px, 5.4vw, 76px); line-height: .96; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}
.step-card {
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.06);
  padding: 36px;
  display: grid;
  gap: 18px;
  align-content: start;
  color: var(--text-on-dark);
  transition: background .18s ease;
}
.step-card:hover { background: var(--surface-hover); color: var(--text-on-dark); }
.step-n { font-family: 'Instrument Serif', serif; font-size: 64px; line-height: .8; color: var(--gold); }
.step-card h3 { font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.step-card p { font-size: 17px; line-height: 1.55; color: var(--text-on-dark-3); }
.step-cta { font-size: 15px; font-weight: 600; color: var(--gold); }

/* Gallery */
.gallery-section { padding-top: 0; }
.gallery-grid-45 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}
.gallery-grid-45 img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 24px; }
.gallery-grid-45 img:nth-child(3) { object-position: 50% 30%; }

/* Oracion */
.oracion {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  border-top: 1px solid rgba(255,255,255,.06);
}
.oracion .two-col { align-items: start; }
.oracion-text { display: grid; gap: 24px; }
.oracion-text h2 { font-weight: 800; font-size: clamp(40px, 5.4vw, 76px); line-height: .96; }
.quote {
  margin-top: 12px;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 26px;
  line-height: 1.35;
  color: #fff;
  max-width: 30ch;
}
.prayer-form-card {
  border-radius: 28px;
  background: var(--light-card);
  color: var(--text-on-light);
  padding: clamp(28px, 4vw, 44px);
}
.prayer-form { display: grid; gap: 16px; }
.prayer-form[hidden], .prayer-success[hidden] { display: none; }
.prayer-form label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.prayer-form input, .prayer-form textarea {
  padding: 15px 18px;
  border-radius: 14px;
  border: 1px solid var(--input-border);
  font-size: 16px;
  background: var(--input-bg);
  color: var(--text-on-light);
}
.prayer-form textarea { resize: vertical; }
.prayer-success { display: grid; gap: 14px; padding: 24px 0; }
.prayer-success .check {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--chip-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--chip-text); font-size: 24px; font-weight: 800;
}
.prayer-success h3 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.prayer-success p { font-size: 17px; line-height: 1.6; color: var(--text-on-light-2); }
.prayer-success .btn { justify-self: start; margin-top: 6px; }

/* Ubicacion */
.ubicacion-card {
  border-radius: 32px;
  overflow: hidden;
  background: var(--surface);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}
.ubicacion-text {
  padding: clamp(32px, 5vw, 64px);
  display: grid;
  gap: 22px;
  align-content: center;
}
.ubicacion-text h2 { font-weight: 800; font-size: clamp(36px, 4.4vw, 60px); line-height: .98; }
.ubicacion-text p { font-size: 19px; color: var(--text-on-dark-3); }
.ubicacion-card iframe {
  width: 100%; min-height: 380px; height: 100%; border: 0; display: block; filter: grayscale(.3);
}

/* Footer */
.site-footer { border-top: 1px solid rgba(255,255,255,.08); }
.footer-inner {
  padding-top: clamp(64px, 8vw, 96px);
  padding-bottom: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}
.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-tag { font-size: 14px; color: var(--text-on-dark-3); }
.footer-col { display: grid; gap: 10px; align-content: start; font-size: 15px; color: var(--text-on-dark-2); line-height: 1.6; }
.footer-link { color: #fff; }
.footer-link:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  padding-bottom: 32px;
  font-size: 13px;
  color: var(--footer-text);
}

/* Responsive */
@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header.open .main-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(15,31,74,.98);
    padding: 20px 24px 28px;
    gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav-cta { margin-top: 8px; }
  .pillars-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { min-height: 92vh; }
  .hero-inner { padding-top: 108px; padding-bottom: 40px; gap: 20px; }
  .hero h1 { font-size: clamp(38px, 11vw, 48px); max-width: 11ch; }
  .hero-text { font-size: 16px; }
  .chip-row { gap: 8px; padding-top: 20px; margin-top: 14px; }
  .chip { padding: 8px 14px; font-size: 13px; }

  .nosotros-text h2,
  .horarios-head h2,
  .nuevo-head h2,
  .oracion-text h2 { font-size: clamp(32px, 9vw, 40px); }
  .lead { font-size: 17px; }

  .ubicacion-text { padding: 28px 24px; gap: 16px; }
  .ubicacion-text h2 { font-size: clamp(26px, 8vw, 32px); }
  .ubicacion-text p { font-size: 17px; }

  .service-time { font-size: clamp(48px, 16vw, 64px); }
  .service-card { padding: 28px 24px; }
  .prayer-block { padding: 24px 20px; }

  .step-card { padding: 28px 24px; }
  .step-n { font-size: 48px; }

  .quote { font-size: 21px; }

  .gallery-grid-45 img { aspect-ratio: 4/3; }

  .glass-card { padding: 16px 18px; }
  .glass-name { font-size: 19px; }
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transition: opacity .7s cubic-bezier(.16,.8,.3,1), transform .7s cubic-bezier(.16,.8,.3,1);
  transition-delay: calc(var(--rd, 0) * .1s);
}
[data-reveal="up"] { transform: translateY(28px); }
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal].is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Micro-interactions */
.pillar-card, .service-card, .prayer-card, .step-card {
  transition: transform .25s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease;
}
.pillar-card:hover { transform: translateY(-3px); border-color: rgba(242,193,78,.35); }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(15,31,74,.1); }
.prayer-card:hover { transform: translateY(-3px); background: var(--surface-hover); }
.step-card:hover { transform: translateY(-5px); }
.step-n { transition: transform .3s ease; }
.step-card:hover .step-n { transform: translateX(4px); }
.step-cta { display: inline-flex; align-items: center; gap: 4px; }

.gallery-grid-45 img { transition: transform .5s cubic-bezier(.16,.8,.3,1); }
.gallery-grid-45 { overflow: hidden; }
.gallery-grid-45 > img { overflow: hidden; }
.gallery-grid-45 img:hover { transform: scale(1.04); }

.nosotros-visual { transition: transform .4s ease; }
.nosotros-visual:hover img { transform: scale(1.03); }
.nosotros-visual img { transition: transform .5s ease; }

@keyframes checkPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}
.prayer-success .check { animation: checkPop .5s cubic-bezier(.34,1.56,.64,1) both; }
.prayer-success h3, .prayer-success p, .prayer-success .btn {
  opacity: 0;
  animation: heroIn .5s ease forwards;
}
.prayer-success h3 { animation-delay: .15s; }
.prayer-success p { animation-delay: .25s; }
.prayer-success .btn { animation-delay: .35s; }

.chip { transition: transform .2s ease, background .2s ease; }
.chip:hover { transform: translateY(-2px); background: rgba(255,255,255,.14); }

.nav-toggle span { transition: transform .25s ease, opacity .25s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
