:root {
  --navy: #172431;
  --navy-soft: #223448;
  --logo-blue: #0b218f;
  --ivory: #f8f2e7;
  --warm-white: #fffaf1;
  --ink: #252827;
  --gold: #b89048;
  --gold-dark: #7d612d;
  --stone: #d8cbb7;
  --stone-warm: #bba98c;
  --serif-display: "Cormorant Garamond", Georgia, serif;
  --serif-body: "Source Serif 4", Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gutter: clamp(1.25rem, 3vw, 4rem);
  --section-space: clamp(5rem, 10vw, 9rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; overflow-x: hidden; background: var(--warm-white); color: var(--ink); font-family: var(--serif-body); font-size: 1rem; line-height: 1.75; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid #e0b559; outline-offset: 4px; }

.skip-link { position: fixed; z-index: 1000; left: 1rem; top: 1rem; transform: translateY(-180%); background: var(--ivory); color: var(--navy); padding: .7rem 1rem; font-family: var(--sans); font-weight: 700; }
.skip-link:focus { transform: none; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.site-header { position: fixed; z-index: 100; top: 0; left: 0; right: 0; height: 5rem; display: flex; align-items: center; justify-content: space-between; padding: .65rem var(--gutter); color: #fff; transition: background-color .35s ease, box-shadow .35s ease; }
.site-header.scrolled, .site-header.menu-open { background: rgba(23, 36, 49, .96); box-shadow: 0 8px 30px rgba(0,0,0,.14); backdrop-filter: blur(12px); }
.brand-mark { width: 3.45rem; height: 3.45rem; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: var(--ivory); box-shadow: 0 0 0 1px rgba(184,144,72,.6), 0 8px 24px rgba(0,0,0,.2); }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.primary-nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.15rem); font-family: var(--sans); font-size: .82rem; letter-spacing: .08em; }
.primary-nav a { text-decoration: none; padding: .55rem .05rem; border-bottom: 1px solid transparent; }
.primary-nav a:hover, .primary-nav a[aria-current="true"] { border-color: var(--gold); }
.menu-toggle { display: none; width: 3rem; height: 3rem; padding: .65rem; border: 0; background: transparent; color: #fff; cursor: pointer; }
.menu-toggle span { display: block; height: 1px; margin: .35rem 0; background: currentColor; transition: transform .25s, opacity .25s; }

.hero { position: relative; min-height: max(47rem, 100svh); display: flex; align-items: flex-end; isolation: isolate; color: #fff; background: #27313a url("assets/anunciacion-fra-angelico.webp") center 38% / cover no-repeat; }
.hero-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,22,34,.92) 0%, rgba(14,25,36,.65) 44%, rgba(14,25,36,.18) 70%), linear-gradient(0deg, rgba(9,18,27,.78) 0%, transparent 48%); }
.hero-content { width: calc(100% - (2 * var(--gutter))); margin: 7rem var(--gutter) clamp(4.5rem, 9vh, 7.5rem); }
.hero-logo { width: min(66rem, 84%); margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.hero-logo img { width: 100%; height: auto; }
h1, h2, h3, blockquote p { font-family: var(--serif-display); }
.hero h1 { max-width: 39rem; margin: 0 0 1.15rem; font-size: clamp(3.15rem, 7vw, 6.35rem); font-weight: 500; line-height: .92; letter-spacing: -.025em; text-wrap: balance; }
.hero-copy { width: min(42rem, 72%); padding-left: 1rem; border-left: 1px solid var(--gold); font-size: clamp(1rem, 1.3vw, 1.13rem); line-height: 1.65; }
.hero-copy p { margin: 0 0 .6rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; margin-top: 1.35rem; padding: .85rem 1.6rem; border: 1px solid var(--gold); border-radius: 999px; font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .115em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: transform .2s, background-color .2s, box-shadow .2s; }
.button-primary { background: #d7ad5d; color: #172431; box-shadow: 0 10px 28px rgba(0,0,0,.18); }
.button-primary:hover { background: #e3bd75; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0,0,0,.23); }
.scroll-cue { position: absolute; right: var(--gutter); bottom: 2rem; display: flex; align-items: center; gap: .65rem; font: 600 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; }
.scroll-cue svg { width: 1.35rem; fill: none; stroke: var(--gold); stroke-width: 1.5; }

.quote-band { position: relative; padding: clamp(3.5rem, 7vw, 6rem) var(--gutter); background: var(--navy); color: var(--ivory); text-align: center; }
.gold-rule { width: 4rem; height: 1px; margin: 0 auto 1.65rem; background: var(--gold); }
.quote-band blockquote { width: 100%; margin: 0 auto; }
.quote-band blockquote p { margin: 0; font-size: clamp(1.65rem, 3.3vw, 3rem); font-weight: 500; font-style: italic; line-height: 1.27; text-wrap: balance; }
.quote-band cite { display: block; margin-top: 1.4rem; color: #d5b77f; font: 600 .74rem/1.4 var(--sans); font-style: normal; letter-spacing: .18em; text-transform: uppercase; }

.section { padding: var(--section-space) var(--gutter); }
.section-grid { width: 100%; margin: 0 auto; display: grid; grid-template-columns: minmax(9rem, .35fr) minmax(0, 2fr); gap: clamp(2rem, 4vw, 5rem); }
.section-kicker { color: var(--gold-dark); font: 700 .875rem/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.5rem; }
.section-kicker::after { content: ""; display: block; width: 2.5rem; height: 1px; margin-top: .75rem; background: currentColor; }
.section h2, .audiences h2, .contact h2 { margin: .35rem 0 1.4rem; color: var(--navy); font-size: clamp(2.8rem, 5.7vw, 5.25rem); font-weight: 500; line-height: .98; letter-spacing: -.02em; text-wrap: balance; }
.section-body { min-width: 0; }
.section-body > p { margin: 0 0 1.1rem; font-size: clamp(1.05rem, 1.4vw, 1.18rem); }
.place-list { margin: 2.5rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--stone); }
.place-list li { display: grid; grid-template-columns: 3rem 1fr; align-items: baseline; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--stone); font-size: clamp(1.05rem, 2vw, 1.32rem); }
.place-list span { color: var(--gold-dark); font: 600 .7rem/1 var(--sans); letter-spacing: .13em; }

.section-purpose { display: grid; grid-template-columns: minmax(18rem, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(2.5rem, 5vw, 6rem); background: var(--ivory); }
.purpose-image { position: relative; min-height: 48rem; background: var(--navy); overflow: hidden; }
.purpose-image::after { content: ""; position: absolute; inset: 1.15rem; border: 1px solid rgba(255,250,241,.42); pointer-events: none; }
.purpose-image img { width: 100%; height: 100%; min-height: 48rem; object-fit: cover; object-position: center 28%; filter: saturate(.82) contrast(1.04); }
.purpose-copy { min-width: 0; }
.purpose-copy p { margin: 0 0 1.2rem; font-size: clamp(1rem, 1.2vw, 1.11rem); }

.section-visits { width: 100%; margin: 0 auto; }
.visits-heading { display: grid; grid-template-columns: .6fr 2fr; gap: clamp(2rem, 4vw, 5rem); align-items: start; margin: 0 auto 3.2rem; }
.visits-heading h2 { margin-top: 0; }
.visits-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 3vw, 3rem); }
.group-photo { aspect-ratio: 4 / 3; margin: 0; overflow: hidden; }
.group-photo img { width: 100%; height: 100%; object-fit: cover; }
.feature-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.feature-card { min-height: 7.5rem; display: flex; align-items: center; gap: 1.5rem; padding: clamp(1.25rem, 2vw, 2rem); background: var(--ivory); border: 1px solid var(--stone); }
.feature-card:nth-child(2), .feature-card:nth-child(3) { background: var(--navy); color: var(--ivory); border-color: var(--navy); }
.feature-card svg, .audience-card svg { width: 2.3rem; height: 2.3rem; fill: none; stroke: var(--gold); stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.feature-card svg { flex: 0 0 2.3rem; }
.feature-card h3 { min-width: 0; margin: 0; font-size: clamp(1.45rem, 2vw, 2rem); font-weight: 500; line-height: 1.2; }

.audiences { position: relative; padding: var(--section-space) var(--gutter); background: #2a2c2d url("assets/fragua-vulcano-velazquez.webp") center / cover no-repeat fixed; }
.audiences::before { content: ""; position: absolute; inset: 0; background: rgba(10,17,24,.58); }
.audiences-panel { position: relative; width: 100%; margin: 0 auto; padding: clamp(2rem, 3.5vw, 4rem); background: rgba(255,250,241,.94); border: 1px solid rgba(255,255,255,.68); box-shadow: 0 25px 70px rgba(0,0,0,.24); backdrop-filter: blur(6px); }
.audiences-panel > h2 { max-width: 62rem; }
.audience-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 3rem; border-top: 1px solid var(--stone); border-left: 1px solid var(--stone); }
.audience-card { min-height: 12rem; padding: 1.7rem; border-right: 1px solid var(--stone); border-bottom: 1px solid var(--stone); }
.audience-card h3 { margin: 2.1rem 0 0; color: var(--navy); font-size: clamp(1.35rem, 2vw, 1.8rem); font-weight: 500; line-height: 1.15; }
.audience-card p { margin: .9rem 0 0; font-size: 1rem; line-height: 1.6; }

.team { background: var(--warm-white); }
.team-ornament { max-width: 22rem; margin: 0 auto 2.2rem; display: grid; grid-template-columns: 1fr 3.1rem 1fr; align-items: center; gap: 1rem; }
.team-ornament span { height: 1px; background: var(--stone-warm); }
.team-ornament img { width: 3.1rem; height: 3.1rem; border-radius: 50%; object-fit: cover; }
.team-heading { text-align: center; }
.team-heading .section-kicker::after { margin-inline: auto; }
.team-heading h2 { margin-bottom: clamp(3.5rem, 7vw, 6rem); }
.team-grid { width: 100%; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(3rem, 6vw, 7rem); }
.profile { text-align: center; }
.portrait { width: clamp(13rem, 25vw, 18rem); aspect-ratio: 1; margin: 0 auto 2rem; overflow: hidden; border-radius: 50%; border: .45rem solid var(--warm-white); box-shadow: 0 0 0 1px var(--gold), 0 18px 45px rgba(23,36,49,.15); background: var(--ivory); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 44%; }
.portrait-maria img { object-position: center; transform: translate(1%, 2.2%) scale(1.3); }
.portrait-jesus img { object-position: 50% 35%; transform: scale(1.02); }
.profile h3 { margin: 0 0 1rem; color: var(--navy); font-size: clamp(2rem, 3.2vw, 2.8rem); font-weight: 500; line-height: 1; }
.profile p { margin: 0; text-align: left; font-size: 1rem; line-height: 1.75; }

.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(22rem, 1.1fr); gap: clamp(3rem, 5vw, 6rem); padding: var(--section-space) var(--gutter); background: var(--navy); color: var(--ivory); }
.contact h2 { color: var(--ivory); }
.contact .section-kicker { color: #d5b77f; }
.contact-copy > p { font-size: clamp(1rem, 1.3vw, 1.14rem); }
.contact-links { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; margin-top: 2rem; }
.contact-link { color: #e2c181; font-family: var(--sans); font-size: .94rem; text-underline-offset: .3rem; overflow-wrap: anywhere; }
.pending-link { opacity: .72; cursor: default; }
.pending-link small { margin-left: .45rem; font-size: .68rem; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.contact-form { padding: clamp(1.5rem, 4vw, 3rem); background: var(--warm-white); color: var(--ink); border-top: 3px solid var(--gold); }
.form-field { margin-bottom: 1.25rem; }
.form-field label { display: flex; justify-content: space-between; margin-bottom: .45rem; color: var(--navy); font: 700 .78rem/1.4 var(--sans); letter-spacing: .06em; }
.optional { color: #687078; font-size: .7rem; font-weight: 500; text-transform: uppercase; }
input, textarea { width: 100%; border: 1px solid #aeb4b7; border-radius: 0; background: #fff; color: var(--ink); padding: .8rem .9rem; font-family: var(--sans); font-size: 1rem; }
textarea { resize: vertical; min-height: 9rem; }
input:focus, textarea:focus { border-color: var(--gold-dark); box-shadow: 0 0 0 3px rgba(184,144,72,.18); outline: none; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #a33a32; }
.field-error { display: block; min-height: 1.1rem; margin-top: .25rem; color: #8a2c25; font: 600 .75rem/1.3 var(--sans); }
.form-status { min-height: 1.5rem; margin: 0; font: 600 .85rem/1.4 var(--sans); }
.contact-form .button { border: 0; }

.js.reveal-ready .reveal { opacity: 0; transform: translateY(1.2rem); transition: opacity .7s ease, transform .7s ease; }
.js.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .primary-nav { position: fixed; inset: 5rem 0 auto 0; display: grid; gap: 0; padding: 1rem var(--gutter) 1.4rem; background: rgba(23,36,49,.98); transform: translateY(-125%); visibility: hidden; transition: transform .28s ease, visibility .28s; }
  .primary-nav.open { transform: none; visibility: visible; }
  .primary-nav a { padding: .9rem 0; border-bottom-color: rgba(255,255,255,.12); font-size: 1rem; }
  .menu-toggle { display: block; }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(.42rem) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-.42rem) rotate(-45deg); }
  .hero-content { margin-bottom: 5rem; }
  .hero-logo { width: 100%; }
  .section-purpose { grid-template-columns: 1fr; padding-left: var(--gutter); }
  .purpose-image { min-height: 38rem; }
  .purpose-image img { min-height: 38rem; }
  .purpose-copy { max-width: none; padding-right: 0; }
  .visits-heading { grid-template-columns: 1fr; gap: 1rem; }
  .visits-layout { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  :root { --gutter: 1.15rem; --section-space: 4.5rem; }
  html { scroll-padding-top: 4.5rem; }
  .site-header { height: 4.5rem; }
  .brand-mark { width: 3rem; height: 3rem; }
  .primary-nav { top: 4.5rem; }
  .hero { min-height: 47rem; background-position: 62% 32%; }
  .hero-overlay { background: linear-gradient(90deg, rgba(11,22,34,.87), rgba(11,22,34,.47)), linear-gradient(0deg, rgba(9,18,27,.9) 0%, rgba(9,18,27,.2) 70%); }
  .hero-content { width: calc(100% - 2.3rem); margin: 6rem 1.15rem 4.2rem; }
  .hero-logo { width: 100%; margin-bottom: 1.75rem; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.8rem); }
  .hero-copy { width: 94%; font-size: 1rem; }
  .scroll-cue { display: none; }
  .section-grid { grid-template-columns: 1fr; gap: 1.15rem; }
  .place-list li { grid-template-columns: 2.35rem 1fr; gap: .55rem; }
  .section-purpose { gap: 2.5rem; }
  .purpose-image, .purpose-image img { min-height: 31rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 7.5rem; gap: 1rem; }
  .audiences { background-attachment: scroll; }
  .audiences-panel { padding: 2rem 1.1rem; }
  .audience-grid { grid-template-columns: 1fr; }
  .audience-card { min-height: 9.5rem; }
  .team-grid { grid-template-columns: 1fr; gap: 4.5rem; }
  .portrait { width: min(16rem, 78vw); }
  .profile p { text-align: left; }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .contact-form { padding: 1.35rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js.reveal-ready .reveal { opacity: 1; transform: none; }
}
