:root {
  color-scheme: light;
  --blue: #2d628c;
  --blue-hover: #1b4c72;
  --blue-soft: #edf4f8;
  --blue-deep: #102f4c;
  --blue-accent: #83accb;
  --ink: #24384b;
  --muted: #506477;
  --line: #cbdbe6;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: var(--sans); -webkit-font-smoothing: antialiased; }
main { padding-bottom: 76px; background: #fff; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, p, blockquote { margin-top: 0; }
section[id], article[id], footer[id], p[id] { scroll-margin-top: 30px; }
.shell { width: min(100% - 48px, 960px); margin-inline: auto; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 50; padding: 12px 16px; color: #fff; background: var(--blue); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blue-hover); outline-offset: 3px; }

.site-header { position: relative; z-index: 30; background: #fff; }
.header-inner { min-height: 142px; display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.brand { width: 152px; flex: 0 0 152px; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.brand img { width: 122px; height: auto; }
.site-nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 22px; margin-top: 34px; }
.site-nav a { font-size: 11px; line-height: 1.4; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--blue); }
.menu-toggle { display: none; }

.hero { min-height: 624px; min-height: clamp(440px, calc(100svh - 142px), 624px); display: grid; place-items: center; position: relative; isolation: isolate; color: #fff; background: var(--blue-deep) url("../images/portada-iglesia.jpg") center 53% / cover no-repeat; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: rgba(13, 43, 69, .4); }
.hero-content { padding-block: clamp(64px, 12vh, 100px); text-align: center; }
.hero h1 { max-width: 850px; margin: 0 auto 33px; font: 400 clamp(42px, 5.5vw, 67px)/1.15 var(--serif); letter-spacing: .045em; text-transform: uppercase; text-wrap: balance; }
.button { min-width: 164px; min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; color: #fff; background: var(--blue); border: 1px solid var(--blue); font: 11px/1.2 var(--sans); letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.button:hover { background: var(--blue-hover); border-color: var(--blue-hover); }

.events { padding: 74px 0 85px; background: var(--blue-soft); text-align: center; }
.events h2, .section-heading h2, .invitation h2 { margin-bottom: 44px; font: 400 29px/1.25 var(--serif); letter-spacing: .16em; text-transform: uppercase; }
.events h2, .section-heading h2 { color: var(--blue); }
.events-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.event { min-height: 225px; display: flex; flex-direction: column; align-items: center; padding: 17px 31px 6px; }
.event + .event { border-left: 1px solid var(--line); }
.event-label { margin-bottom: 12px; color: var(--blue); font: 13px/1.4 var(--serif); text-transform: uppercase; }
.event h3 { margin-bottom: 12px; color: var(--blue); font: 400 32px/1.18 var(--serif); text-transform: uppercase; }
.event > p:not(.event-label) { margin-bottom: 15px; color: var(--muted); font: 13px/1.7 var(--sans); }
.event a { margin-top: auto; color: var(--blue); font: 11px/1.4 var(--sans); letter-spacing: .05em; text-decoration: none; text-transform: uppercase; }
.event a:hover, .feature-copy a:hover, .footer-grid a:hover { text-decoration: underline; }
.event-verse { justify-content: center; }
.event-verse blockquote { margin-bottom: 17px; font: 400 21px/1.45 var(--serif); }
.event-verse p { font-size: 11px !important; letter-spacing: .1em; }

.welcome { padding: 82px 0 104px; background: #fff; }
.section-heading { max-width: 720px; margin: 0 auto 51px; text-align: center; }
.section-heading h2 { margin-bottom: 18px; }
.section-heading p { max-width: 650px; margin: 0 auto; color: var(--muted); font: 15px/1.7 var(--sans); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
.feature-card { background: var(--blue-soft); }
.feature-card img { width: 100%; height: 210px; object-fit: cover; }
.feature-card:nth-child(1) img { object-position: center 45%; }
.feature-card:nth-child(2) img { object-position: center 50%; }
.feature-card:nth-child(3) img { object-position: center 55%; }
.feature-copy { min-height: 278px; display: flex; flex-direction: column; align-items: center; padding: 29px 24px 33px; text-align: center; }
.feature-copy h3 { min-height: 44px; display: flex; align-items: center; justify-content: center; margin: 0; color: var(--blue); font: 400 22px/1.2 var(--serif); letter-spacing: .065em; text-transform: uppercase; }
.short-rule { width: 48px; height: 2px; margin: 16px auto 17px; background: var(--blue-accent); }
.feature-copy p { margin: 0 0 22px; color: var(--muted); font: 13px/1.6 var(--sans); }
.feature-copy a { margin-top: auto; color: var(--blue); font: 11px/1.4 var(--sans); letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }
.feature-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: auto; }
.feature-copy .feature-links a { margin-top: 0; }

.invitation { padding: 82px 0 84px; color: #fff; background: linear-gradient(115deg, rgba(11, 42, 67, .77), rgba(35, 86, 125, .75)), url("../images/adoracion-comunidad.jpg") center 46% / cover no-repeat; background-color: var(--blue-deep); text-align: center; }
.invitation h2 { margin-bottom: 20px; }
.invitation p { max-width: 635px; margin: 0 auto 29px; font: 15px/1.75 var(--sans); }
.invitation-actions { display: flex; justify-content: center; gap: 13px; }
.invitation .button { color: var(--blue); background: #fff; border-color: #fff; }
.invitation .button:hover { color: #fff; background: transparent; }

.site-footer { color: #f3f7ff; background: linear-gradient(145deg, #173e60, var(--blue-deep)); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 44px; padding-top: 76px; padding-bottom: 68px; }
.footer-grid h2, .footer-grid h3 { margin-bottom: 22px; font: 400 19px/1.35 var(--serif); letter-spacing: .07em; text-transform: uppercase; }
.footer-grid h3 { font-size: 16px; }
.footer-grid p { margin-bottom: 14px; color: #dce9f2; font: 13px/1.75 var(--sans); }
.footer-grid a { color: #fff; font: 11px/1.5 var(--sans); letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.footer-bottom { padding: 20px 0 24px; border-top: 1px solid #53718d; color: #dce9f2; font-size: 11px; }

@media (min-width: 641px) and (max-width: 900px) {
  .events-grid, .feature-grid, .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .events-grid .event-verse { grid-column: 1 / -1; min-height: 150px; border-left: 0; border-top: 1px solid var(--line); }
  .feature-card:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-card:last-child img { height: 300px; }
  .footer-grid > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .header-inner { min-height: 100px; gap: 15px; }
  .brand { width: 132px; flex-basis: 132px; }
  .brand img { width: 92px; }
  .menu-toggle { width: 42px; height: 42px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; border: 1px solid var(--line); background: #fff; cursor: pointer; }
  .menu-toggle span { width: 18px; height: 1px; background: var(--blue); }
  .site-nav { display: none; position: absolute; z-index: 20; top: 100%; left: 0; right: 0; margin: 0; padding: 10px 24px 20px; background: #fff; box-shadow: 0 10px 18px rgba(0,0,0,.08); }
  .site-nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { padding: 12px 0; }
  .hero { min-height: 590px; min-height: clamp(430px, calc(100svh - 100px), 590px); background-position: center; }
  .hero h1 { font-size: clamp(37px, 7.5vw, 57px); }
  .feature-grid { gap: 14px; }
  .feature-card img { height: 170px; }
  .feature-copy { min-height: 300px; padding: 24px 15px; }
  .feature-copy h3 { font-size: 18px; }
  .footer-grid { gap: 24px; }
}
@media (max-width: 640px) {
  main { padding-bottom: 48px; }
  .shell { width: min(100% - 36px, 960px); }
  .hero { min-height: 555px; min-height: clamp(430px, calc(100svh - 100px), 555px); }
  .hero::before { background: rgba(13, 43, 69, .48); }
  .hero h1 { font-size: clamp(36px, 9vw, 49px); line-height: 1.17; }
  .events { padding: 61px 0; }
  .events-grid { grid-template-columns: 1fr; }
  .event { min-height: 0; padding: 26px 20px; }
  .event + .event { border-left: 0; border-top: 1px solid var(--line); }
  .event-verse { padding-bottom: 5px; }
  .events h2, .section-heading h2, .invitation h2 { font-size: 25px; letter-spacing: .12em; }
  .events h2 { margin-bottom: 25px; }
  .welcome { padding: 67px 0 78px; }
  .section-heading { margin-bottom: 34px; }
  .section-heading p { font-size: 14px; }
  .feature-grid { grid-template-columns: 1fr; gap: 25px; }
  .feature-card img { height: 220px; }
  .feature-copy { min-height: 228px; padding: 26px 22px 29px; }
  .feature-copy h3 { min-height: 0; font-size: 21px; }
  .invitation { padding: 65px 0; }
  .invitation p { font-size: 14px; }
  .invitation-actions { flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; gap: 29px; padding-top: 57px; padding-bottom: 46px; }
  .footer-grid h2, .footer-grid h3 { margin-bottom: 12px; }
}
@media (max-width: 360px) {
  .shell { width: min(100% - 28px, 960px); }
  .hero-content { padding-block: 56px; }
  .hero h1 { font-size: clamp(28px, 9vw, 34px); letter-spacing: .025em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
