:root {
  --stage-ink: #10264b;
  --stage-night: #091a38;
  --stage-night-soft: #112c57;
  --stage-paper: #f8f7f3;
  --stage-paper-soft: #ebe8df;
  --stage-gold: #d8ad52;
  --stage-gold-light: #f0d391;
  --stage-white: #fbfaf6;
  --stage-muted: rgba(251,250,246,.72);
  --stage-line: rgba(251,250,246,.2);
}

html { color-scheme: dark; scroll-behavior: smooth; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--stage-night); color: var(--stage-white); font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif; }
a { color: inherit; }
img { display: block; max-width: 100%; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--stage-gold-light); outline-offset: 4px; }
.stage-skip { position: fixed; top: .75rem; left: .75rem; z-index: 10; padding: .7rem 1rem; transform: translateY(-180%); background: var(--stage-gold); color: var(--stage-night); font-size: .75rem; font-weight: 800; text-decoration: none; }
.stage-skip:focus-visible { transform: translateY(0); }
.stage-shell { overflow: hidden; transition: filter .2s ease; }
.stage-container { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.stage-header { position: absolute; inset: 0 0 auto; z-index: 2; border-bottom: 1px solid var(--stage-line); }
.stage-header-inner { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 2rem; }
.stage-brand { display: inline-flex; align-items: baseline; gap: .8rem; text-decoration: none; }
.stage-brand strong { color: var(--stage-gold-light); font-family: Georgia, serif; font-size: 1.35rem; letter-spacing: .18em; }
.stage-brand span { color: var(--stage-muted); font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; }
.stage-back { display: inline-flex; min-height: 44px; align-items: center; gap: .55rem; padding: .65rem .9rem; border: 1px solid rgba(251,250,246,.42); background: rgba(9,26,56,.72); color: var(--stage-white); font-size: .75rem; font-weight: 800; letter-spacing: .01em; text-decoration: none; white-space: nowrap; transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease; }
.stage-back:hover { border-color: var(--stage-gold); background: rgba(9,26,56,.92); color: var(--stage-gold-light); transform: translateY(-1px); }
.stage-hero { position: relative; min-height: 720px; display: grid; align-items: end; background: linear-gradient(90deg, rgba(9,26,56,.96) 0%, rgba(9,26,56,.78) 42%, rgba(9,26,56,.3) 100%), url("assets/otimizadas/stage-piscina.webp") 68% center / cover; }
.stage-hero::before, .stage-section-dark::before { position: absolute; top: 0; right: 0; width: 170px; height: 120px; border-left: 1px solid rgba(216,173,82,.55); border-bottom: 1px solid rgba(216,173,82,.55); background: linear-gradient(135deg, transparent 49%, rgba(216,173,82,.9) 50%, transparent 51%); content: ''; opacity: .9; pointer-events: none; }
.stage-hero-content { position: relative; z-index: 1; padding-block: 8rem 6rem; }
.stage-eyebrow, .stage-kicker { color: var(--stage-gold-light); font-size: .68rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.stage-hero h1, .stage-section h2, .stage-contact h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.05em; }
.stage-hero h1 { max-width: 720px; margin: .9rem 0 1.2rem; font-size: clamp(3.8rem, 9vw, 8.6rem); line-height: .88; }
.stage-hero h1 em { color: var(--stage-gold-light); font-style: normal; }
.stage-hero p { max-width: 520px; margin: 0; color: var(--stage-muted); font-size: 1.03rem; line-height: 1.65; }
.stage-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.stage-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: .8rem 1.2rem; border: 1px solid var(--stage-gold); background: var(--stage-gold); color: var(--stage-night); font-size: .77rem; font-weight: 800; text-decoration: none; }
.stage-button:hover { background: transparent; color: var(--stage-white); }
.stage-button-alt { border-color: var(--stage-line); background: rgba(9,26,56,.35); color: var(--stage-white); }
.stage-button-alt:hover { border-color: var(--stage-gold); color: var(--stage-gold-light); }
.stage-hero-mark { position: absolute; right: 5%; bottom: 3rem; z-index: 1; color: rgba(240,211,145,.28); font-family: Georgia, serif; font-size: clamp(2rem, 5vw, 5rem); letter-spacing: .22em; line-height: .9; text-align: right; }
.stage-hero-mark span { display: block; margin-top: .8rem; font-family: inherit; font-size: .16em; letter-spacing: .38em; text-transform: uppercase; }
.stage-signal { border-block: 1px solid rgba(216,173,82,.55); background: var(--stage-gold); color: var(--stage-night); }
.stage-facts { display: grid; grid-template-columns: repeat(4, 1fr); }
.stage-fact { min-height: 138px; padding: 1.6rem 1.2rem; border-right: 1px solid rgba(9,26,56,.25); }
.stage-fact:last-child { border-right: 0; }
.stage-fact b { display: block; margin-bottom: .55rem; font-family: Georgia, serif; font-size: 1.75rem; font-weight: 400; letter-spacing: -.04em; }
.stage-fact span { display: block; font-size: .74rem; line-height: 1.4; }
.stage-section { position: relative; padding-block: 7.5rem; }
.stage-section-light { background: var(--stage-paper); color: var(--stage-ink); }
.stage-section-dark { position: relative; background: var(--stage-night); }
.stage-section-head { display: flex; align-items: end; justify-content: space-between; gap: 3rem; margin-bottom: 3rem; }
.stage-section h2 { max-width: 780px; margin: .75rem 0 0; font-size: clamp(2.7rem, 6vw, 6.1rem); line-height: .92; text-wrap: balance; }
.stage-intro-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(260px, .95fr); gap: 3rem; align-items: start; }
.stage-intro-grid p { max-width: 650px; margin: 0; color: rgba(16,38,75,.72); font-size: 1.02rem; line-height: 1.75; }
.stage-address { padding: 1.6rem; border-left: 1px solid var(--stage-gold); background: rgba(216,173,82,.12); }
.stage-address strong, .stage-address span { display: block; }
.stage-address strong { margin-bottom: .7rem; font-family: Georgia, serif; font-size: 1.2rem; }
.stage-address span { color: rgba(16,38,75,.7); font-size: .82rem; }
.stage-gallery { display: grid; grid-template-columns: 1.35fr .65fr; gap: 1rem; }
.stage-gallery figure { min-width: 0; margin: 0; }
.stage-gallery img { display: block; width: 100%; height: 100%; min-height: 250px; object-fit: cover; }
.stage-gallery-main { grid-row: span 2; min-height: 540px; }
.stage-gallery-main img { min-height: 540px; }
.stage-gallery-side { display: grid; grid-template-rows: 1fr 1fr; gap: 1rem; }
.stage-gallery figcaption { margin-top: .55rem; color: var(--stage-muted); font-size: .7rem; }
.stage-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(16,38,75,.18); }
.stage-feature { min-height: 245px; padding: 1.5rem; background: var(--stage-paper); }
.stage-feature h3 { margin: 2rem 0 .8rem; font-family: Georgia, serif; font-size: 1.35rem; font-weight: 400; }
.stage-feature p { margin: 0; color: rgba(16,38,75,.68); font-size: .8rem; line-height: 1.6; }
.stage-sustainability { display: flex; justify-content: space-between; gap: 2rem; margin-top: 1.5rem; padding: 1.3rem 0; border-top: 1px solid rgba(16,38,75,.18); border-bottom: 1px solid rgba(16,38,75,.18); }
.stage-sustainability strong { font-family: Georgia, serif; font-size: 1.1rem; font-weight: 400; }
.stage-sustainability span { max-width: 460px; color: rgba(16,38,75,.68); font-size: .8rem; }
.stage-type-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--stage-line); }
.stage-type-card { min-height: 245px; padding: 1.45rem; background: var(--stage-night-soft); }
.stage-type-card strong { display: block; margin: 2rem 0 .8rem; color: var(--stage-white); font-family: Georgia, serif; font-size: 1.25rem; font-weight: 400; }
.stage-type-card p { margin: 0; color: var(--stage-muted); font-size: .77rem; line-height: 1.55; }
.stage-price { display: block; color: var(--stage-gold-light); font-size: .9rem; font-weight: 800; }
.stage-price-note { display: flex; justify-content: space-between; gap: 2rem; padding: 1.3rem 0; border-block: 1px solid rgba(16,38,75,.18); }
.stage-price-note strong { font-family: Georgia, serif; font-size: 1.2rem; font-weight: 400; }
.stage-price-note span { color: rgba(16,38,75,.66); font-size: .8rem; }
.stage-plants { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; margin-top: 2.5rem; }
.stage-plants figure { margin: 0; padding: .5rem; background: var(--stage-night); }
.stage-plant-trigger { display: block; width: 100%; padding: .5rem; border: 1px solid rgba(216,173,82,.36); background: var(--stage-night); cursor: zoom-in; }
.stage-plant-trigger:hover { border-color: var(--stage-gold); }
.stage-plant-trigger:focus-visible { outline: 2px solid var(--stage-gold); outline-offset: 4px; }
.stage-plants img { display: block; width: 100%; height: 330px; object-fit: contain; background: #fff; }
.stage-plants figcaption { padding: .7rem .4rem .3rem; color: var(--stage-muted); font-size: .7rem; }
.stage-lightbox[hidden] { display: none; }
.stage-lightbox { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 2rem; }
.stage-lightbox-backdrop { position: absolute; inset: 0; background: rgba(9,26,56,.82); backdrop-filter: blur(4px); }
.stage-lightbox-dialog { position: relative; z-index: 1; max-width: min(1120px,94vw); max-height: 92vh; padding: 1rem; border: 1px solid rgba(216,173,82,.45); background: var(--stage-night); }
.stage-lightbox-dialog img { display: block; max-width: calc(94vw - 2rem); max-height: calc(92vh - 2rem); width: auto; height: auto; object-fit: contain; }
.stage-lightbox-close { position: absolute; top: .75rem; right: .75rem; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(251,250,246,.35); background: rgba(9,26,56,.82); color: var(--stage-white); font-size: 1.5rem; cursor: pointer; }
.stage-lightbox-close:hover { border-color: var(--stage-gold); color: var(--stage-gold-light); }
body.stage-lightbox-open { overflow: hidden; }
body.stage-lightbox-open .stage-shell { filter: blur(7px); }
.stage-contact { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,.6fr); gap: 3rem; align-items: end; }
.stage-contact h2 { margin-bottom: 1.5rem; }
.stage-contact p { max-width: 500px; color: var(--stage-muted); line-height: 1.6; }
.stage-contact-card { padding: 1.5rem; border: 1px solid var(--stage-line); }
.stage-contact-card span, .stage-contact-card strong { display: block; }
.stage-contact-card span { margin-bottom: .35rem; color: var(--stage-muted); font-size: .7rem; }
.stage-contact-card strong { font-family: Georgia, serif; font-size: 1.05rem; font-weight: 400; }
.stage-contact-card .stage-contact-label { margin-top: 1rem; }
.stage-footer { padding-block: 1.5rem; border-top: 1px solid var(--stage-line); color: var(--stage-muted); font-size: .68rem; }
.stage-footer-inner { display: flex; justify-content: space-between; gap: 1rem; }
#valores, #tipologias { scroll-margin-top: 80px; }

@media (max-width: 980px) {
  .stage-container { width: min(100% - 40px, 700px); }
  .stage-type-grid { grid-template-columns: repeat(2, 1fr); }
  .stage-feature-grid { grid-template-columns: 1fr; }
  .stage-contact, .stage-intro-grid { grid-template-columns: 1fr; }
  .stage-hero-mark { right: 2rem; bottom: 2rem; }
}

@media (max-width: 620px) {
  .stage-container { width: min(100% - 32px, 520px); }
  .stage-header-inner { min-height: 68px; }
  .stage-brand { align-items: flex-start; flex-direction: column; gap: .15rem; }
  .stage-hero { min-height: 700px; background-position: 62% center; }
  .stage-hero-content { padding-block: 7rem 5rem; }
  .stage-hero h1 { font-size: clamp(3.5rem, 18vw, 5.8rem); }
  .stage-hero-mark { display: none; }
  .stage-facts { grid-template-columns: repeat(2, 1fr); }
  .stage-fact:nth-child(2) { border-right: 0; }
  .stage-fact:nth-child(-n+2) { border-bottom: 1px solid rgba(9,26,56,.25); }
  .stage-section { padding-block: 5rem; }
  .stage-section-head { display: block; }
  .stage-gallery { display: block; }
  .stage-gallery-main img, .stage-gallery img { min-height: 230px; }
  .stage-gallery-side { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: none; gap: 1rem; margin-top: 1rem; }
  .stage-type-grid { grid-template-columns: 1fr; }
  .stage-price-note, .stage-sustainability { align-items: flex-start; flex-direction: column; gap: .6rem; }
  .stage-plants { grid-template-columns: 1fr; }
  .stage-plants img { height: 300px; }
  .stage-footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .stage-shell { transition: none; } }
