/* ============================================================
   SUN HOUSE — HOMEPAGE CONTENT LAYER
   Authoritative layout for the new content sections.
   Keeps the approved hero/property structure intact and gives
   the lower homepage one coherent visual system.
============================================================ */

:root{
  --sh-ink:#171411;
  --sh-ink-soft:#29231d;
  --sh-night:#0d0d0d;
  --sh-night-soft:#17130f;
  --sh-paper:#eee6da;
  --sh-paper-soft:#f6f0e7;
  --sh-gold:#caa66a;
  --sh-gold-bright:#e3c58d;
  --sh-line-dark:rgba(255,255,255,.10);
  --sh-line-light:rgba(44,34,25,.13);
  --sh-max:1240px;
}

/* Neutralise historic storyboard/floating rules only when this
   homepage composition is present. Property/detail pages are untouched. */
main:has(> .sh-content-section){
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  overflow:visible!important;
}

main>section.sh-content-section{
  position:relative!important;
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  isolation:isolate!important;
}

.sh-content-wrap,
main>section#obras.sh-works-section>.sh-content-wrap{
  position:relative!important;
  z-index:2!important;
  width:min(var(--sh-max),calc(100% - 96px))!important;
  max-width:var(--sh-max)!important;
  margin:0 auto!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}

.sh-content-eyebrow{
  display:inline-flex!important;
  align-items:center!important;
  gap:10px!important;
  margin:0 0 16px!important;
  color:var(--sh-gold)!important;
  font-size:.70rem!important;
  font-weight:900!important;
  line-height:1.2!important;
  letter-spacing:.18em!important;
  text-transform:uppercase!important;
}

.sh-content-eyebrow::before{
  content:'';
  width:32px;
  height:1px;
  background:currentColor;
  opacity:.65;
}

.sh-content-title{
  max-width:820px!important;
  margin:0!important;
  font-size:clamp(2.7rem,4.3vw,5.15rem)!important;
  line-height:.94!important;
  letter-spacing:-.05em!important;
  text-wrap:balance!important;
}

.sh-content-lead{
  max-width:700px!important;
  margin:24px 0 0!important;
  font-size:clamp(1rem,1.08vw,1.12rem)!important;
  line-height:1.72!important;
}

.sh-content-cta{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:48px!important;
  margin:30px 0 0!important;
  padding:0 22px!important;
  border:1px solid rgba(213,177,112,.50)!important;
  border-radius:999px!important;
  background:rgba(190,145,74,.12)!important;
  color:#f7ead6!important;
  box-shadow:none!important;
  font:inherit!important;
  font-size:.76rem!important;
  font-weight:900!important;
  line-height:1!important;
  letter-spacing:.035em!important;
  cursor:pointer!important;
  text-decoration:none!important;
  transition:transform .18s ease,background .18s ease,border-color .18s ease!important;
}

.sh-content-cta:hover{
  transform:translateY(-2px)!important;
  background:rgba(190,145,74,.21)!important;
  border-color:rgba(229,196,136,.82)!important;
}

/* ============================================================
   OWNERS — strong editorial split + four concise benefits
============================================================ */
main>section.sh-owner-section{
  padding:112px 0!important;
  background:
    radial-gradient(circle at 82% 14%,rgba(181,139,75,.12),transparent 28%),
    linear-gradient(180deg,#17130f 0%,#0f0d0b 100%)!important;
  color:#f3ece2!important;
  border-top:1px solid rgba(255,255,255,.06)!important;
  border-bottom:1px solid rgba(255,255,255,.06)!important;
}

.sh-owner-layout{
  display:grid!important;
  grid-template-columns:minmax(0,.78fr) minmax(520px,1.22fr)!important;
  gap:clamp(64px,7vw,112px)!important;
  align-items:center!important;
}

.sh-owner-layout>div:first-child{
  max-width:510px!important;
}

.sh-owner-section .sh-content-lead{
  color:rgba(244,238,229,.72)!important;
}

.sh-owner-points{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:18px!important;
  align-items:stretch!important;
}

.sh-owner-point{
  position:relative!important;
  min-height:205px!important;
  margin:0!important;
  padding:27px 27px 25px!important;
  border:1px solid rgba(255,255,255,.10)!important;
  border-radius:20px!important;
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.025))!important;
  box-shadow:0 18px 50px rgba(0,0,0,.16)!important;
  overflow:hidden!important;
}

.sh-owner-point::before{
  content:'';
  position:absolute;
  left:0;
  top:0;
  width:100%;
  height:2px;
  background:linear-gradient(90deg,var(--sh-gold),transparent 72%);
  opacity:.75;
}

.sh-owner-point-number{
  display:block!important;
  margin:0 0 30px!important;
  color:var(--sh-gold)!important;
  font-size:.69rem!important;
  font-weight:900!important;
  line-height:1!important;
  letter-spacing:.15em!important;
}

.sh-owner-point h3{
  margin:0 0 10px!important;
  color:#f6efe5!important;
  font-size:1.08rem!important;
  line-height:1.18!important;
  letter-spacing:-.015em!important;
}

.sh-owner-point p{
  margin:0!important;
  color:rgba(244,238,229,.64)!important;
  font-size:.86rem!important;
  line-height:1.58!important;
}

/* ============================================================
   PROCESS — clean, premium, horizontally structured on desktop
============================================================ */
main>section.sh-process-section{
  padding:108px 0 118px!important;
  background:linear-gradient(180deg,#efe7dc 0%,#e6dccf 100%)!important;
  color:var(--sh-ink)!important;
}

.sh-process-section .sh-content-wrap> .sh-content-eyebrow,
.sh-process-section .sh-content-wrap> .sh-content-title,
.sh-process-section .sh-content-wrap> .sh-content-lead{
  margin-left:auto!important;
  margin-right:auto!important;
  text-align:center!important;
}

.sh-process-section .sh-content-eyebrow{
  color:#8e6e3c!important;
}

.sh-process-section .sh-content-title{
  max-width:900px!important;
}

.sh-process-section .sh-content-lead{
  max-width:720px!important;
  color:rgba(30,25,21,.66)!important;
}

.sh-process-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:18px!important;
  margin:48px 0 0!important;
  align-items:stretch!important;
}

.sh-process-card{
  position:relative!important;
  min-height:355px!important;
  margin:0!important;
  padding:30px 30px 32px!important;
  border:1px solid rgba(53,40,29,.13)!important;
  border-radius:22px!important;
  background:rgba(255,255,255,.58)!important;
  box-shadow:0 18px 55px rgba(64,45,29,.08)!important;
}

.sh-process-icon{
  display:grid!important;
  width:46px!important;
  height:46px!important;
  margin:0 0 26px!important;
  place-items:center!important;
  border-radius:50%!important;
  background:#1e1915!important;
  color:var(--sh-gold-bright)!important;
  font-size:1.12rem!important;
}

.sh-process-card h3{
  margin:0 0 24px!important;
  color:#211b16!important;
  font-size:1.34rem!important;
  line-height:1.1!important;
  letter-spacing:-.025em!important;
}

.sh-process-card ol{
  display:grid!important;
  gap:16px!important;
  margin:0!important;
  padding:0!important;
  list-style:none!important;
  counter-reset:steps!important;
}

.sh-process-card li{
  position:relative!important;
  min-height:28px!important;
  padding:3px 0 0 36px!important;
  color:rgba(32,27,23,.72)!important;
  font-size:.88rem!important;
  line-height:1.48!important;
  counter-increment:steps!important;
}

.sh-process-card li::before{
  content:counter(steps)!important;
  position:absolute!important;
  left:0!important;
  top:0!important;
  display:grid!important;
  width:24px!important;
  height:24px!important;
  place-items:center!important;
  border:1px solid rgba(32,27,23,.20)!important;
  border-radius:50%!important;
  color:#6e5431!important;
  font-size:.67rem!important;
  font-weight:900!important;
}

/* ============================================================
   LOCAL — statement section; no oversized decorative clutter
============================================================ */
main>section.sh-local-section{
  padding:102px 0!important;
  background:
    radial-gradient(circle at 20% 50%,rgba(187,143,77,.13),transparent 30%),
    linear-gradient(115deg,#15110e 0%,#211a14 58%,#12100e 100%)!important;
  color:#f4eee5!important;
}

.sh-local-section::after{
  content:none!important;
  display:none!important;
}

.sh-local-copy{
  max-width:none!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(360px,.72fr)!important;
  grid-template-areas:
    'eyebrow facts'
    'title facts'
    'lead facts'!important;
  column-gap:clamp(70px,8vw,130px)!important;
  align-items:center!important;
}

.sh-local-copy>.sh-content-eyebrow{grid-area:eyebrow!important;justify-self:start!important}
.sh-local-copy>.sh-content-title{grid-area:title!important;max-width:760px!important}
.sh-local-copy>.sh-content-lead{grid-area:lead!important;color:rgba(244,238,229,.70)!important}

.sh-local-facts{
  grid-area:facts!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:0!important;
  margin:0!important;
  border-top:1px solid rgba(255,255,255,.12)!important;
}

.sh-local-fact{
  display:flex!important;
  align-items:center!important;
  min-height:54px!important;
  padding:0 4px!important;
  border:0!important;
  border-bottom:1px solid rgba(255,255,255,.12)!important;
  border-radius:0!important;
  color:rgba(244,238,229,.76)!important;
  background:transparent!important;
  font-size:.82rem!important;
  line-height:1.25!important;
}

.sh-local-fact::before{
  content:'•'!important;
  margin-right:11px!important;
  color:var(--sh-gold)!important;
}

/* ============================================================
   WORKS — one editorial story + one supporting card
============================================================ */
main>section#obras.sh-works-section{
  padding:108px 0!important;
  background:linear-gradient(180deg,#f2ebe1 0%,#e9dfd2 100%)!important;
  color:var(--sh-ink)!important;
  border:0!important;
}

.sh-works-layout{
  display:grid!important;
  grid-template-columns:minmax(0,1.08fr) minmax(320px,.62fr)!important;
  gap:clamp(70px,8vw,130px)!important;
  align-items:center!important;
}

.sh-works-section .sh-content-eyebrow{
  color:#8c6b39!important;
}

.sh-works-section .sh-content-title{
  max-width:760px!important;
}

.sh-works-section .sh-content-lead{
  max-width:680px!important;
  color:rgba(32,27,23,.68)!important;
}

.sh-works-section .sh-content-cta{
  color:#241d16!important;
  border-color:rgba(123,87,38,.34)!important;
  background:rgba(155,112,48,.09)!important;
}

.sh-works-note{
  position:relative!important;
  margin:0!important;
  padding:34px 34px 34px 38px!important;
  border:1px solid rgba(42,32,25,.12)!important;
  border-radius:22px!important;
  background:rgba(255,255,255,.52)!important;
  box-shadow:0 22px 60px rgba(67,49,30,.08)!important;
}

.sh-works-note::before{
  content:'';
  position:absolute;
  left:0;
  top:30px;
  bottom:30px;
  width:3px;
  border-radius:3px;
  background:var(--sh-gold);
}

.sh-works-note strong{
  display:block!important;
  margin:0 0 14px!important;
  color:#211b16!important;
  font-size:1.13rem!important;
  line-height:1.28!important;
  letter-spacing:-.018em!important;
}

.sh-works-note p{
  margin:0!important;
  color:rgba(32,27,23,.66)!important;
  font-size:.90rem!important;
  line-height:1.62!important;
}

/* ============================================================
   FAQ — editorial intro left, compact accordion right
============================================================ */
main>section.sh-faq-section{
  padding:106px 0 112px!important;
  background:linear-gradient(180deg,#12100e 0%,#0c0b0a 100%)!important;
  color:#f4eee5!important;
  border-top:1px solid rgba(255,255,255,.05)!important;
}

.sh-faq-layout{
  display:grid!important;
  grid-template-columns:minmax(300px,.70fr) minmax(0,1.30fr)!important;
  gap:clamp(72px,8vw,128px)!important;
  align-items:start!important;
}

.sh-faq-layout>div:first-child{
  position:sticky!important;
  top:110px!important;
}

.sh-faq-section .sh-content-title{
  max-width:500px!important;
  font-size:clamp(2.55rem,3.8vw,4.7rem)!important;
}

.sh-faq-list{
  margin:0!important;
  border-top:1px solid rgba(255,255,255,.13)!important;
}

.sh-faq-item{
  margin:0!important;
  border:0!important;
  border-bottom:1px solid rgba(255,255,255,.13)!important;
  background:transparent!important;
}

.sh-faq-item summary{
  position:relative!important;
  min-height:72px!important;
  margin:0!important;
  padding:24px 48px 24px 0!important;
  list-style:none!important;
  color:#f3ece2!important;
  font-size:.98rem!important;
  font-weight:780!important;
  line-height:1.42!important;
  cursor:pointer!important;
}

.sh-faq-item summary::-webkit-details-marker{display:none!important}

.sh-faq-item summary::after{
  content:'+'!important;
  position:absolute!important;
  right:2px!important;
  top:19px!important;
  color:var(--sh-gold)!important;
  font-size:1.45rem!important;
  font-weight:300!important;
  transition:transform .2s ease!important;
}

.sh-faq-item[open] summary::after{transform:rotate(45deg)!important}

.sh-faq-answer{
  max-width:690px!important;
  margin:0!important;
  padding:0 52px 25px 0!important;
  color:rgba(244,238,229,.65)!important;
  font-size:.90rem!important;
  line-height:1.68!important;
}

/* ============================================================
   FINAL CTA — calm, compact conclusion
============================================================ */
main>section#contacto.sh-final-section{
  padding:100px 0 108px!important;
  background:
    radial-gradient(circle at 50% 16%,rgba(196,151,80,.16),transparent 36%),
    #0c0b0a!important;
  color:#f4eee5!important;
  text-align:center!important;
  border-top:1px solid rgba(255,255,255,.06)!important;
}

.sh-final-section .sh-content-wrap{
  max-width:900px!important;
}

.sh-final-section .sh-content-eyebrow{
  justify-content:center!important;
}

.sh-final-section .sh-content-title{
  max-width:850px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  font-size:clamp(2.8rem,4.4vw,5.2rem)!important;
}

.sh-final-section .sh-content-lead{
  max-width:650px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  color:rgba(244,238,229,.68)!important;
}

/* ============================================================
   TABLET
============================================================ */
@media (min-width:721px) and (max-width:1100px){
  .sh-content-wrap,
  main>section#obras.sh-works-section>.sh-content-wrap{
    width:min(100% - 56px,var(--sh-max))!important;
  }

  main>section.sh-owner-section,
  main>section.sh-process-section,
  main>section.sh-local-section,
  main>section#obras.sh-works-section,
  main>section.sh-faq-section,
  main>section#contacto.sh-final-section{
    padding:84px 0!important;
  }

  .sh-content-title{
    font-size:clamp(2.55rem,6vw,4.5rem)!important;
  }

  .sh-owner-layout,
  .sh-works-layout,
  .sh-faq-layout{
    grid-template-columns:1fr!important;
    gap:46px!important;
  }

  .sh-owner-layout>div:first-child{
    max-width:720px!important;
  }

  .sh-owner-points{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  .sh-process-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:14px!important;
  }

  .sh-process-card{
    min-height:330px!important;
    padding:24px!important;
  }

  .sh-local-copy{
    grid-template-columns:minmax(0,1fr) minmax(270px,.62fr)!important;
    column-gap:52px!important;
  }

  .sh-faq-layout>div:first-child{
    position:static!important;
  }
}

/* ============================================================
   MOBILE
============================================================ */
@media (max-width:720px){
  main:has(> .sh-content-section){
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    overflow-x:hidden!important;
  }

  main>section.sh-content-section{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    flex:none!important;
  }

  .sh-content-wrap,
  main>section#obras.sh-works-section>.sh-content-wrap{
    width:calc(100% - 28px)!important;
    max-width:none!important;
  }

  main>section.sh-owner-section,
  main>section.sh-process-section,
  main>section.sh-local-section,
  main>section#obras.sh-works-section,
  main>section.sh-faq-section{
    padding:58px 0!important;
  }

  main>section#contacto.sh-final-section{
    padding:62px 0 108px!important;
  }

  .sh-content-eyebrow{
    margin-bottom:12px!important;
    font-size:.64rem!important;
    letter-spacing:.15em!important;
  }

  .sh-content-eyebrow::before{
    width:22px!important;
  }

  .sh-content-title,
  .sh-faq-section .sh-content-title,
  .sh-final-section .sh-content-title{
    max-width:none!important;
    font-size:clamp(2.05rem,10vw,3.15rem)!important;
    line-height:.98!important;
    letter-spacing:-.042em!important;
  }

  .sh-content-lead{
    margin-top:17px!important;
    font-size:.93rem!important;
    line-height:1.62!important;
  }

  .sh-content-cta{
    width:100%!important;
    min-height:48px!important;
    margin-top:24px!important;
    padding:0 16px!important;
    font-size:.72rem!important;
  }

  .sh-owner-layout,
  .sh-works-layout,
  .sh-faq-layout,
  .sh-local-copy{
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-template-areas:none!important;
    gap:34px!important;
  }

  .sh-owner-layout>div:first-child{
    max-width:none!important;
  }

  .sh-owner-points{
    grid-template-columns:1fr!important;
    gap:10px!important;
  }

  .sh-owner-point{
    min-height:0!important;
    padding:20px!important;
    border-radius:16px!important;
  }

  .sh-owner-point-number{
    margin-bottom:18px!important;
  }

  .sh-process-section .sh-content-wrap>.sh-content-eyebrow,
  .sh-process-section .sh-content-wrap>.sh-content-title,
  .sh-process-section .sh-content-wrap>.sh-content-lead{
    margin-left:0!important;
    margin-right:0!important;
    text-align:left!important;
  }

  .sh-process-grid{
    grid-template-columns:1fr!important;
    gap:10px!important;
    margin-top:32px!important;
  }

  .sh-process-card{
    min-height:0!important;
    padding:21px!important;
    border-radius:17px!important;
  }

  .sh-process-icon{
    width:40px!important;
    height:40px!important;
    margin-bottom:18px!important;
  }

  .sh-process-card h3{
    margin-bottom:18px!important;
    font-size:1.16rem!important;
  }

  .sh-process-card ol{
    gap:12px!important;
  }

  .sh-local-copy>.sh-content-eyebrow,
  .sh-local-copy>.sh-content-title,
  .sh-local-copy>.sh-content-lead,
  .sh-local-facts{
    grid-area:auto!important;
  }

  .sh-local-facts{
    margin-top:2px!important;
  }

  .sh-local-fact{
    min-height:48px!important;
    font-size:.78rem!important;
  }

  .sh-works-note{
    padding:24px 22px 24px 27px!important;
    border-radius:17px!important;
  }

  .sh-works-note::before{
    top:22px!important;
    bottom:22px!important;
  }

  .sh-faq-layout{
    gap:26px!important;
  }

  .sh-faq-layout>div:first-child{
    position:static!important;
  }

  .sh-faq-item summary{
    min-height:0!important;
    padding:19px 38px 19px 0!important;
    font-size:.91rem!important;
    line-height:1.4!important;
  }

  .sh-faq-item summary::after{
    right:0!important;
    top:15px!important;
  }

  .sh-faq-answer{
    padding:0 32px 20px 0!important;
    font-size:.84rem!important;
    line-height:1.62!important;
  }

  .sh-final-section .sh-content-wrap{
    max-width:none!important;
  }
}

/* Very narrow phones */
@media (max-width:390px){
  .sh-content-wrap,
  main>section#obras.sh-works-section>.sh-content-wrap{
    width:calc(100% - 24px)!important;
  }

  .sh-content-title,
  .sh-faq-section .sh-content-title,
  .sh-final-section .sh-content-title{
    font-size:2rem!important;
  }
}


/* ============================================================
   FINAL CTA + FOOTER — COMPACT UNIFIED FINISH 2026-09-10
   One dark surface on every viewport; no photographic/brown footer.
============================================================ */
main>section#contacto.sh-final-section{
  padding:72px 0 76px!important;
  background:
    radial-gradient(circle at 50% 10%,rgba(196,151,80,.10),transparent 34%),
    linear-gradient(180deg,#0c0b0a 0%,#0a0a09 100%)!important;
  border-bottom:0!important;
}

.footer{
  position:relative!important;
  min-height:0!important;
  margin:0!important;
  padding:24px 0 28px!important;
  background:#0a0a09!important;
  background-image:none!important;
  border-top:1px solid rgba(202,166,106,.22)!important;
  box-shadow:none!important;
}

.footer::before{
  content:""!important;
  position:absolute!important;
  top:-1px!important;
  left:50%!important;
  width:min(220px,34vw)!important;
  height:1px!important;
  transform:translateX(-50%)!important;
  background:linear-gradient(90deg,transparent,#caa66a,transparent)!important;
  opacity:.62!important;
  pointer-events:none!important;
}

.footer>.wrap{
  width:min(calc(100% - 40px),760px)!important;
  margin:0 auto!important;
  padding:0!important;
  text-align:center!important;
  color:rgba(255,255,255,.54)!important;
  font-size:.74rem!important;
  line-height:1.55!important;
}

.footer a{color:rgba(255,255,255,.68)!important;text-decoration:none!important}

.avyena-credit{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  margin-top:12px!important;
  padding-top:12px!important;
  border-top:1px solid rgba(255,255,255,.06)!important;
  color:rgba(255,255,255,.40)!important;
  font-size:.62rem!important;
}

.avyena-credit img{
  width:52px!important;
  height:18px!important;
  object-fit:contain!important;
  opacity:.62!important;
  filter:none!important;
}

@media (min-width:721px) and (max-width:1100px){
  main>section#contacto.sh-final-section{padding:66px 0 70px!important}
  .footer{padding:22px 0 26px!important}
}

@media (max-width:720px){
  main>section#contacto.sh-final-section{
    padding:50px 0 56px!important;
    min-height:0!important;
  }

  .footer{
    min-height:0!important;
    padding:20px 0 92px!important;
    background:#0a0a09!important;
    background-image:none!important;
  }

  .footer>.wrap{
    width:calc(100% - 28px)!important;
    max-width:520px!important;
    font-size:.68rem!important;
  }

  .avyena-credit{
    margin-top:10px!important;
    padding-top:10px!important;
  }
}


/* AVYENA footer credit — symbol only + linked brand name */
.avyena-credit-link{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  color:rgba(255,255,255,.62)!important;
  text-decoration:none!important;
  transition:opacity .2s ease,filter .2s ease!important;
}
.avyena-credit-link img{
  width:22px!important;
  height:22px!important;
  object-fit:contain!important;
  opacity:.72!important;
}
.avyena-credit-name{
  white-space:nowrap!important;
  font-size:.66rem!important;
  letter-spacing:.08em!important;
  font-weight:700!important;
}
.avyena-credit-name strong{
  font-weight:400!important;
  letter-spacing:.02em!important;
}
@media (hover:hover){
  .avyena-credit-link:hover{
    opacity:1!important;
    filter:brightness(1.15)!important;
  }
}
