:root {
  --coal: #121310;
  --coal-soft: #20221d;
  --ivory: #f3efe6;
  --paper: #fbf9f4;
  --gold: #c8a66a;
  --gold-light: #e5d2ac;
  --olive: #59604d;
  --line: rgba(18, 19, 16, .18);
  --white-line: rgba(255, 255, 255, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--coal); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
svg { width: 1.25em; height: 1.25em; flex: 0 0 auto; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.topline { min-height: 35px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: .5rem clamp(1.25rem, 4vw, 4.5rem); background: var(--coal); color: #d9d5cc; font-size: .6rem; letter-spacing: .17em; text-transform: uppercase; }
.topline p { margin: 0; }
.topline div { display: flex; gap: 2rem; }
.topline a { transition: color .2s ease; }
.topline a:hover { color: var(--gold-light); }

.hero { position: relative; min-height: calc(100vh - 35px); height: 850px; overflow: hidden; background: var(--coal); color: white; }
.hero::before { content: ""; position: absolute; inset: 0; background: url("/images/piscina-hero.webp") center 55% / cover no-repeat; animation: heroScale 18s ease-in-out infinite alternate; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,15,12,.82) 0%, rgba(13,15,12,.48) 45%, rgba(13,15,12,.12) 72%), linear-gradient(0deg, rgba(13,15,12,.68) 0%, transparent 38%); }
.hero-shade::after { content: ""; position: absolute; inset: 0; opacity: .13; background-image: radial-gradient(rgba(255,255,255,.7) .45px, transparent .45px); background-size: 6px 6px; }

.nav-shell { position: absolute; z-index: 5; top: 0; left: 0; right: 0; min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.4rem clamp(1.25rem, 4vw, 4.5rem); border-bottom: 1px solid var(--white-line); }
.wordmark { display: grid; line-height: .84; letter-spacing: -.05em; }
.wordmark b { font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; font-weight: 400; }
.wordmark span { margin-top: .42rem; font-size: .58rem; letter-spacing: .32em; }
.nav-shell nav { display: flex; gap: clamp(1.4rem, 3vw, 3rem); margin-left: auto; }
.nav-shell nav a { position: relative; padding: .4rem 0; color: rgba(255,255,255,.78); font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; }
.nav-shell nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--gold-light); transition: right .3s ease; }
.nav-shell nav a:hover::after { right: 0; }
.nav-quote { display: inline-flex; align-items: center; gap: 1rem; margin-left: 1rem; padding: .85rem 1rem; border: 1px solid rgba(255,255,255,.7); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; transition: background .25s ease, color .25s ease; }
.nav-quote:hover { background: white; color: var(--coal); }

.hero-copy { position: absolute; z-index: 2; left: clamp(1.25rem, 7vw, 8rem); bottom: 11rem; max-width: 790px; }
.microtitle { display: inline-flex; align-items: center; gap: .75rem; color: var(--gold-light); font-size: .62rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.microtitle i { width: 34px; height: 1px; background: currentColor; }
.hero h1, .statement h2, .section-intro h2, .service-heading h2, .process-copy h2, .closing h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.055em; }
.hero h1 { margin-top: 1.25rem; font-size: clamp(4.6rem, 8.2vw, 9rem); line-height: .88; }
.hero h1 em { color: var(--gold-light); font-weight: 400; }
.hero-copy > p { max-width: 590px; margin: 1.8rem 0 0; color: rgba(255,255,255,.76); font-size: .98rem; line-height: 1.75; }

.hero-card { position: absolute; z-index: 3; right: clamp(1.25rem, 4vw, 4.5rem); bottom: 5.2rem; width: min(380px, 31vw); padding: 1.8rem; background: rgba(244,239,229,.96); color: var(--coal); backdrop-filter: blur(14px); }
.card-index { display: block; padding-bottom: 1rem; border-bottom: 1px solid var(--line); color: var(--olive); font-size: .56rem; letter-spacing: .2em; }
.hero-card h2 { margin: 2rem 0 1rem; font-family: Georgia, "Times New Roman", serif; font-size: 2.15rem; font-weight: 400; line-height: 1.03; letter-spacing: -.04em; }
.hero-card > p { margin: 0 0 1.5rem; color: #626359; font-size: .77rem; line-height: 1.65; }
.sales-buttons { display: grid; gap: .6rem; }
.sales-buttons a { min-height: 58px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem; padding: .7rem .8rem; border: 1px solid var(--coal); transition: background .25s ease, color .25s ease, transform .25s ease; }
.sales-buttons a:first-child { background: var(--coal); color: white; }
.sales-buttons a:hover { transform: translateX(4px); background: var(--gold); color: var(--coal); }
.sales-buttons svg { width: 22px; height: 22px; }
.sales-buttons a > span { display: grid; gap: .2rem; font-size: .72rem; font-weight: 700; }
.sales-buttons small { font-size: .48rem; letter-spacing: .16em; font-weight: 400; }

.hero-bottom { position: absolute; z-index: 3; left: clamp(1.25rem, 4vw, 4.5rem); right: clamp(1.25rem, 4vw, 4.5rem); bottom: 1.5rem; display: flex; align-items: end; justify-content: space-between; gap: 2rem; color: rgba(255,255,255,.78); }
.hero-bottom > a { display: flex; align-items: center; gap: 1rem; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; }
.hero-bottom > a span { font-size: 1.2rem; animation: scrollCue 1.8s ease infinite; }
.hero-bottom p { display: grid; gap: .25rem; margin: 0; padding-right: 26rem; text-align: right; font-size: .62rem; }
.hero-bottom p span { color: rgba(255,255,255,.55); }

.statement { display: grid; grid-template-columns: .36fr 1fr; gap: 5rem; padding: clamp(6rem, 12vw, 12rem) clamp(1.25rem, 7vw, 8rem); background: var(--ivory); }
.statement-label { display: flex; align-items: flex-start; gap: 1.2rem; padding-top: .7rem; }
.statement-label span { color: var(--gold); font-family: Georgia, serif; font-style: italic; }
.statement-label p { margin: 0; font-size: .64rem; line-height: 1.6; letter-spacing: .15em; text-transform: uppercase; }
.statement-copy h2 { max-width: 930px; font-size: clamp(3.8rem, 6.8vw, 7.5rem); line-height: .98; }
.statement-copy > p { max-width: 820px; margin: 2.2rem 0 0 18%; color: #5f6057; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 2vw, 2rem); line-height: 1.45; }

.editorial-photo { position: relative; min-height: 780px; display: grid; grid-template-columns: 1fr 130px; padding: 0 0 0 clamp(1.25rem, 7vw, 8rem); background: var(--ivory); overflow: hidden; }
.photo-window { min-height: 700px; }
.family-photo { background: linear-gradient(180deg, transparent 58%, rgba(16,17,14,.48)), url("/images/piscina-familia.webp") center / cover no-repeat; transition: background-size 1s ease; }
.photo-caption { position: absolute; left: clamp(2.5rem, 10vw, 11rem); bottom: 4rem; color: white; }
.photo-caption span { color: var(--gold-light); font-size: .58rem; letter-spacing: .2em; }
.photo-caption p { margin: .7rem 0 0; font-family: Georgia, serif; font-size: clamp(2.2rem, 4vw, 4.5rem); line-height: 1.02; }
.vertical-note { display: grid; place-items: center; writing-mode: vertical-rl; transform: rotate(180deg); color: #6c6d63; font-size: .57rem; letter-spacing: .23em; }

.collections { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(4rem, 8vw, 9rem); padding: clamp(7rem, 11vw, 11rem) clamp(1.25rem, 7vw, 8rem); background: var(--paper); }
.micro-dark { color: var(--olive); }
.section-intro { align-self: start; position: sticky; top: 3rem; }
.section-intro h2 { margin-top: 1.5rem; font-size: clamp(3.5rem, 5vw, 6rem); line-height: .98; }
.section-intro > p { max-width: 440px; margin-top: 2rem; color: #68695f; font-size: .85rem; line-height: 1.75; }
.collection-list { border-top: 1px solid var(--coal); }
.collection-row { min-height: 170px; display: grid; grid-template-columns: 45px 1fr 1fr 48px; gap: 1.5rem; align-items: center; padding: 1.5rem 0; border-bottom: 1px solid var(--line); transition: padding .3s ease, background .3s ease; }
.collection-row:hover { padding-inline: 1rem; background: var(--ivory); }
.collection-row > span { color: var(--gold); font-family: Georgia, serif; font-style: italic; }
.collection-row h3 { margin: 0; font-family: Georgia, serif; font-size: clamp(2rem, 3.2vw, 3.5rem); font-weight: 400; letter-spacing: -.05em; }
.collection-row p { max-width: 320px; margin: 0; color: #6d6e64; font-size: .75rem; line-height: 1.6; }
.collection-row > a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--coal); border-radius: 50%; transition: background .25s ease, color .25s ease, transform .25s ease; }
.collection-row > a:hover { transform: rotate(45deg); background: var(--coal); color: white; }

.service { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(4rem, 9vw, 10rem); padding: clamp(7rem, 11vw, 11rem) clamp(1.25rem, 7vw, 8rem); background: var(--coal); color: white; }
.micro-light { color: var(--gold-light); }
.service-heading h2 { margin-top: 1.5rem; font-size: clamp(4rem, 6.2vw, 7rem); line-height: .95; }
.service-heading h2 em { color: var(--gold-light); font-weight: 400; }
.service-heading > p { max-width: 480px; margin-top: 2rem; color: #aaada4; font-size: .85rem; line-height: 1.75; }
.service-list { border-top: 1px solid var(--white-line); }
.service-list article { display: grid; grid-template-columns: 52px 1fr; gap: 1.3rem; padding: 1.65rem 0; border-bottom: 1px solid var(--white-line); }
.service-list article > span { color: var(--gold); font-family: Georgia, serif; font-style: italic; }
.service-list h3 { margin: 0; font-family: Georgia, serif; font-size: 1.45rem; font-weight: 400; }
.service-list p { max-width: 500px; margin: .55rem 0 0; color: #999c93; font-size: .75rem; line-height: 1.6; }

.process { min-height: 790px; display: grid; grid-template-columns: 1.08fr .92fr; background: var(--ivory); }
.process-image { min-height: 680px; background: url("/images/piscina-instalacion.webp") center / cover no-repeat; }
.process-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(4rem, 7vw, 8rem); }
.process-copy h2 { margin-top: 1.5rem; font-size: clamp(3.8rem, 5.4vw, 6.3rem); line-height: .96; }
.process-copy > p { color: #65665d; font-size: .84rem; line-height: 1.75; }
.process ol { list-style: none; padding: 0; margin: 2rem 0; border-top: 1px solid var(--line); }
.process li { display: grid; grid-template-columns: 42px 1fr; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.process li b { color: var(--gold); font-family: Georgia, serif; font-style: italic; font-weight: 400; }
.process li span { font-size: .78rem; }
.line-link { align-self: flex-start; display: inline-flex; gap: 1rem; align-items: center; padding-bottom: .45rem; border-bottom: 1px solid var(--coal); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; }

.closing { position: relative; min-height: 730px; display: grid; place-items: center; overflow: hidden; padding: clamp(6rem, 10vw, 10rem) 1.25rem; background: var(--gold); color: var(--coal); text-align: center; }
.closing-number { position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%); color: rgba(255,255,255,.2); font-family: Georgia, serif; font-size: min(33vw, 520px); letter-spacing: -.1em; white-space: nowrap; }
.closing-copy { position: relative; z-index: 2; max-width: 1050px; }
.closing-copy > span { font-size: .6rem; letter-spacing: .2em; }
.closing h2 { margin-top: 1.5rem; font-size: clamp(4rem, 7.8vw, 8.5rem); line-height: .9; }
.closing h2 em { color: var(--paper); font-weight: 400; }
.closing-copy > p { max-width: 590px; margin: 2rem auto; font-size: .86rem; line-height: 1.7; }
.closing-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; }
.closing-actions a { min-height: 56px; display: inline-flex; align-items: center; gap: .7rem; padding: .9rem 1.2rem; border: 1px solid var(--coal); font-size: .68rem; font-weight: 700; letter-spacing: .06em; transition: transform .25s ease, background .25s ease, color .25s ease; }
.closing-actions a:hover { transform: translateY(-4px); }
.primary-action { background: var(--coal); color: white; }
.secondary-action { background: rgba(255,255,255,.28); }

footer { display: grid; grid-template-columns: 1fr 1.3fr .8fr auto; gap: 2rem; align-items: center; padding: 3rem clamp(1.25rem, 4vw, 4.5rem) 6rem; background: var(--coal); color: white; }
.footer-mark b { font-size: 1.45rem; }
footer p { color: #95988f; font-size: .68rem; line-height: 1.65; }
footer > div { display: grid; gap: .45rem; font-size: .67rem; }
footer small { color: #777a72; font-size: .58rem; }

.mobile-sales { display: none; }
.entrance { animation: entrance .9s cubic-bezier(.2,.7,.2,1) both; }
.delay-one { animation-delay: .18s; }

@keyframes heroScale { from { transform: scale(1.01); } to { transform: scale(1.075); } }
@keyframes entrance { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scrollCue { 50% { transform: translateY(6px); } }

@media (max-width: 1100px) {
  .hero-card { width: 355px; }
  .hero-bottom p { display: none; }
  .statement { grid-template-columns: .25fr 1fr; gap: 3rem; }
  .collections, .service { gap: 4rem; }
  .collection-row { grid-template-columns: 35px 1fr .9fr 44px; }
}

@media (max-width: 820px) {
  .topline div a:first-child { display: none; }
  .nav-shell nav { display: none; }
  .hero { min-height: 930px; height: auto; }
  .hero::before { background-position: 58% center; }
  .nav-shell { min-height: 82px; }
  .nav-quote { margin-left: auto; }
  .hero-copy { top: 10rem; bottom: auto; right: 1.25rem; }
  .hero-card { left: 1.25rem; right: 1.25rem; bottom: 4.5rem; width: auto; }
  .hero-bottom { display: none; }
  .statement { grid-template-columns: 1fr; gap: 3rem; }
  .statement-copy > p { margin-left: 0; }
  .editorial-photo { min-height: 620px; grid-template-columns: 1fr 65px; padding-left: 1.25rem; }
  .photo-window { min-height: 590px; }
  .collections, .service { grid-template-columns: 1fr; }
  .section-intro { position: static; }
  .process { grid-template-columns: 1fr; }
  .process-image { min-height: 560px; }
  footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  body { padding-bottom: 68px; }
  .topline { justify-content: center; }
  .topline p { display: none; }
  .topline div a:first-child { display: inline; }
  .topline div { width: 100%; justify-content: space-between; gap: 1rem; font-size: .5rem; }
  .nav-shell { padding: 1rem; }
  .wordmark b { font-size: 1.35rem; }
  .nav-quote { padding: .7rem; font-size: 0; }
  .nav-quote span { font-size: 1rem; }
  .hero { min-height: 950px; }
  .hero-copy { left: 1.1rem; right: 1.1rem; top: 8.3rem; }
  .hero h1 { font-size: clamp(4.2rem, 19vw, 5.9rem); }
  .hero-copy > p { font-size: .82rem; }
  .hero-card { left: 1rem; right: 1rem; bottom: 1rem; padding: 1.4rem; }
  .hero-card h2 { margin-top: 1.3rem; font-size: 1.85rem; }
  .statement { padding: 5.5rem 1.2rem; }
  .statement-copy h2 { font-size: 3.6rem; }
  .statement-copy > p { font-size: 1.3rem; }
  .editorial-photo { min-height: 520px; display: block; padding: 0; }
  .photo-window { min-height: 520px; }
  .vertical-note { display: none; }
  .photo-caption { left: 1.25rem; bottom: 2rem; }
  .photo-caption p { font-size: 2.2rem; }
  .collections, .service { padding: 5.5rem 1.2rem; }
  .section-intro h2, .service-heading h2 { font-size: 3.8rem; }
  .collection-row { grid-template-columns: 28px 1fr 42px; gap: .8rem; min-height: 150px; }
  .collection-row p { grid-column: 2 / 4; }
  .collection-row > a { grid-column: 3; grid-row: 1; }
  .service-list article { grid-template-columns: 36px 1fr; }
  .process-image { min-height: 430px; }
  .process-copy { padding: 5rem 1.2rem; }
  .process-copy h2 { font-size: 3.7rem; }
  .closing { min-height: 680px; padding-inline: 1.2rem; }
  .closing h2 { font-size: 4.35rem; }
  .closing-actions { display: grid; }
  footer { grid-template-columns: 1fr; padding: 3rem 1.2rem; }
  .mobile-sales { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; padding: .55rem; background: var(--coal); }
  .mobile-sales a { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: .5rem; background: #20b760; color: white; font-size: .67rem; font-weight: 700; letter-spacing: .05em; }
  .mobile-sales svg { width: 21px; height: 21px; }
}

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