/* ---------- Only Mortgages — Design Tokens ---------- */
:root{
  --carbon:        #1A1F1F;   /* Carbon Only — color principal */
  --azul-estrat:   #0E1D28;   /* Azul Estratégico */
  --azul-analitico:#335665;   /* Azul Analítico — acento */
  --acento-osc:    #263641;   /* acento sobre azul estratégico */
  --acento-neg:    #343333;   /* acento sobre carbon */
  --beige:         #D1C9BA;   /* Beige Patrimonial */
  --blanco-only:   #EAEBEB;   /* Blanco Only */
  --gris-acento:   #ACADAC;

  --ink:           #10151A;
  --paper:         #F6F5F2;

  --font-head: 'Oswald', 'Pilat Condensed', Impact, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1180px;
  --radius: 4px;
  --ease: cubic-bezier(.4,0,.2,1);
}

*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--carbon);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }

.container{
  width:100%;
  max-width: var(--container);
  margin:0 auto;
  padding: 0 24px;
}

.noise-overlay{
  position:fixed; inset:0; pointer-events:none; z-index:9999;
  opacity:.035; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.section-tag{
  display:inline-block;
  font-family: var(--font-head);
  font-weight:600;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-size:.78rem;
  color: var(--azul-analitico);
  margin-bottom:14px;
}
.section-title{
  font-family: var(--font-head);
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.01em;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height:1.15;
  margin-bottom:20px;
  max-width: 720px;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-family: var(--font-head);
  font-weight:600;
  letter-spacing:.05em;
  text-transform:uppercase;
  font-size:.82rem;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor:pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space:nowrap;
}
.btn--primary{ background: var(--azul-analitico); color:#fff; }
.btn--primary:hover{ background:#3f6c80; transform: translateY(-2px); }
.btn--ghost{ border-color: rgba(26,31,31,.3); color: var(--carbon); }
.btn--ghost:hover{ border-color: var(--carbon); background: rgba(26,31,31,.05); transform: translateY(-2px); }
.btn--ghost-light{ border-color: rgba(255,255,255,.4); color:#fff; }
.btn--ghost-light:hover{ background: rgba(255,255,255,.1); transform: translateY(-2px); }
.btn--lg{ padding:16px 32px; font-size:.86rem; }
.btn--full{ width:100%; }

/* ---------- Nav ---------- */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:1000;
  padding: 18px 0;
  transition: background .3s var(--ease), padding .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.is-scrolled .nav__word,
.nav.is-scrolled .nav__links a{
  text-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.nav.is-scrolled .nav__mark{ filter: drop-shadow(0 1px 3px rgba(0,0,0,.35)); }
.nav.is-scrolled .nav__toggle span{ box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.nav.is-scrolled{
  background: rgba(10,14,14,.32);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  padding: 12px 0;
  box-shadow: 0 4px 24px rgba(0,0,0,.12);
}
.nav__inner{ display:flex; align-items:center; justify-content:space-between; gap:24px; }
.nav__brand{ display:flex; align-items:center; gap:12px; }
.nav__mark{ height:34px; width:auto; }
.nav__word{
  font-family: var(--font-head); font-weight:400; letter-spacing:.02em;
  color:#fff; font-size:1.15rem; text-transform:uppercase; white-space:nowrap;
}
.nav__word strong{ font-weight:700; }
.nav__reg{ font-size:.55em; vertical-align:top; margin-left:1px; }
.nav__links{ display:flex; gap:32px; flex:1; justify-content:center; }
.nav__links a{
  color: rgba(255,255,255,.75);
  font-size:.86rem;
  font-weight:500;
  letter-spacing:.02em;
  transition: color .2s;
  position:relative;
}
.nav__links a:hover{ color:#fff; }
.nav__cta{ flex-shrink:0; }
.nav__toggle{ display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:6px; flex-shrink:0; }
.nav__toggle span{ width:22px; height:2px; background:#fff; display:block; }
.nav__cta--mobile{ display:none; }

/* ---------- Hero build stage ---------- */
.hero-stage{
  position:relative;
  height: 280vh; /* scroll runway the house "builds" through */
}
.hero-stage__pin{
  position:sticky;
  top:0;
  height:100vh;
  display:flex;
  align-items:center;
  overflow:hidden;
  color:#fff;
  padding-top:120px;
  padding-bottom:80px;
}
.hero__video{
  position:absolute; inset:0; z-index:-2;
  width:100%; height:100%;
  object-fit:cover;
  object-position:center;
  pointer-events:none;
}
.hero__scrim{
  position:absolute; inset:0; z-index:-1;
  background:
    linear-gradient(100deg, rgba(10,15,15,.88) 0%, rgba(14,20,24,.72) 32%, rgba(14,20,24,.28) 58%, rgba(14,20,24,.5) 100%),
    linear-gradient(0deg, rgba(8,12,14,.7) 0%, rgba(8,12,14,0) 40%);
}
.hero__inner{ max-width:780px; }
.eyebrow{
  font-family: var(--font-head);
  text-transform:uppercase;
  letter-spacing:.16em;
  font-size:.78rem;
  color: var(--gris-acento);
  margin-bottom:22px;
}
.hero__title{
  font-family: var(--font-head);
  font-weight:700;
  text-transform:uppercase;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height:1.03;
  letter-spacing:.005em;
  margin-bottom:28px;
}
.text-accent{ color:#7fa3b3; }
.hero__subtitle{
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(255,255,255,.78);
  max-width:560px;
  margin-bottom:40px;
}
.hero__actions{ display:flex; gap:16px; flex-wrap:wrap; }
.hero__scroll{
  position:absolute; bottom:36px; left:50%; transform:translateX(-50%);
  width:1px; height:60px; background: rgba(255,255,255,.25);
}
.hero__scroll span{
  position:absolute; top:0; left:-3px; width:7px; height:7px; border-radius:50%;
  background:#fff; animation: scrollDot 2.2s infinite var(--ease);
}
@keyframes scrollDot{ 0%{ top:0; opacity:1; } 90%{ opacity:0; } 100%{ top:100%; opacity:0; } }

/* ---------- Trust + Mission + Why Us shared background ---------- */
.trust-merge{
  position:relative;
  background-image: url("assets/profundidad-negra.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.trust-merge::before{
  content:""; position:absolute; inset:0; z-index:1;
  background: linear-gradient(180deg,
    rgba(14,18,18,.7) 0%,
    rgba(14,18,18,.3) 12%,
    rgba(14,18,18,.3) 88%,
    rgba(14,18,18,.6) 100%);
}
.trust, .mission, .values{ position:relative; z-index:2; color:#fff; }

/* Mobile-only stand-in for background-attachment:fixed (unreliable/blurry on
   iOS Safari — see the mobile media query below). Hidden on desktop, where
   the wrapper's own fixed background is used instead. */
.merge-bg{ display:none; }

/* ---------- Trust strip ---------- */
.trust{ padding: 26px 0; }
.trust__inner{ display:flex; flex-wrap:wrap; gap:28px; justify-content:space-between; }
.trust__item{ display:flex; flex-direction:column; gap:4px; min-width:160px; }
.trust__label{ font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; color: var(--gris-acento); }
.trust__value{ font-family: var(--font-head); font-size:.98rem; letter-spacing:.02em; }
.trust__value--stat{
  font-size:1.9rem;
  font-weight:600;
  color:#fff;
  font-variant-numeric: tabular-nums;
  letter-spacing:.01em;
}

/* ---------- Mission ---------- */
.mission{ padding: 96px 0; }
.mission .section-tag{ color:#9fbdc9; }
.mission__grid{ display:grid; grid-template-columns:1fr 1fr; gap:64px; }
.mission__col p{ font-size:1.05rem; color: rgba(255,255,255,.75); }

/* ---------- Values ---------- */
.values{ padding: 100px 0; }
.values .section-tag{ color:#9fbdc9; }
.values__grid{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap: 2px;
  margin-top:48px;
}
.value-card{
  flex: 1 1 260px;
  max-width: 340px;
  background: rgba(255,255,255,.04);
  box-shadow: 0 0 0 1px rgba(255,255,255,.14);
  padding: 36px 28px;
  transition: background .25s var(--ease);
}
.value-card:last-child{
  flex: 1 1 100%;
  max-width: 100%;
  text-align:center;
}
.value-card:hover{ background: rgba(255,255,255,.09); }
.value-card__num{
  display:block;
  font-family: var(--font-head);
  font-size:.85rem;
  color:#9fbdc9;
  letter-spacing:.08em;
  margin-bottom:18px;
}
.value-card h3{
  font-family: var(--font-head);
  font-weight:600;
  text-transform:uppercase;
  font-size:1.05rem;
  letter-spacing:.02em;
  margin-bottom:10px;
}
.value-card p{ font-size:.92rem; color: rgba(255,255,255,.72); }

/* ---------- Process ---------- */
.process{ position:relative; color:#fff; padding:110px 0; overflow:hidden; }
.process__bg{
  position:absolute; inset:0; z-index:-1;
  background:
    linear-gradient(180deg, rgba(14,18,18,.4) 0%, transparent 16%, transparent 84%, rgba(14,18,18,.4) 100%),
    linear-gradient(200deg, rgba(14,29,40,.4) 0%, rgba(10,19,25,.42) 45%, rgba(51,86,101,.35) 130%),
    url("assets/profundidad-bg.jpg") center/cover no-repeat;
  background-attachment: fixed, fixed, fixed;
}
.process .section-tag{ color:#9fbdc9; }
.process__list{ margin-top:56px; display:flex; flex-direction:column; }
.process__item{
  display:flex; gap:32px;
  padding: 30px 0;
  border-top: 1px solid rgba(255,255,255,.12);
  align-items:flex-start;
}
.process__item:last-child{ border-bottom: 1px solid rgba(255,255,255,.12); }
.process__index{
  font-family: var(--font-head);
  font-size:1.6rem;
  color: rgba(255,255,255,.35);
  min-width:56px;
}
.process__item h3{
  font-family: var(--font-head);
  text-transform:uppercase;
  font-weight:600;
  letter-spacing:.02em;
  font-size:1.15rem;
  margin-bottom:8px;
}
.process__item p{ color: rgba(255,255,255,.72); max-width:600px; font-size:.95rem; }

/* ---------- Realtors ---------- */
.realtors{
  position:relative; padding:100px 0; color:#fff;
  background-image: url("assets/profundidad-negra.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.realtors::before{
  content:""; position:absolute; inset:0; z-index:1;
  background: linear-gradient(180deg, rgba(14,18,18,.55) 0%, transparent 16%, transparent 84%, rgba(14,18,18,.55) 100%);
}
.realtors__inner{ position:relative; z-index:2; display:grid; grid-template-columns: 1.3fr .7fr; gap:48px; align-items:center; }
.realtors .section-tag{ color:#9fbdc9; }
.realtors__content p{ color: rgba(255,255,255,.78); margin-bottom:24px; max-width:520px; }
.check-list{ margin-bottom:32px; display:flex; flex-direction:column; gap:10px; }
.check-list li{ position:relative; padding-left:26px; color: rgba(255,255,255,.85); font-size:.95rem; }
.check-list li::before{
  content:""; position:absolute; left:0; top:7px; width:12px; height:12px;
  background: var(--azul-analitico); border-radius:2px;
}
.realtors__mark{ display:flex; justify-content:center; opacity:.4; }
.realtors__mark img{ width:100%; max-width:220px; }

/* ---------- About + CTA shared background ---------- */
.dark-merge{
  position:relative;
  background-image: url("assets/profundidad-bg.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.dark-merge::before{
  content:"";
  position:absolute; inset:0; z-index:1;
  background: linear-gradient(180deg,
    rgba(14,18,18,.55) 0%,
    rgba(14,29,40,.4) 20%,
    rgba(20,40,52,.4) 65%,
    rgba(51,86,101,.4) 88%,
    rgba(234,235,235,.5) 100%);
}
.about{ position:relative; z-index:2; color:#fff; padding:110px 0; }
.about__grid{ display:grid; grid-template-columns: .5fr 1.5fr; gap:56px; align-items:center; }
.about__mark img{ max-width:170px; opacity:.9; }
.about .section-tag{ color:#7fa3b3; }
.about__role{ color: var(--gris-acento); font-size:.92rem; margin-bottom:18px; }
.about__content p{ color: rgba(255,255,255,.82); max-width:600px; margin-bottom:28px; }
.about__contact{ display:flex; gap:24px; flex-wrap:wrap; }
.about__contact a{
  font-family: var(--font-head); font-size:.85rem; letter-spacing:.03em;
  border-bottom:1px solid rgba(255,255,255,.3); padding-bottom:4px;
  transition: border-color .2s, color .2s;
}
.about__contact a:hover{ border-color:#fff; color:#7fa3b3; }

/* ---------- Recent Closings (infinite photo marquee) ---------- */
.closings{ position:relative; z-index:2; padding: 90px 0 100px; }
.closings__head{ margin-bottom:44px; }
.closings .section-tag{ color:#9fbdc9; }
.closings .section-title{ color:#fff; margin-bottom:14px; }
.closings__subtitle{ color: rgba(255,255,255,.72); font-size:1.05rem; max-width:560px; margin-bottom:0; }
.closings__marquee{
  position:relative;
  width:100%;
  overflow:hidden;
}
.closings__marquee::before,
.closings__marquee::after{
  content:"";
  position:absolute;
  top:0; bottom:0;
  width:70px;
  z-index:2;
  pointer-events:none;
}
.closings__marquee::before{ left:0; background: linear-gradient(90deg, #0d1620, transparent); }
.closings__marquee::after{ right:0; background: linear-gradient(270deg, #0d1620, transparent); }
.closings__track{
  display:flex;
  align-items:flex-start;
  gap:22px;
  width:max-content;
  animation: closingsScroll 70s linear infinite;
}
.closings__marquee:hover .closings__track{ animation-play-state: paused; }
.closings__item{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  flex-shrink:0;
}
.closings__item img{
  height:260px;
  width:auto;
  flex-shrink:0;
  border-radius:8px;
  box-shadow: 0 14px 32px rgba(0,0,0,.4);
}
.closings__badge{
  font-family: var(--font-head);
  font-size:.72rem;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#9fbdc9;
}
@keyframes closingsScroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* ---------- CTA ---------- */
.cta{ position:relative; z-index:2; color:#fff; padding:120px 0; text-align:center; overflow:hidden; }
.cta__inner{ max-width:640px; margin:0 auto; }
.cta h2{
  font-family: var(--font-head); text-transform:uppercase; font-weight:700;
  font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom:16px; letter-spacing:.01em;
}
.cta p{ color: rgba(255,255,255,.82); margin-bottom:36px; font-size:1.05rem; }
.cta .hero__actions{ justify-content:center; }
.cta__book{ margin-top:40px; }

/* ---------- Before Your Call (prep card) ---------- */
.prep-card{
  text-align:left;
  max-width:760px;
  margin:56px auto 0;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  border-radius:20px;
  padding:44px;
}
.prep-card__tag{
  display:inline-block;
  font-family: var(--font-head);
  font-weight:600;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-size:.78rem;
  color:#9fbdc9;
  margin-bottom:16px;
}
.prep-card__intro{ color: rgba(255,255,255,.82); font-size:1rem; margin-bottom:26px; }
.prep-card__label{
  font-family: var(--font-head);
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.03em;
  font-size:.85rem;
  color:#fff;
  margin-bottom:16px;
}
.prep-card__grid{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-bottom:28px;
}
.prep-card__item{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius:10px;
  padding:16px 18px;
  color: rgba(255,255,255,.85);
  font-size:.92rem;
  line-height:1.5;
}
.prep-card__closing{
  color: rgba(255,255,255,.75);
  font-size:.95rem;
  line-height:1.6;
  border-top:1px solid rgba(255,255,255,.14);
  padding-top:22px;
  margin-bottom:0;
}

/* ---------- FAQ (shares the dark-merge background with About + CTA) ---------- */
.faq{ position:relative; z-index:2; color:#fff; padding: 110px 0; }
.faq .section-tag{ color:#9fbdc9; }
.faq__list{ margin-top:48px; max-width: 760px; }
.faq__item{ border-bottom: 1px solid rgba(255,255,255,.18); }
.faq__item summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding: 22px 0;
  font-family: var(--font-head);
  font-weight:600;
  font-size:1.05rem;
  letter-spacing:.01em;
  color:#fff;
}
.faq__item summary::-webkit-details-marker{ display:none; }
.faq__item summary::after{
  content:"+";
  font-size:1.5rem;
  line-height:1;
  color:#9fbdc9;
  flex-shrink:0;
}
.faq__item[open] summary::after{ content:"\2212"; }
.faq__item p{ padding: 0 0 22px; color: rgba(255,255,255,.75); max-width:640px; font-size:.95rem; }

/* ---------- Contact ---------- */
.contact{ position:relative; background: var(--blanco-only); padding:110px 0; }
.contact::after{
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background: linear-gradient(180deg, transparent 0%, transparent 88%, rgba(14,18,18,.35) 100%);
}
.contact .container{ position:relative; z-index:1; }
.contact .section-tag{ color: var(--azul-analitico); }
.contact__grid{ display:grid; grid-template-columns: 1fr 1fr; gap:64px; }
.contact__intro{ color:#444; margin-bottom:32px; max-width:440px; }
.contact__info{ display:flex; flex-direction:column; }
.contact__row{
  display:flex; justify-content:space-between; align-items:center;
  padding:18px 0; border-bottom:1px solid rgba(26,31,31,.15);
  transition: padding-left .2s var(--ease);
}
.contact__row[href]:hover{ padding-left:8px; color: var(--azul-analitico); }
.contact__label{ font-size:.75rem; text-transform:uppercase; letter-spacing:.1em; color:#777; }
.contact__value{ font-family: var(--font-head); font-size:1rem; }

.contact__form{
  background:#fff;
  padding:40px;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(26,31,31,.08);
}
.field{ margin-bottom:20px; }
.field label{ display:block; font-size:.8rem; margin-bottom:8px; color:#444; font-weight:500; }
.field input, .field textarea{
  width:100%; padding:12px 14px; border:1px solid #d8d6d0; border-radius: var(--radius);
  font-family: var(--font-body); font-size:.95rem; background:#fbfbfa; resize:vertical;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus{ outline:none; border-color: var(--azul-analitico); }
.contact__note{ margin-top:14px; font-size:.85rem; color: var(--azul-analitico); min-height:1.2em; }

/* ---------- Footer ---------- */
.footer{ position:relative; color: rgba(255,255,255,.7); padding:56px 0 30px; }
.footer::before{
  content:""; position:absolute; inset:0; z-index:-1;
  background:
    linear-gradient(180deg, rgba(234,235,235,.3) 0%, rgba(14,18,18,.75) 22%, rgba(14,18,18,.9) 100%),
    url("assets/profundidad-negra.jpg") center/cover no-repeat;
}
.footer .container{ position:relative; z-index:1; }
.footer__inner{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:36px; margin-bottom:36px; }
.footer__brand{ display:flex; align-items:center; gap:14px; }
.footer__mark{ width:34px; }
.footer__word{ font-family: var(--font-head); color:#fff; letter-spacing:.03em; text-transform:uppercase; font-size:1rem; }
.footer__slogan{ font-size:.78rem; color: var(--gris-acento); }
.footer__links{ display:flex; gap:24px; flex-wrap:wrap; align-items:center; }
.footer__links a{ font-size:.85rem; transition:color .2s; }
.footer__links a:hover{ color:#fff; }
.footer__legal{ border-top:1px solid rgba(255,255,255,.1); padding-top:24px; font-size:.78rem; display:flex; flex-direction:column; gap:6px; }

/* ---------- Reveal animation ---------- */
.reveal{ opacity:0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible{ opacity:1; transform:none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .mission__grid, .realtors__inner, .about__grid, .contact__grid{ grid-template-columns:1fr; }
  .realtors__mark{ order:-1; opacity:.25; }
  .about__mark{ max-width:120px; }
  .closings__item img{ height:190px; }

  /* .value-card:last-child is styled full-width + centered so the 5th card
     doesn't look "lonely" in a partial row on wider grids. On mobile every
     card already stacks one-per-row on its own, so that special-casing just
     makes the last card look inconsistent (centered vs. the others'
     left-aligned text) — match it back to the other four. */
  .value-card:last-child{
    flex: 1 1 260px;
    max-width: 340px;
    text-align: left;
  }
  .closings__track{ animation-duration: 38s; }

  /* iOS Safari renders background-attachment:fixed as a blurry/pixelated
     mess on real devices (a long-standing engine bug), even though it looks
     fine in a desktop browser engine — so mobile can't use real fixed
     attachment. A CSS-only position:sticky + negative-margin stand-in was
     tried, but its "unstick" boundary didn't reliably line up with the
     wrapper's actual bottom edge, so the background bled into the next
     section. Real position:fixed on an actual element doesn't have iOS's
     background-attachment bug, so script.js drives .merge-bg by hand
     instead: position:fixed (full viewport, like a true fixed background)
     while its wrapper is on screen, then position:absolute pinned to the
     wrapper's own top/bottom edge once scrolled past — so it can never
     bleed into a sibling section. overflow:hidden on each wrapper is a
     second line of defense: it clips the absolute-pinned state to the
     wrapper's own bounds (position:fixed always escapes it, by design). */
  .trust-merge, .dark-merge{ background-image:none; overflow:hidden; }
  .realtors{ background-attachment: scroll; overflow:hidden; }

  .merge-bg{
    display:block;
    position:fixed;
    top:0; left:0; right:0;
    width:100%;
    height:100vh;
    z-index:0;
    background-position:center;
    background-size:cover;
    background-repeat:no-repeat;
  }
  .merge-bg--negra{ background-image: url("assets/profundidad-negra.jpg"); }
  .merge-bg--paper{ background-image: url("assets/profundidad-bg.jpg"); }

  /* .process__bg combined its two gradient layers with the photo itself,
     using background-attachment:fixed,fixed,fixed. That has the same iOS
     blur bug as everywhere else, and even with plain scroll attachment, the
     photo layer sized to .process's own (fairly tall, multi-item) box would
     cover-crop to whatever slice of the image happens to fall in that
     range — which is what showed up as a jarring color band on real
     devices. Same fix as the merge wrappers: drop the photo from
     .process__bg (keep just the two gradients, which are vector and never
     have a crop/zoom problem) and let the script-driven .merge-bg above
     handle the photo, sized against the viewport instead. */
  .process .merge-bg{ z-index:-2; }
  .process__bg{
    z-index:-1;
    background:
      linear-gradient(180deg, rgba(14,18,18,.4) 0%, transparent 16%, transparent 84%, rgba(14,18,18,.4) 100%),
      linear-gradient(200deg, rgba(14,29,40,.4) 0%, rgba(10,19,25,.42) 45%, rgba(51,86,101,.35) 130%);
    background-attachment: scroll, scroll;
  }
}

@media (max-width: 760px){
  .nav__links{ display:none; }
  .nav__toggle{ display:flex; }
  .nav__cta{ display:none; }
  .nav.is-open .nav__links{
    display:flex; flex-direction:column; gap:18px; align-items:flex-start;
    position:absolute; top:100%; left:0; right:0;
    background: rgba(20,24,24,.98); padding:28px 24px; backdrop-filter: blur(10px);
  }
  .nav.is-open .nav__cta--mobile{ display:inline-flex; margin-top:6px; }
  .hero{ text-align:left; padding-top:140px; }
  .trust__inner{ justify-content:flex-start; }
  .footer__inner{ flex-direction:column; }
  .prep-card{ padding:28px; }
}
