:root{
  --brand:#0e4d54;
  --brand-dark:#052f35;
  --brand-deep:#021b1f;
  --brand-soft:#eaf3f2;
  --ink:#111618;
  --muted:#687278;
  --surface:#fff;
  --surface-soft:#f5f7f7;
  --line:rgba(17,22,24,.09);
  --shadow-soft:0 18px 60px rgba(7,41,46,.09);
  --shadow-strong:0 36px 120px rgba(5,38,42,.16);
  --container:min(1180px,calc(100% - 40px));
  --radius:32px;
  --header:82px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  overflow-x:hidden;
  background:var(--surface);
  color:var(--ink);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased;
}
body.menu-open{overflow:hidden}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button,input,textarea{font:inherit}
.container{width:var(--container);margin-inline:auto}
.section{padding:118px 0}
.section--soft{background:var(--surface-soft)}
.eyebrow{
  color:var(--brand);
  font-size:.75rem;
  font-weight:850;
  letter-spacing:.15em;
  text-transform:uppercase;
}
.display{
  max-width:960px;
  margin:12px 0 22px;
  font-size:clamp(2.9rem,5.9vw,5.8rem);
  line-height:.96;
  letter-spacing:-.068em;
}
.section-copy{
  max-width:690px;
  margin:0;
  color:var(--muted);
  font-size:1.08rem;
  line-height:1.75;
}
.btn{
  display:inline-flex;
  min-height:50px;
  align-items:center;
  justify-content:center;
  gap:.55rem;
  padding:.88rem 1.22rem;
  border:1px solid transparent;
  border-radius:999px;
  font-weight:780;
  transition:.2s ease;
}
.btn:hover{transform:translateY(-2px)}
.btn--primary{
  background:var(--brand);
  color:#fff;
  box-shadow:0 14px 34px rgba(14,77,84,.24);
}
.btn--glass{
  border-color:rgba(255,255,255,.32);
  background:rgba(255,255,255,.1);
  color:#fff;
  backdrop-filter:blur(18px);
}
.btn--light{background:#fff;color:var(--ink);box-shadow:var(--shadow-soft)}
.icon{width:20px;height:20px;flex:0 0 auto}

/* header */
.site-header{
  position:fixed;
  z-index:100;
  inset:0 0 auto;
  transition:.22s ease;
}
.site-header.is-scrolled{
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.86);
  backdrop-filter:blur(24px) saturate(160%);
}
.navbar{
  width:calc(100% - 64px);
  max-width:1800px;
  min-height:var(--header);
  margin-inline:auto;

  display:flex;
  align-items:center;
  justify-content:space-between;
}
.brand-mark{
  position:relative;
  display:flex;
  align-items:center;
  width:218px;
  height:58px;
}

.brand-logo{
  position:absolute;
  left:0;
  max-height:58px;
  object-fit:contain;
  object-position:left center;
  transition:
    opacity .24s ease,
    transform .28s cubic-bezier(.2,.75,.25,1),
    width .28s ease;
}

.brand-logo--full{
  width:218px;
  opacity:1;
  transform:translateX(0) scale(1);
}

.brand-logo--compact{
  width:46px;
  opacity:0;
  transform:translateX(-8px) scale(.84);
}

.site-header.is-scrolled .brand-logo--full{
  opacity:0;
  transform:translateX(-12px) scale(.94);
  pointer-events:none;
}

.site-header.is-scrolled .brand-logo--compact{
  opacity:1;
  transform:translateX(0) scale(1);
}
.desktop-nav{display:flex;gap:1.65rem;align-items:center;color:#fff;font-weight:700}
.site-header.is-scrolled .desktop-nav{color:var(--ink)}
.desktop-nav a{opacity:.86}
.desktop-nav a:hover{opacity:1}
.menu-button{
  display:none;
  width:46px;height:46px;
  place-items:center;
  border:1px solid rgba(255,255,255,.28);
  border-radius:50%;
  background:rgba(255,255,255,.1);
  color:#fff;
}
.site-header.is-scrolled .menu-button{
  border-color:var(--line);
  background:#fff;
  color:var(--ink);
}
.mobile-menu{display:none}

/* hero */
/* El Hero usa una grilla más ancha que el resto del sitio */
.hero > .container{
  width:calc(100% - 96px);
  max-width:1800px;
  margin-inline:auto;
}

.hero{
  position:relative;
  min-height:94svh;
  display:flex;
  align-items:flex-end;
  isolation:isolate;
  overflow:hidden;
  padding:150px 0 110px;
  background:var(--brand-deep);
  color:#fff;
}
.hero-media{
  position:absolute;
  z-index:-4;
  inset:-3%;
  background:url("../img/hero/hero-desktop.webp") 58% 52%/cover no-repeat;
  animation:hero-zoom 20s ease-out both;
  transform-origin:center;
}
.hero-overlay{
  position:absolute;
  z-index:-3;
  inset:0;
  background:
    linear-gradient(90deg,
      rgba(0,0,0,.91) 0%,
      rgba(0,0,0,.78) 28%,
      rgba(0,0,0,.44) 52%,
      rgba(0,0,0,.14) 82%),
    linear-gradient(0deg,
      rgba(0,0,0,.58) 0%,
      rgba(0,0,0,.05) 46%,
      rgba(0,0,0,.23) 100%);
}
.hero-vignette{
  position:absolute;
  z-index:-2;
  inset:0;
  box-shadow:inset 0 0 170px rgba(0,0,0,.24);
}
.hero-content{
  width:min(640px,100%);
}
.hero .eyebrow{color:#bfe7e3}
.hero h1{
  max-width:640px;
  margin:12px 0 0;
  font-size:clamp(3.8rem,7.2vw,6.4rem);
  line-height:.9;
  letter-spacing:-.07em;
}
.hero h1 span{
  display:block;
  color:rgba(255,255,255,.84);
}
.hero p{
  max-width:560px;
  margin:26px 0;
  color:rgba(255,255,255,.82);
  font-size:1.15rem;
  line-height:1.62;
}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px}
.hero .eyebrow,.hero h1,.hero p,.hero-actions{
  opacity:0;
  transform:translateY(22px);
  animation:hero-in .8s cubic-bezier(.2,.75,.25,1) forwards;
}
.hero .eyebrow{animation-delay:.12s}
.hero h1{animation-delay:.24s}
.hero p{animation-delay:.38s}
.hero-actions{animation-delay:.5s}
@keyframes hero-in{to{opacity:1;transform:none}}
@keyframes hero-zoom{from{transform:scale(1.01)}to{transform:scale(1.08)}}

/* info ribbon */
.info-ribbon{
  position:relative;
  z-index:5;
  margin-top:-46px;
}
.info-card{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.78);
  border-radius:30px;
  background:rgba(255,255,255,.95);
  box-shadow:var(--shadow-strong);
  backdrop-filter:blur(22px);
}
.info-item{
  display:grid;
  grid-template-columns:46px 1fr;
  gap:16px;
  align-items:center;
  padding:28px 30px;
  border-right:1px solid var(--line);
}
.info-item:last-child{border-right:0}
.info-icon{
  width:46px;height:46px;
  display:grid;place-items:center;
  border-radius:50%;
  background:var(--brand-soft);
  color:var(--brand);
}
.info-label{
  display:block;
  margin-bottom:5px;
  color:var(--brand);
  font-size:.72rem;
  font-weight:850;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.info-value{font-size:1.02rem;font-weight:800;line-height:1.42}

/* about */
.split{
  display:grid;
  grid-template-columns:1.02fr .98fr;
  gap:84px;
  align-items:center;
}
.photo-shell{
  overflow:hidden;
  border-radius:40px;
  background:var(--brand-soft);
  box-shadow:var(--shadow-strong);
}
.photo-shell img{width:100%;aspect-ratio:4/3;object-fit:cover}

/* ministries editorial */
.ministry-grid{
  display:grid;
  grid-template-columns:repeat(12,1fr);
  gap:20px;
  margin-top:50px;
}
.ministry-card{
  position:relative;
  min-height:360px;
  grid-column:span 4;
  overflow:hidden;
  border-radius:30px;
  background:var(--brand);
  color:#fff;
  box-shadow:var(--shadow-soft);
}
.ministry-card:nth-child(1){grid-column:span 7;min-height:500px}
.ministry-card:nth-child(2){grid-column:span 5;min-height:500px}
.ministry-card img{
  width:100%;height:100%;
  object-fit:cover;
  transition:transform .7s cubic-bezier(.2,.75,.25,1);
}
.ministry-card::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(0deg,rgba(0,0,0,.8),rgba(0,0,0,.03) 64%);
}
.ministry-card:hover img{transform:scale(1.055)}
.ministry-content{
  position:absolute;
  z-index:2;
  inset:auto 0 0;
  padding:28px;
}
.ministry-content h3{
  margin:0 0 8px;
  font-size:clamp(1.5rem,2.5vw,2.3rem);
  letter-spacing:-.04em;
}
.ministry-content p{
  max-width:430px;
  margin:0;
  color:rgba(255,255,255,.82);
  line-height:1.58;
}

/* messages */
.messages-grid{
  display:grid;
  grid-template-columns:.75fr 1.25fr;
  gap:62px;
  align-items:center;
}
.video-shell{
  position:relative;
  overflow:hidden;
  aspect-ratio:16/9;
  border-radius:30px;
  background:radial-gradient(circle at 70% 20%,#1d646b,#031719 65%);
  box-shadow:var(--shadow-strong);
}
.video-shell iframe{width:100%;height:100%;border:0}
.messages-player{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}

.messages-player iframe{
  width:100%;
  height:100%;
  display:block;
  border:0;
}
.playlist-empty{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  padding:40px;
  text-align:center;
  color:#fff;
}
.playlist-empty strong{display:block;margin-bottom:10px;font-size:1.35rem}
.playlist-empty span{color:rgba(255,255,255,.7);line-height:1.6}

/* CTA */
.visit-cta{
  position:relative;
  overflow:hidden;
  padding:72px;
  border-radius:40px;
  background:
    radial-gradient(circle at 82% 0%,rgba(119,205,198,.42),transparent 36%),
    linear-gradient(135deg,var(--brand-dark),var(--brand));
  color:#fff;
}
.visit-cta .display{margin-bottom:24px}
.visit-cta p{
  max-width:650px;
  color:rgba(255,255,255,.75);
  font-size:1.08rem;
  line-height:1.7;
}

/* social/footer */
.social-band{padding:40px 0;background:var(--brand);color:#fff}
.social-inner{display:flex;align-items:center;justify-content:space-between;gap:24px}
.social-links{display:flex;flex-wrap:wrap;gap:12px}
.social-link{
  display:inline-flex;align-items:center;gap:9px;
  padding:.78rem 1rem;
  border:1px solid rgba(255,255,255,.25);
  border-radius:999px;
}
.footer{
  padding:78px 0 30px;
  background:var(--brand-deep);
  color:rgba(255,255,255,.72);
}
.footer-grid{
  display:grid;
  grid-template-columns:1.35fr repeat(3,1fr);
  gap:40px;
}
.footer-logo{width:230px;margin-bottom:20px}
.footer h4{margin:0 0 16px;color:#fff}
.footer a{display:block;margin:9px 0}
.footer-bottom{
  margin-top:54px;
  padding-top:22px;
  border-top:1px solid rgba(255,255,255,.1);
  font-size:.9rem;
}

/* contact */
.page-hero{
  padding:180px 0 110px;
  background:
    radial-gradient(circle at 78% 0%,rgba(104,197,189,.48),transparent 34%),
    linear-gradient(135deg,var(--brand-deep),var(--brand));
  color:#fff;
}
.page-hero .eyebrow{color:#bfe7e3}
.page-hero h1{
  max-width:850px;
  margin:12px 0 22px;
  font-size:clamp(3.8rem,8vw,7rem);
  line-height:.9;
  letter-spacing:-.075em;
}
.page-hero p{max-width:630px;color:rgba(255,255,255,.76);font-size:1.2rem;line-height:1.65}
.contact-grid{
  display:grid;
  grid-template-columns:.78fr 1.22fr;
  gap:64px;
  align-items:start;
}
.contact-list{display:grid;gap:14px}
.contact-card{
  display:grid;
  grid-template-columns:46px 1fr;
  gap:15px;
  align-items:center;
  padding:22px;
  border:1px solid var(--line);
  border-radius:20px;
  background:#fff;
}
.contact-card strong{display:block;margin-bottom:4px}
.contact-card span,.contact-card small{color:var(--muted)}
.map-card{
  min-height:250px;
  margin-top:18px;
  display:grid;
  place-items:center;
  padding:28px;
  border-radius:28px;
  background:linear-gradient(135deg,rgba(14,77,84,.08),rgba(14,77,84,.16));
  color:var(--brand);
  text-align:center;
}
.contact-form{
  padding:32px;
  border:1px solid var(--line);
  border-radius:30px;
  background:#fff;
  box-shadow:var(--shadow-strong);
}
.form-title{
  margin:10px 0 28px;
  font-size:clamp(2rem,4vw,3.2rem);
  line-height:1;
  letter-spacing:-.055em;
}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.field{display:grid;gap:8px;margin-bottom:16px}
.field label{font-size:.92rem;font-weight:750}
.field input,.field textarea{
  width:100%;
  padding:14px 16px;
  border:1px solid var(--line);
  border-radius:15px;
  outline:0;
  background:#fafbfb;
}
.field input:focus,.field textarea:focus{
  border-color:var(--brand);
  box-shadow:0 0 0 4px rgba(14,77,84,.1);
}
.field textarea{min-height:160px;resize:vertical}
#form-status{min-height:24px;margin-top:14px;color:var(--muted)}

.reveal{
  opacity:0;
  transform:translateY(24px);
  transition:opacity .7s ease,transform .7s cubic-bezier(.2,.75,.25,1);
}
.reveal.is-visible{opacity:1;transform:none}

@media(max-width:960px){
  .section{padding:86px 0}
  .desktop-nav{display:none}
  .menu-button{display:grid}
  .mobile-menu{
    position:fixed;
    z-index:95;
    inset:calc(var(--header) + 8px) 18px auto;
    display:none;
    padding:22px;
    border:1px solid var(--line);
    border-radius:24px;
    background:rgba(255,255,255,.97);
    box-shadow:var(--shadow-strong);
    backdrop-filter:blur(22px);
  }
  .mobile-menu.is-open{display:grid;gap:6px}
  .mobile-menu a{padding:14px;border-radius:14px;font-weight:750}
  .info-card,.split,.messages-grid,.contact-grid,.footer-grid{grid-template-columns:1fr}
  .info-item{border-right:0;border-bottom:1px solid var(--line)}
  .info-item:last-child{border-bottom:0}
  .ministry-card,
  .ministry-card:nth-child(1),
  .ministry-card:nth-child(2){
    grid-column:span 6;
    min-height:420px;
  }
  .social-inner{align-items:flex-start;flex-direction:column}
  .visit-cta{padding:52px}
}

@media(max-width:620px){
  :root{--container:min(100% - 26px,1180px);--header:76px}
  .brand-mark{
    width:178px;
    height:52px;
  }

  .brand-logo--full{
    width:178px;
  }

  .brand-logo--compact{
    width:42px;
  }
  .hero{min-height:92svh;padding:132px 0 64px}
  .hero-media{
    background-image:url("../img/hero/hero-mobile.webp");
    background-position:52% center;
  }
  .hero-overlay{
    background:
      linear-gradient(0deg,
        rgba(0,0,0,.93) 0%,
        rgba(0,0,0,.66) 52%,
        rgba(0,0,0,.24) 100%),
      linear-gradient(90deg,rgba(0,0,0,.34),rgba(0,0,0,.04));
  }
.hero > .container{
    width:calc(100% - 26px);
    max-width:none;
  }
    .hero-content{width:100%}
  .hero h1{font-size:clamp(3.45rem,16.5vw,5.2rem)}
  .hero p{font-size:1.05rem}
  .info-ribbon{margin-top:-28px}
  .display{font-size:2.85rem}
  .ministry-grid{grid-template-columns:1fr}
  .ministry-card,
  .ministry-card:nth-child(1),
  .ministry-card:nth-child(2){
    grid-column:1;
    min-height:390px;
  }
  .visit-cta{padding:34px 24px;border-radius:30px}
  .form-grid{grid-template-columns:1fr}
  .contact-form{padding:24px}
}

.navbar{
  width:calc(100% - 26px);
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .hero-media,.hero .eyebrow,.hero h1,.hero p,.hero-actions{animation:none!important}
  .hero .eyebrow,.hero h1,.hero p,.hero-actions,.reveal{opacity:1;transform:none}
}