/* =========================================================
   Tienda de Piscinas — Santa Rosa, La Pampa
   ========================================================= */

:root {
  --blue: #0052A0;
  --blue-600: #00427f;
  --coral: #FE2B2D;
  --coral-600: #e01e21;
  --navy: #031B36;
  --navy-800: #06264a;
  --foam: #F4F8FB;
  --ink: #0B1B2E;
  --muted: #5B6B7E;
  --white: #fff;

  --font-sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-inout: cubic-bezier(.76, 0, .24, 1);

  --header-h: 88px;
  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--foam);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-loading, body.menu-open { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--coral); color: #fff; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  --h: 56px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .7em;
  height: var(--h);
  padding: 0 1.6em;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: -.005em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color .4s var(--ease-out), background-color .4s var(--ease-out), border-color .4s var(--ease-out);
}
.btn--sm { --h: 46px; padding: 0 1.3em; font-size: .88rem; }
.btn span { position: relative; z-index: 1; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .55s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }

.btn__arrow {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .45s var(--ease-out);
}
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--coral { background: var(--coral); color: #fff; box-shadow: 0 10px 30px -10px rgba(254, 43, 45, .6); }
.btn--coral::before { background: var(--navy); }

.btn--glass {
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.btn--glass::before { background: #fff; }
.btn--glass:hover { color: var(--navy); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-weight: 500;
  font-size: .92rem;
}
.link-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(5px); }

[data-magnetic] { will-change: transform; transition: transform .5s var(--ease-out); }

/* =========================================================
   PRELOADER
   ========================================================= */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  color: #fff;
  pointer-events: all;
}
/* Navy tint over the (blurred) hero video that plays underneath */
.preloader__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60vmax 45vmax at 50% 48%, rgba(0, 82, 160, .25), transparent 70%),
    linear-gradient(180deg, rgba(3, 27, 54, .62), rgba(3, 27, 54, .42) 50%, rgba(3, 27, 54, .72));
  transition: opacity 1.6s var(--ease-out);
}
.preloader__stage {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(22px, 3.5vw, 44px) var(--gutter);
}
.preloader__stage::after { content: ""; height: 1rem; }

.preloader__top {
  display: flex;
  justify-content: space-between;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  opacity: 0;
  animation: plFade 1.2s var(--ease-out) .3s forwards;
  transition: opacity .6s var(--ease-out);
}

.preloader__logo {
  position: relative;
  display: grid;
  place-items: center;
  align-self: center;
  justify-self: center;
}
.preloader__logo svg {
  position: relative;
  width: min(40vmin, 340px);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 20px 50px rgba(0, 10, 30, .45));
  transition: transform 1.3s var(--ease-inout), opacity 1s var(--ease-out), filter 1s var(--ease-out);
}
.pl-ghost { --lg-blue: rgba(255, 255, 255, .16); --lg-coral: rgba(254, 43, 45, .22); }
.pl-deep  { --lg-blue: #8CC4FF; --lg-coral: #FF8F90; }
.pl-fill  { --lg-blue: #fff; --lg-coral: var(--coral); }

/* Soft caustic light behind the logo */
.preloader__glow {
  position: absolute;
  width: 150%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(110, 180, 255, .22), rgba(0, 82, 160, .08) 55%, transparent);
  animation: glow 4s ease-in-out infinite alternate;
  transition: opacity 1s var(--ease-out);
}
@keyframes glow { from { transform: scale(.9); opacity: .7; } to { transform: scale(1.05); opacity: 1; } }

/* Drop ripples when the pool is full */
.preloader__ripple {
  position: absolute;
  width: 115%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .5);
  opacity: 0;
  transform: scale(.5);
}
.preloader.is-complete .preloader__ripple { animation: ripple 2.2s var(--ease-out) forwards; }
.preloader.is-complete .preloader__ripple:nth-of-type(3) { animation-delay: .18s; }
.preloader.is-complete .preloader__ripple:nth-of-type(4) { animation-delay: .36s; }
@keyframes ripple {
  0%   { opacity: 0; transform: scale(.55); }
  15%  { opacity: .9; }
  100% { opacity: 0; transform: scale(2.6); }
}

/* Logo parts entrance (also mirrored into the <use> layers) */
.preloader [class^="lg-"],
.preloader .lg-l {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.preloader .lg-frame { transform-origin: 50% 50%; animation: lgFrame 1.4s var(--ease-out) both; }
.preloader .lg-wave  { transform-origin: 0% 50%;  animation: lgWave 1.3s var(--ease-out) .3s both; }
.preloader .lg-wave2 { transform-origin: 100% 50%; animation: lgWave 1.3s var(--ease-out) 1s both; }
.preloader .lg-t     { animation: lgRise 1.1s var(--ease-out) .4s both; }
.preloader .lg-p     { animation: lgRise 1.1s var(--ease-out) .5s both; }
.preloader .lg-l     { animation: lgRise 1s var(--ease-out) calc(.6s + var(--i) * .045s) both; }

@keyframes lgFrame { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes lgWave  { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: none; } }
@keyframes lgRise  { from { opacity: 0; transform: translateY(40%); } to { opacity: 1; transform: none; } }
@keyframes plFade  { to { opacity: 1; } }

/* Minimal progress under the logo */
.preloader__progress {
  position: absolute;
  top: calc(100% + clamp(28px, 5vh, 48px));
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  animation: plFade 1s var(--ease-out) .8s forwards;
  transition: opacity .5s var(--ease-out);
}
.preloader__bar {
  position: relative;
  width: 120px;
  height: 1px;
  background: rgba(255, 255, 255, .2);
  overflow: hidden;
}
.preloader__bar span {
  position: absolute;
  inset: 0;
  background: #fff;
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.preloader__count {
  min-width: 3.2em;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, .7);
}

/* Exit: the preloader dissolves into the hero */
.preloader.is-complete .preloader__progress,
.preloader.is-complete .preloader__top { opacity: 0; animation: none; }
.preloader.is-leaving .preloader__veil { opacity: 0; }
.preloader.is-leaving .preloader__glow { opacity: 0; }
.preloader.is-leaving .preloader__logo svg { transform: scale(1.12); opacity: 0; filter: blur(10px); }
.preloader.is-leaving { pointer-events: none; }
.preloader.is-gone { display: none; }

/* The hero video sits blurred under the preloader, then comes into focus */
body.is-loading .hero__video { filter: blur(14px) saturate(1.3); }
.hero__waves { transition: opacity 1.2s var(--ease-out) .6s; }
body.is-loading .hero__waves { opacity: 0; }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  color: #fff;
  transition: transform .6s var(--ease-out), color .4s var(--ease-out);
}
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(3, 27, 54, .5);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  opacity: 0;
  transition: opacity .5s var(--ease-out), background-color .5s var(--ease-out), border-color .5s;
}
.header.is-scrolled::before { opacity: 1; }
.header.is-light { color: var(--ink); }
.header.is-light::before { background: rgba(255, 255, 255, .78); border-color: rgba(11, 27, 46, .07); }
.header.is-hidden { transform: translateY(-100%); }

/* entrance after preloader */
.js .header { transform: translateY(-100%); }
body.is-ready .header { transform: none; transition-delay: .2s; }
body.is-ready .header.is-hidden { transform: translateY(-100%); transition-delay: 0s; }

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  transition: height .5s var(--ease-out);
}
.header.is-scrolled .header__inner { height: 72px; }

.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand__mark { width: 58px; height: auto; transition: transform .6s var(--ease-out); }
.brand__mark .lg-t, .brand__mark .lg-p { fill: currentColor; transition: fill .4s; }
.brand__mark .lg-wave { fill: var(--coral); transform-box: fill-box; transform-origin: 0 50%; }
.brand:hover .brand__mark .lg-wave { animation: brandWave 1s var(--ease-out); }
.header.is-light .brand__mark .lg-t, .header.is-light .brand__mark .lg-p { fill: var(--blue); }
@keyframes brandWave { 0% { transform: scaleX(1); } 40% { transform: scaleX(.6) skewX(-12deg); } 100% { transform: none; } }

.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font-size: 1.05rem; font-weight: 600; letter-spacing: -.02em; }
.brand__text small { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; opacity: .7; margin-top: 4px; }

.nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color .4s, border-color .4s;
}
.header.is-scrolled .nav { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav__link {
  position: relative;
  z-index: 1;
  padding: 10px 18px;
  font-size: .9rem;
  font-weight: 500;
  border-radius: 999px;
  opacity: .82;
  transition: opacity .3s, color .35s var(--ease-out);
}
.nav__link:hover, .nav__link.is-active { opacity: 1; }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--coral);
}
.nav__indicator {
  position: absolute;
  top: 6px; bottom: 6px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: #fff;
  opacity: 0;
  transition: transform .5s var(--ease-out), width .5s var(--ease-out), opacity .3s;
}
.nav.has-hover .nav__indicator { opacity: 1; }
.nav__link.is-hovered { color: var(--navy); }
.header.is-light .nav__indicator { background: var(--navy); }
.header.is-light .nav__link.is-hovered { color: #fff; }

.header__actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .28);
  transition: background-color .35s, border-color .35s, color .35s;
}
.icon-btn svg { width: 20px; height: 20px; fill: currentColor; }
.icon-btn:hover { background: #25D366; border-color: #25D366; color: #fff; }
.header.is-light .icon-btn { border-color: rgba(11, 27, 46, .15); }

.burger { display: none; position: relative; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.header.is-light .burger { background: rgba(11, 27, 46, .07); }
.burger span {
  position: absolute;
  left: 14px; right: 14px;
  height: 1.6px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .5s var(--ease-out), top .5s var(--ease-out);
}
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 26px; }
body.menu-open .burger span:nth-child(1) { top: 22.5px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { top: 22.5px; transform: rotate(-45deg); }

/* =========================================================
   MOBILE MENU
   ========================================================= */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  color: #fff;
  background:
    radial-gradient(800px 500px at 100% 0%, rgba(0, 82, 160, .55), transparent 60%),
    var(--navy);
  clip-path: circle(0 at calc(100% - var(--gutter) - 23px) 44px);
  transition: clip-path .9s var(--ease-inout);
  visibility: hidden;
}
body.menu-open .menu { clip-path: circle(150% at calc(100% - var(--gutter) - 23px) 44px); visibility: visible; }
body.menu-open .header { color: #fff; }
body.menu-open .header::before { opacity: 0; }
body.menu-open .header .brand__mark .lg-t, body.menu-open .header .brand__mark .lg-p { fill: #fff; }

.menu__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding-top: calc(var(--header-h) + 6vh);
  padding-bottom: 36px;
}
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  font-size: clamp(2.4rem, 11vw, 4rem);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s var(--ease-out), transform .8s var(--ease-out);
}
.menu__nav small { font-size: .8rem; letter-spacing: .1em; color: var(--coral); font-weight: 500; }
body.menu-open .menu__nav a { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i) * .06s); }
.menu__foot { display: flex; flex-direction: column; gap: 18px; opacity: 0; transition: opacity .6s .5s; }
.menu__foot p { margin: 0; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; opacity: .6; }
body.menu-open .menu__foot { opacity: 1; }
.menu__foot .btn { align-self: flex-start; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  background: var(--navy);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__video {
  position: absolute;
  inset: -4% 0 0;
  width: 100%;
  height: 108%;
  object-fit: cover;
  transform: scale(1.18);
  transition: transform 2.6s var(--ease-out), filter 1.8s var(--ease-out);
  will-change: transform;
}
body.is-ready .hero__video { transform: scale(1) translate3d(0, var(--py, 0px), 0); }
body.is-ready.is-scrolling .hero__video { transition: none; }
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 27, 54, .82) 0%, rgba(3, 27, 54, .45) 45%, rgba(3, 27, 54, .05) 80%),
    linear-gradient(180deg, rgba(3, 27, 54, .55) 0%, transparent 25%, transparent 60%, rgba(3, 27, 54, .75) 100%);
}
.hero__grain {
  position: absolute;
  inset: 0;
  opacity: .08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__inner {
  position: relative;
  padding-top: calc(var(--header-h) + 4vh);
  padding-bottom: 18vh;
  will-change: transform, opacity;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--coral);
  animation: ping 2.2s var(--ease-out) infinite;
}
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }

.hero__title {
  margin: 0;
  font-size: clamp(2.6rem, 5.4vw, 5.6rem);
  font-weight: 600;
  line-height: .92;
  letter-spacing: -.045em;
}
.hero__title-sub { color: #7FD4FF; }
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { display: inline-block; transform: translateY(110%); transition: transform 1.3s var(--ease-out); }
.line:nth-child(2) > span { transition-delay: .1s; }
.line:nth-child(3) > span { transition-delay: .2s; }
body.is-ready .line > span { transform: none; }

.hero__lead {
  max-width: 34rem;
  margin: 30px 0 38px;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, .82);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease-out) var(--d, 0s), transform 1.2s var(--ease-out) var(--d, 0s); }
body.is-ready .reveal { opacity: 1; transform: none; }

/* Glass card */
.hero__card {
  position: absolute;
  right: var(--gutter);
  bottom: calc(6vh + 96px);
  width: 300px;
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45);
}
.hero__card-kicker { margin: 0 0 8px; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: #FFB3B4; font-weight: 500; }
.hero__card-text { margin: 0 0 18px; font-size: 1.2rem; font-weight: 500; line-height: 1.3; letter-spacing: -.015em; }

/* Bottom bar */
.hero__bottom {
  position: absolute;
  left: 0; right: 0;
  bottom: calc(6vh + 24px);
  display: flex;
  align-items: center;
  gap: 32px;
}
.scroll-cue {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .85;
}
.scroll-cue__line { position: relative; width: 1px; height: 44px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.scroll-cue__line::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 40%;
  background: #fff;
  animation: cue 2s var(--ease-inout) infinite;
}
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

.marquee {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-size: .85rem;
  font-weight: 400;
  color: rgba(255, 255, 255, .75);
  white-space: nowrap;
}
.marquee__track span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--coral); }
@keyframes marquee { to { transform: translateX(-50%); } }

.video-toggle {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  transition: background-color .3s, color .3s;
}
.video-toggle:hover { background: #fff; color: var(--navy); }
.video-toggle svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; }
.video-toggle .i-play { fill: currentColor; stroke: none; display: none; }
.video-toggle[aria-pressed="true"] .i-play { display: block; }
.video-toggle[aria-pressed="true"] .i-pause { display: none; }

.hero__waves {
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%;
  height: 6vh;
  min-height: 40px;
}
.hero__waves .w1 { fill: rgba(244, 248, 251, .35); }
.hero__waves .w2 { fill: var(--foam); }

/* =========================================================
   SOBRE NOSOTROS
   ========================================================= */
.about { padding: clamp(90px, 12vw, 170px) 0 clamp(70px, 9vw, 120px); }
.models + .about { padding-top: clamp(40px, 5vw, 70px); }

.about__statement {
  max-width: 1100px;
  margin: 0 0 clamp(70px, 9vw, 130px);
  font-size: clamp(1.8rem, 4vw, 3.6rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.035em;
  color: var(--navy);
}
.about__statement .w { opacity: .16; transition: opacity .35s ease; }
.about__statement .w.is-lit { opacity: 1; }
.no-words .about__statement .w { opacity: 1; }

/* Photo window: a small framed photo that opens to full screen while scrolling.
   --p (0→1) is set by main.js. */
.about__window { --p: 0; position: relative; height: 240vh; margin-bottom: clamp(60px, 8vw, 120px); }
.about__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.about__frame {
  position: absolute;
  inset: 0;
  margin: 0;
  clip-path: inset(
    calc((1 - var(--p)) * 9%) calc((1 - var(--p)) * 15%)
    round calc((1 - var(--p)) * 28px)
  );
}
.about__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(calc(1.08 - var(--p) * .08));
}
.about__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(40px, 8vh, 90px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(3, 27, 54, .55) 0%, rgba(3, 27, 54, 0) 60%),
    linear-gradient(180deg, rgba(3, 27, 54, 0) 30%, rgba(3, 27, 54, .82) 100%);
  /* content fades in during the last third of the opening */
  --o: clamp(0, (var(--p) - .62) * 2.7, 1);
  opacity: var(--o);
  pointer-events: none;
}
.about__overlay .container { transform: translateY(calc((1 - var(--o)) * 40px)); }
.about__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.about__badge svg { width: 18px; height: 18px; fill: none; stroke: #FF8F90; stroke-width: 1.8; }
.about__title {
  max-width: 15ch;
  margin: 0 0 26px;
  font-size: clamp(2.4rem, 5.6vw, 5.8rem);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.05em;
}
.about__text { display: grid; grid-template-columns: repeat(2, minmax(0, 30rem)); gap: 28px; }
.about__text p { margin: 0; font-size: 1.02rem; line-height: 1.65; color: rgba(255, 255, 255, .8); }

/* Reasons as a typographic index */
.index__head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.index__head .kicker { margin: 0; }
.index { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid rgba(11, 27, 46, .12); }
.index__row {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(0, 1.6fr) minmax(0, .85fr) 52px;
  align-items: center;
  gap: 24px;
  padding: clamp(24px, 3vw, 38px) 0;
  border-top: 1px solid rgba(11, 27, 46, .12);
  color: var(--navy);
  isolation: isolate;
  transition: color .45s var(--ease-out);
}
/* navy fill rises from the bottom on hover */
.index__row::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -.5);
  z-index: -1;
  border-radius: 18px;
  background: var(--navy);
  clip-path: inset(100% 0 0 0 round 18px);
  transition: clip-path .6s var(--ease-inout);
}
.index__num { font-size: .8rem; font-weight: 600; letter-spacing: .14em; color: var(--coral); }
.index__title {
  margin: 0;
  font-size: clamp(1.7rem, 3.1vw, 3rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.045em;
  white-space: nowrap;
  transition: transform .6s var(--ease-out);
}
.index__text { margin: 0; max-width: 26rem; font-size: .98rem; line-height: 1.6; color: var(--muted); transition: color .45s; }
.index__arrow {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(11, 27, 46, .15);
  transition: background-color .45s, border-color .45s, transform .6s var(--ease-out);
}
.index__arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@media (hover: hover) {
  .index__row:hover { color: #fff; }
  .index__row:hover::before { clip-path: inset(0 0 0 0 round 18px); }
  .index__row:hover .index__text { color: rgba(255, 255, 255, .7); }
  .index__row:hover .index__arrow { background: var(--coral); border-color: var(--coral); transform: rotate(45deg); }
}

/* Photo capsule that opens inside the title on hover (same idea as the contact headline) */
.index__thumb {
  display: inline-block;
  width: 0;
  height: .82em;
  margin-right: 0;
  vertical-align: -.08em;
  border-radius: 999px;
  overflow: hidden;
  background: #EEF4FA;
  transition: width .7s var(--ease-out), margin-right .7s var(--ease-out);
}
.index__thumb img { width: 100%; height: 100%; object-fit: cover; }
.index__thumb--plan img { object-fit: contain; padding: 4px 8px; }
@media (hover: hover) {
  .index__row:hover .index__thumb { width: 1.9em; margin-right: .22em; }
}

@media (max-width: 900px) {
  .about__window { height: 200vh; }
  .about__frame { clip-path: inset(calc((1 - var(--p)) * 22%) calc((1 - var(--p)) * 8%) round calc((1 - var(--p)) * 24px)); }
  .about__frame img { transform: scale(calc(1.22 - var(--p) * .22)); }
  .about__text { grid-template-columns: 1fr; gap: 14px; }
  .about__text p { font-size: .95rem; }
  .index__row { grid-template-columns: 44px minmax(0, 1fr); gap: 8px 14px; }
  .index__title { white-space: normal; }
  .index__text { grid-column: 2; }
  .index__arrow { display: none; }
  .index__head { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   CÓMO TRABAJAMOS
   ========================================================= */
.process {
  position: relative;
  padding: clamp(150px, 16vw, 220px) 0;
  color: #fff;
  background: var(--navy);
  overflow: hidden;
  isolation: isolate;
}
.process__edge { position: absolute; z-index: 2; left: 0; width: 100%; height: clamp(40px, 6vw, 80px); fill: var(--foam); }
.process__edge--top { top: -1px; }
.process__edge--bottom { bottom: -1px; }
/* Animated wave edges (drawn by main.js): translucent back layer + solid front */
[data-wave] .wave-back { fill: #9ED8FF; opacity: .28; }

/* Moving water behind the content, fading out to the left */
.process__water {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .5;
  -webkit-mask-image: radial-gradient(75% 85% at 85% 35%, #000 20%, transparent 78%);
  mask-image: radial-gradient(75% 85% at 85% 35%, #000 20%, transparent 78%);
}
.process__water video { width: 100%; height: 100%; object-fit: cover; }
.process__water::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 27, 54, .2), rgba(3, 27, 54, .55));
}

.process__head { max-width: 760px; margin-bottom: clamp(60px, 7vw, 96px); }
.kicker--light { color: #FF8F90; }
.process__title {
  margin: 0 0 20px;
  font-size: clamp(2.2rem, 4.6vw, 4.4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.045em;
}
.process__lead { margin: 0; max-width: 32rem; font-size: 1.05rem; line-height: 1.65; color: rgba(255, 255, 255, .7); }

.steps {
  --p: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.steps__line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  overflow: visible;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}
.steps__track { stroke: rgba(255, 255, 255, .14); vector-effect: non-scaling-stroke; }
.steps__progress { stroke: #7FD4FF; vector-effect: non-scaling-stroke; }

.step { position: relative; padding: 56px 32px 0 0; }
.step__dot {
  position: absolute;
  top: 12px;
  left: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid rgba(255, 255, 255, .3);
  transition: background-color .5s var(--ease-out), border-color .5s, box-shadow .5s;
}
.step.is-on .step__dot { background: #7FD4FF; border-color: #7FD4FF; box-shadow: 0 0 0 6px rgba(127, 212, 255, .18); }
.step:first-child .step__dot { left: 0; }
.step__num {
  display: block;
  margin-bottom: 18px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, .45);
  transition: color .5s;
}
.step.is-on .step__num { color: #7FD4FF; }
.step h3 { margin: 0 0 10px; font-size: 1.35rem; font-weight: 600; letter-spacing: -.025em; }
.step p { margin: 0; max-width: 17rem; font-size: .95rem; line-height: 1.6; color: rgba(255, 255, 255, .68); }

.process__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(60px, 7vw, 96px);
  padding: 28px 32px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
}
.process__cta p { margin: 0; font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 500; letter-spacing: -.025em; }
.process__cta .btn::before { background: #fff; }
.process__cta .btn:hover { color: var(--navy); }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 40px; padding-left: 40px; }
  .steps__line { display: none; }
  .steps::before, .steps::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .14);
  }
  .steps::after { background: #7FD4FF; transform-origin: 50% 0; transform: scaleY(var(--p)); }
  .step { padding: 0; }
  .step__dot, .step:first-child .step__dot { top: 2px; left: -40px; z-index: 1; }
  .step__num { margin-bottom: 10px; }
  .step p { max-width: none; }
}
@media (max-width: 640px) {
  .process__cta { padding: 24px; }
  .process__cta .btn { width: 100%; justify-content: center; }
}

/* =========================================================
   MODELOS DE PISCINAS
   ========================================================= */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--coral);
}
.kicker::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }

.btn--outline { color: var(--navy); border: 1px solid rgba(11, 27, 46, .18); }
.btn--outline::before { background: var(--navy); }
.btn--outline:hover { color: #fff; border-color: var(--navy); }

.models { padding: clamp(90px, 12vw, 170px) 0 clamp(60px, 8vw, 110px); }

.models__head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: end;
  gap: 40px;
  margin-bottom: 44px;
}
.models__title {
  margin: 0;
  font-size: clamp(2.2rem, 4.6vw, 4.4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.045em;
  color: var(--navy);
}
.models__lead { margin: 0; max-width: 30rem; font-size: 1.05rem; line-height: 1.65; color: var(--muted); }

.models__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(11, 27, 46, .12);
  background: #fff;
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink);
  transition: background-color .35s var(--ease-out), color .35s, border-color .35s;
}
.chip span { font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; transition: color .35s; }
.chip:hover { border-color: rgba(11, 27, 46, .35); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip.is-active span { color: rgba(255, 255, 255, .6); }

.models__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ---- Card ---- */
.model {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(11, 27, 46, .07);
  overflow: hidden;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.model[hidden] { display: none; }
.model.is-entering { animation: modelIn .8s var(--ease-out) both; animation-delay: calc(var(--k, 0) * 70ms); }
@keyframes modelIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.model:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(3, 27, 54, .35); }

/* Blueprint area */
.model__plan {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 11;
  background-color: #EEF4FA;
  background-image:
    linear-gradient(rgba(0, 82, 160, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 82, 160, .07) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: center;
}
.model__num, .model__tag {
  position: absolute;
  top: 16px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.model__num { left: 18px; color: var(--blue); }
.model__tag {
  top: 12px;
  right: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .85);
  color: var(--navy);
  letter-spacing: .02em;
  text-transform: none;
  font-weight: 500;
}

.model__figure { position: relative; width: 66%; margin: 22px 0 0 18px; }
.model__pool {
  position: relative;
  filter: drop-shadow(0 16px 18px rgba(0, 60, 120, .2));
  transition: transform .8s var(--ease-out);
}
.model__pool img { width: 100%; height: auto; }
/* moving water light, masked to the pool's own shape */
.model__pool::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/hero-poster.jpg") 0 0 / 260% auto;
  mix-blend-mode: overlay;
  opacity: .3;
  -webkit-mask: var(--src) center / 100% 100% no-repeat;
  mask: var(--src) center / 100% 100% no-repeat;
  animation: caustics 22s linear infinite alternate;
  transition: opacity .6s var(--ease-out);
}
@keyframes caustics { from { background-position: 0 0; } to { background-position: 100% 60%; } }
.model:hover .model__pool { transform: scale(1.04); }
.model:hover .model__pool::after { opacity: .75; }

/* Dimension lines (cotas) */
.dim {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 82, 160, .5);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.dim::before, .dim::after { content: ""; position: absolute; border: 0 solid currentColor; }
.dim i { position: relative; z-index: 1; font-style: normal; background: #EEF4FA; padding: 0 6px; white-space: nowrap; }
.dim.is-known { color: var(--blue); font-size: .74rem; font-weight: 600; letter-spacing: .02em; text-transform: none; }

.dim--x { left: 0; right: 0; top: -22px; height: 10px; }
.dim--x::before { inset: 0; border-left-width: 1px; border-right-width: 1px; }          /* end ticks */
.dim--x::after { left: 0; right: 0; top: 50%; border-top-width: 1px; }                  /* line */

.dim--y { top: 0; bottom: 0; left: -22px; width: 10px; }
.dim--y::before { inset: 0; border-top-width: 1px; border-bottom-width: 1px; }
.dim--y::after { top: 0; bottom: 0; left: 50%; border-left-width: 1px; }
.dim--y i { transform: rotate(-90deg); padding: 0 4px; }

/* Body */
.model__body { display: flex; flex-direction: column; gap: 18px; padding: 22px 24px 24px; flex: 1; }
.model__name { margin: 0; font-size: 1.5rem; font-weight: 600; letter-spacing: -.03em; color: var(--navy); }
.model__specs { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid rgba(11, 27, 46, .08); }
.model__specs div { padding-top: 14px; }
.model__specs div + div { padding-left: 14px; border-left: 1px solid rgba(11, 27, 46, .08); }
.model__specs dt { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.model__specs dd { margin: 4px 0 0; font-size: .98rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.model__specs dd.is-pending { font-weight: 400; font-size: .9rem; color: var(--muted); }
.model__pending {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(11, 27, 46, .08);
  font-size: .88rem;
  color: var(--muted);
}

/* Coral by default. Hover: navy fills from the left, the label rolls up and the arrow
   leaves to the right while a new one comes in from the left. */
.model__cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 8px 8px 8px 20px;
  border-radius: 14px;
  background: var(--coral);
  font-size: .92rem;
  font-weight: 500;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 14px 28px -16px rgba(254, 43, 45, .7);
  transition: box-shadow .5s var(--ease-out);
}
.model__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--navy);
  clip-path: inset(0 100% 0 0 round 14px);
  transition: clip-path .6s var(--ease-inout);
}
.model__cta:hover { box-shadow: 0 18px 34px -18px rgba(3, 27, 54, .8); }
.model__cta:hover::before { clip-path: inset(0 0 0 0 round 14px); }

.model__cta-text { display: block; height: 1.3em; line-height: 1.3em; overflow: hidden; }
.model__cta-text > span { position: relative; display: block; transition: transform .55s var(--ease-out); }
.model__cta-text > span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; }
.model__cta:hover .model__cta-text > span { transform: translateY(-100%); }

.model__cta-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .16);
  overflow: hidden;
  transition: background-color .5s var(--ease-out);
}
.model__cta:hover .model__cta-icon { background: var(--coral); }
.model__cta-icon svg {
  grid-area: 1 / 1;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .5s var(--ease-out);
}
.model__cta-icon svg:last-child { transform: translateX(-180%); }
.model__cta:hover .model__cta-icon svg:first-child { transform: translateX(180%); }
.model__cta:hover .model__cta-icon svg:last-child { transform: none; transition-delay: .08s; }


/* Scroll reveal */
.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease-out) var(--d, 0s), transform 1.1s var(--ease-out) var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .models__grid { grid-template-columns: repeat(2, 1fr); }
  .models__head { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 640px) {
  .models__grid { grid-template-columns: 1fr; }
  .models__filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .models__filters::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
}

/* ---- Agrupar por forma / por medida ---- */
.models__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-bottom: clamp(40px, 5vw, 64px); }
.models__bar .models__filters { margin-bottom: 0; }
.seg {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 5px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(11, 27, 46, .1);
  box-shadow: 0 10px 30px -22px rgba(3, 27, 54, .5);
}
.seg__pill {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  border-radius: 999px;
  background: var(--coral);
  transition: transform .6s var(--ease-out);
}
.seg__btn {
  position: relative;
  z-index: 1;
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  background: none;
  font: inherit;
  font-size: .92rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: color .4s var(--ease-out);
}
.seg[data-mode="medida"] .seg__pill { transform: translateX(100%); }
.seg__btn.is-active { color: #fff; }

/* Groups */
.models__groups { overflow-anchor: none; }
.mgroup + .mgroup { margin-top: clamp(56px, 7vw, 96px); }
.mgroup__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 8px 28px;
  margin-bottom: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(11, 27, 46, .12);
}
.mgroup__title { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; color: var(--navy); }
.mgroup__text { margin: 0; max-width: 34rem; font-size: .98rem; line-height: 1.55; color: var(--muted); }
.mgroup__count { font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); white-space: nowrap; }
.mgroup__head.is-entering { animation: modelIn .8s var(--ease-out) both; animation-delay: calc(var(--k, 0) * 70ms); }

/* Plans drawn to a common scale (--w = largo × 8%) */
.model__figure { width: var(--w, 66%); margin: 20px 0 0 16px; }
.model__pool { aspect-ratio: var(--ar, 2); }
.model__pool img { width: 100%; height: 100%; object-fit: fill; }
.model__scale {
  position: absolute;
  left: 18px;
  bottom: 14px;
  width: 8%;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: rgba(0, 82, 160, .6);
  white-space: nowrap;
}
.model__scale i { display: block; height: 6px; margin-bottom: 4px; border: 1px solid currentColor; border-top: 0; }
.model__num { color: var(--blue); }
.models__note { margin: 36px 0 0; font-size: .82rem; color: var(--muted); }

@media (max-width: 760px) {
  .mgroup__head { grid-template-columns: 1fr auto; }
  .mgroup__text { grid-column: 1 / -1; grid-row: 2; }
  .models__bar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .models__bar .models__filters { min-width: 0; }
  .seg { display: grid; width: 100%; }
  .seg__btn { padding: 13px 10px; font-size: .95rem; }
  .model__specs dd { font-size: .86rem; white-space: nowrap; }
  .model__specs div + div { padding-left: 10px; }
  .model__specs dt { font-size: .6rem; letter-spacing: .1em; }
}

/* =========================================================
   OBRAS — galería horizontal
   ========================================================= */
.works { position: relative; padding-top: clamp(20px, 3vw, 40px); }
.works__sticky {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(28px, 4vh, 48px);
  height: 100vh;
  height: 100svh;
  padding-top: calc(var(--header-h) * .7);
  overflow: hidden;
}
.works__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.works__head .kicker { margin-bottom: 18px; }
.works__title {
  margin: 0;
  font-size: clamp(2.2rem, 4.6vw, 4.4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.045em;
  color: var(--navy);
}
.works__meta { display: grid; gap: 22px; max-width: 24rem; }
.works__lead { margin: 0; font-size: 1.02rem; line-height: 1.6; color: var(--muted); }
.works__count { display: flex; align-items: center; gap: 14px; font-size: .8rem; font-weight: 600; letter-spacing: .1em; color: var(--muted); font-variant-numeric: tabular-nums; }
.works__count b { color: var(--navy); font-weight: 600; }
.works__bar { position: relative; flex: 1; height: 2px; background: rgba(11, 27, 46, .12); overflow: hidden; border-radius: 2px; }
.works__bar i { position: absolute; inset: 0; background: var(--coral); transform-origin: left; transform: scaleX(0); }

.works__skip {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 18px;
  border: 1px solid rgba(11, 27, 46, .16); border-radius: 999px;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--navy); text-decoration: none;
  transition: background .3s, color .3s, border-color .3s;
}
.works__skip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
.works__skip:hover, .works__skip:focus-visible { background: var(--navy); border-color: var(--navy); color: #fff; }
.works__skip:hover svg { transform: translateY(3px); }

.works__viewport { --h: min(54vh, 540px); }
.works__track {
  display: flex;
  align-items: flex-end;
  gap: clamp(14px, 1.6vw, 24px);
  width: max-content;
  height: var(--h);
  margin: 0;
  padding: 0 max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  list-style: none;
  will-change: transform;
}
.work { flex: none; height: 100%; }
.work--sm { height: 72%; align-self: flex-start; }
.work__btn {
  position: relative;
  display: block;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #DCE7F1;
  cursor: zoom-in;
}
.work__btn img { display: block; width: auto; height: 100%; transition: transform 1.1s var(--ease-out); }
.work__btn::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23031B36' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 20px no-repeat;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .4s var(--ease-out), transform .5s var(--ease-out);
}
@media (hover: hover) {
  .work__btn:hover img { transform: scale(1.05); }
  .work__btn:hover::after { opacity: 1; transform: none; }
}
.work__btn:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }

.work--end { display: flex; align-items: stretch; }
.work__cta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: min(360px, 70vw);
  padding: 32px;
  border-radius: 22px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  transition: background-color .5s var(--ease-out);
}
.work__cta span { font-size: clamp(1.8rem, 2.6vw, 2.6rem); font-weight: 600; line-height: 1.02; letter-spacing: -.04em; }
.work__cta small { display: block; max-width: 15rem; margin-top: 18px; font-size: .98rem; font-weight: 400; line-height: 1.5; letter-spacing: 0; color: rgba(255, 255, 255, .65); }
.work__cta i { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--coral); transition: transform .6s var(--ease-out); }
.work__cta svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.work__cta:hover { background: var(--blue); }
.work__cta:hover i { transform: rotate(45deg) scale(1.06); }

/* Not pinned: phones, tablets and reduced motion → native swipe */
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .works { padding: clamp(60px, 10vw, 100px) 0; }
  .works__sticky { position: static; height: auto; padding-top: 0; overflow: visible; }
  .works__viewport {
    --h: clamp(260px, 62vw, 440px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .works__viewport::-webkit-scrollbar { display: none; }
  .work { scroll-snap-align: start; }
}
@media (max-width: 900px) {
  .works__head { flex-direction: column; align-items: flex-start; gap: 22px; }
  .works__meta { max-width: none; width: 100%; }
  .works__skip { display: none; }
  .work--sm { height: 100%; align-self: auto; }
  .work__btn, .work__cta { border-radius: 18px; }
  .work__btn::after { opacity: 1; transform: none; width: 38px; height: 38px; right: 12px; bottom: 12px; }
}

/* Lightbox */
html.lb-open { overflow: hidden; }
.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(3, 27, 54, .97);
  color: #fff;
}
.lightbox[open] { display: grid; place-items: center; animation: lbIn .45s var(--ease-out); }
.lightbox::backdrop { background: transparent; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox img { max-width: min(92vw, 1500px); max-height: 84vh; border-radius: 14px; object-fit: contain; animation: lbImg .6s var(--ease-out); }
@keyframes lbImg { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color .35s, border-color .35s;
}
.lightbox__btn:hover { background: var(--coral); border-color: var(--coral); }
.lightbox__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__close { top: 22px; right: 22px; }
.lightbox__prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font-size: .8rem; font-weight: 600; letter-spacing: .12em; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 14px; transform: none; width: 46px; height: 46px; }
  .lightbox__close { top: 14px; right: 14px; }
}

/* =========================================================
   CONTACTO — CTA final
   ========================================================= */
.contact { padding: clamp(90px, 12vw, 170px) 0 clamp(80px, 10vw, 140px); overflow: hidden; }

.contact__title {
  margin: 0 0 clamp(40px, 5vw, 70px);
  font-size: clamp(2.6rem, 8.4vw, 9rem);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.055em;
  color: var(--navy);
}
.contact__line { display: block; }
.contact__accent { color: var(--blue); white-space: nowrap; }

/* video capsule inside the headline */
.contact__pill {
  display: inline-block;
  width: 0;
  height: .78em;
  margin-right: .04em;
  vertical-align: -.06em;
  border-radius: 999px;
  overflow: hidden;
  background: var(--blue) url("../img/hero-poster.jpg") center / cover;
  transition: width 1.4s var(--ease-out) .35s;
}
.contact__title.is-in .contact__pill { width: 1.9em; }
.contact__pill video { width: 100%; height: 100%; object-fit: cover; }

.contact__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(28px, 4vw, 48px) 0;
  border-top: 1px solid rgba(11, 27, 46, .12);
}
.contact__lead { margin: 0; max-width: 32rem; font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.55; color: var(--muted); }

/* big round CTA */
.orb {
  position: relative;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  width: clamp(150px, 14vw, 200px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 30px 60px -24px rgba(254, 43, 45, .55);
}
.orb::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: var(--navy);
  transform: scale(0);
  transition: transform .6s var(--ease-out);
}
.orb:hover::before { transform: scale(1.02); }
.orb__label { font-size: 1.05rem; font-weight: 500; letter-spacing: -.01em; }
.orb svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease-out); }
.orb:hover svg { transform: translate(3px, -3px); }

.contact__cards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
}
.ccard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 28px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(11, 27, 46, .07);
  transition: background-color .45s var(--ease-out), color .45s, transform .5s var(--ease-out);
}
.ccard__label { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--coral); }
.ccard__value { overflow-wrap: anywhere; font-size: 1.25rem; font-weight: 600; letter-spacing: -.025em; color: var(--navy); transition: color .45s; }
.ccard__arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .5s var(--ease-out), stroke .45s;
}
.ccard:hover { background: var(--navy); transform: translateY(-4px); }
.ccard:hover .ccard__value { color: #fff; }
.ccard:hover .ccard__arrow { stroke: #fff; transform: translate(3px, -3px); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  position: relative;
  padding: clamp(110px, 12vw, 160px) 0 28px;
  color: #fff;
  background: var(--navy);
  overflow: hidden;
}
.footer__edge { position: absolute; top: -1px; left: 0; width: 100%; height: clamp(40px, 6vw, 80px); fill: var(--foam); }
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.footer__logo { width: 92px; height: auto; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.footer__nav a { font-size: .95rem; color: rgba(255, 255, 255, .7); transition: color .3s; }
.footer__nav a:hover { color: #fff; }
.to-top {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  transition: background-color .35s, color .35s, border-color .35s;
}
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.to-top:hover { background: #fff; color: var(--navy); border-color: #fff; }

.footer__giant {
  margin: clamp(50px, 7vw, 100px) 0 clamp(24px, 3vw, 40px);
  font-size: clamp(3rem, 11.6vw, 13rem);
  font-weight: 700;
  line-height: .8;
  letter-spacing: -.06em;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .12));
  -webkit-background-clip: text;
  background-clip: text;
}

.footer__credit { color: rgba(255, 255, 255, .8); border-bottom: 1px solid rgba(255, 255, 255, .25); transition: color .3s, border-color .3s; }
.footer__credit:hover { color: #fff; border-color: var(--coral); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .82rem;
  color: rgba(255, 255, 255, .5);
}

@media (max-width: 900px) {
  .contact__row { flex-direction: column; align-items: flex-start; }
  .contact__cards { grid-template-columns: 1fr; }
  .orb { width: 132px; }
  .footer__top { flex-wrap: wrap; }
  .footer__nav { order: 3; width: 100%; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1359px) {
  .hero__card { display: none; }
}
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: block; }
}
@media (max-width: 640px) {
  :root { --header-h: 76px; }
  .header.is-scrolled .header__inner { height: 64px; }
  .header__actions .btn, .header__actions .icon-btn { display: none; }
  .brand__mark { width: 50px; }
  .brand__text strong { font-size: .98rem; }
  .hero { justify-content: flex-end; }
  .hero__inner { padding-bottom: calc(6vh + 120px); }
  .hero__shade {
    background: linear-gradient(180deg, rgba(3, 27, 54, .55) 0%, rgba(3, 27, 54, .25) 35%, rgba(3, 27, 54, .85) 100%);
  }
  .hero__ctas .btn { flex: 1 1 100%; justify-content: center; }
  .marquee { display: none; }
  .hero__bottom { justify-content: space-between; }
  .preloader__top { flex-direction: column; align-items: center; gap: 8px; }
  .preloader__logo svg { width: 62vw; }
}

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