/* LAFQUEN Valle Medio — agua, piedra y la luz de un día de verano. */
@font-face { font-family: "Bricolage"; src: url("assets/fonts/bricolage-grotesque.woff") format("woff"); font-weight: 300 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("assets/fonts/figtree.woff") format("woff"); font-weight: 300 900; font-display: swap; }

:root {
  --manana: #f3f7f6;      /* fondo: cielo lavado de la mañana */
  --piedra: #e4ded3;      /* borde y solado */
  --piedra-2: #d6cec0;
  --agua: #1a8fa3;
  --agua-clara: #8ed8df;
  --hondo: #0c2a36;       /* texto y noche */
  --hondo-2: #4a6470;     /* texto secundario */
  --lafquen: #ef4601;     /* naranja del logo */
  --accion: #d64000;      /* naranja para botones con texto blanco (contraste 4.6:1) */
  --line: rgba(12, 42, 54, .14);
  --display: "Bricolage", "Figtree", system-ui, sans-serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--manana); color: var(--hondo); font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lafquen); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--hondo); color: #fff; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* Tipografía */
.h2 { margin: 0; font: 650 clamp(38px, 5.4vw, 76px)/.96 var(--display); font-stretch: 82%; letter-spacing: -.025em; text-wrap: balance; }
.h3 { margin: 0 0 12px; font: 650 clamp(26px, 3vw, 36px)/1.05 var(--display); font-stretch: 88%; letter-spacing: -.02em; }
.fine { margin: 14px 0 0; color: var(--hondo-2); font-size: 13px; line-height: 1.5; }

svg .sel, svg .st, svg .rim { fill: none; }
.pick-option .sel, .note-shape .sel { display: none; }

/* Botones y enlaces: sin flechas, con un subrayado de agua */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .16s var(--ease); }
.btn:active { transform: scale(.97); }
.btn-solid { background: var(--accion); color: #fff; }
.btn-quiet { border-color: rgba(12, 42, 54, .22); color: var(--hondo); background: transparent; }
.btn-block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn-solid:hover { background: #b83700; }
  .btn-quiet:hover { border-color: var(--hondo); background: rgba(12, 42, 54, .04); }
}
.link { position: relative; display: inline-block; padding: 6px 0; font-weight: 600; text-decoration: none; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--agua); transform-origin: left; transition: transform .45s var(--ease); }
@media (hover: hover) and (pointer: fine) { .link:hover::after { transform: scaleX(.35); } }
.link-light::after { background: var(--agua-clara); }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 28px; height: 96px; padding-inline: var(--gutter); background: var(--manana); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.is-scrolled { border-color: var(--line); }
.brand { display: block; flex: none; }
.brand img { width: auto; height: 68px; }
.nav { display: flex; gap: 30px; margin-inline: auto; }
.nav a { position: relative; padding: 8px 0; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--hondo-2); transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--lafquen); opacity: 0; transform: scale(.4); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.nav a:hover, .nav a[aria-current="true"] { color: var(--hondo); }
.nav a[aria-current="true"]::after { opacity: 1; transform: none; }
.header-cta { min-height: 44px; padding: 0 22px; }
.menu-toggle { display: none; align-items: center; gap: 10px; height: 44px; margin-left: auto; padding: 0 18px 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--hondo); font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: 0 6px 18px -12px rgba(12, 42, 54, .5); }
.menu-lines { display: grid; gap: 4px; }
.menu-lines span { display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--hondo); }
.menu-lines span + span { width: 11px; }

/* Portada: una banda ancha y baja, con la foto de fondo y la historia de LAFQUEN rotando */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: clamp(500px, 66svh, 580px); color: #fff; background: var(--hondo); }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transform: scale(1.04); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(6, 26, 36, .86) 0%, rgba(6, 26, 36, .66) 38%, rgba(6, 26, 36, .28) 72%, rgba(6, 26, 36, .38) 100%), linear-gradient(0deg, rgba(6, 26, 36, .55), rgba(6, 26, 36, 0) 40%); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(28px, 5vw, 80px); align-items: center; width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding: clamp(40px, 6vh, 64px) var(--gutter); }
.hero-title { margin: 0; font: 720 clamp(60px, 7.6vw, 118px)/.86 var(--display); font-stretch: 75%; letter-spacing: -.035em; color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: block; }
.hero-lead { max-width: 32ch; color: rgba(255, 255, 255, .86); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn-glass { border-color: rgba(255, 255, 255, .5); color: #fff; background: rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@media (hover: hover) and (pointer: fine) { .btn-glass:hover { background: rgba(255, 255, 255, .18); border-color: #fff; } }
.hero-where { color: rgba(255, 255, 255, .62); font-size: 13.5px; letter-spacing: .02em; }

/* Textos que rotan en el lugar del título: portada → Quiénes somos */
.slides { display: grid; min-height: clamp(250px, 26vw, 300px); align-items: end; }
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(18px); filter: blur(6px); transition: opacity .55s var(--ease), transform .7s var(--ease), filter .55s var(--ease), visibility 0s .55s; }
.slide.is-on { opacity: 1; visibility: visible; transform: none; filter: none; transition: opacity .8s .15s var(--ease), transform 1s .15s var(--ease), filter .8s .15s var(--ease); }
.slide p { margin: 0; }
.slide .hero-lead { margin-top: 22px; }
.slide-eyebrow { margin-bottom: 16px !important; color: #ffb48a; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.slide-lema { max-width: 16ch; font: 700 clamp(44px, 4.8vw, 72px)/.92 var(--display); font-stretch: 78%; letter-spacing: -.03em; text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.slide-num { color: rgba(255, 255, 255, .78); font-size: 17px; }
.slide-num strong { margin-right: 8px; color: var(--agua-clara); font: 720 clamp(72px, 7vw, 108px)/.82 var(--display); font-stretch: 75%; letter-spacing: -.04em; }
.slide-text { max-width: 22ch; margin-top: 12px !important; font: 650 clamp(24px, 2.3vw, 34px)/1.08 var(--display); font-stretch: 85%; letter-spacing: -.01em; text-wrap: balance; }
.slide-small { max-width: 44ch; margin-top: 10px !important; color: rgba(255, 255, 255, .78); font-size: 15px; line-height: 1.5; }
.slide-quote { max-width: 26ch; font: 600 clamp(26px, 2.5vw, 36px)/1.14 var(--display); font-stretch: 86%; letter-spacing: -.01em; text-wrap: pretty; }
.hero-foot { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.slide-bars { display: flex; gap: 5px; width: 150px; }
.slide-bars span { position: relative; flex: 1; height: 3px; overflow: hidden; border-radius: 3px; background: rgba(255, 255, 255, .25); }
.slide-bars span::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(var(--fill, 0)); transform-origin: left; }
.slide-pause { position: relative; flex: none; width: 28px; height: 28px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; background: transparent; cursor: pointer; }
.slide-pause span { position: absolute; top: 8px; width: 2px; height: 10px; border-radius: 1px; background: #fff; }
.slide-pause span:first-child { left: 10px; } .slide-pause span:last-child { left: 14px; }
.slide-pause[aria-pressed="true"] span:first-child { left: 10px; top: 7px; width: 0; height: 0; border-radius: 0; background: none; border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.slide-pause[aria-pressed="true"] span:last-child { display: none; }
.hero-foot .hero-where { margin: 0 0 0 auto; }

/* Una sola foto grande a la derecha: cada foto nueva entra por encima de la anterior */
.hero-photos { position: relative; justify-self: end; width: min(100%, 560px); aspect-ratio: 5 / 4; margin: 0; overflow: hidden; border: clamp(8px, 1vw, 14px) solid rgba(228, 222, 211, .92); border-radius: clamp(80px, 9vw, 150px) 26px 26px 26px; background: #0b2230; box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .65); }
.hero-photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; z-index: 0; }
.hero-photos img.was-on { opacity: 1; z-index: 1; }
.hero-photos img.is-on { opacity: 1; z-index: 2; animation: photo-in 1.15s var(--ease-io) both; }
@keyframes photo-in { from { clip-path: inset(0 0 0 100%); transform: scale(1.1); } to { clip-path: inset(0 0 0 0); transform: scale(1); } }

/* Entrada orquestada: una sola vez, al cargar */
.is-ready .hero-title .line > span { transform: none; transition: transform 1.1s var(--ease); }
.is-ready .hero-title .line:nth-child(2) > span { transition-delay: .08s; }
.is-ready .hero-lead, .is-ready .hero-actions, .is-ready .hero-foot, .is-ready .hero-photos { opacity: 1; transform: none; transition: opacity .9s .45s var(--ease), transform 1.1s .45s var(--ease); }
.is-ready .hero-bg { transform: scale(1); transition: transform 2.6s var(--ease); }

/* Modelos a escala */
.models { padding: clamp(72px, 10vw, 140px) 0 clamp(60px, 8vw, 110px); background: linear-gradient(var(--manana), #eef3f2); }
.models-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 32px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.models-head p { max-width: 38ch; margin: 0; color: var(--hondo-2); }
.board { --m: 40px; position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--m); min-height: 220px; padding: calc(var(--m) * .9); border-radius: 22px; background-color: var(--piedra);
  background-image: linear-gradient(rgba(12, 42, 54, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(12, 42, 54, .07) 1px, transparent 1px);
  background-size: var(--m) var(--m); background-position: calc(var(--m) * .9) calc(var(--m) * .9); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -2px 0 var(--piedra-2); }
.pool-pick { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; -webkit-tap-highlight-color: transparent; }
.pool-pick svg { display: block; overflow: visible; transition: width .7s var(--ease), height .7s var(--ease); }
.pool-pick .w { fill: url(#water-grad); transition: opacity .3s; }
.pool-pick .rim { fill: none; stroke: #fbf9f5; stroke-width: 3.5; vector-effect: non-scaling-stroke; }
.pool-pick .sel { fill: none; stroke: var(--lafquen); stroke-width: 2.5; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .35s var(--ease); }
.pool-pick .st { fill: none; stroke: rgba(255, 255, 255, .7); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.pool-pick .label { display: grid; gap: 1px; line-height: 1.25; }
.pool-pick .label b { font: 650 18px/1.1 var(--display); font-stretch: 88%; }
.pool-pick .label i { font-style: normal; color: var(--hondo-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.pool-pick[aria-checked="false"] .w { opacity: .62; }
.pool-pick[aria-checked="true"] .sel { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .pool-pick:hover .w { opacity: 1; } }
.board-scale { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; color: var(--hondo-2); font-size: 13px; }
.scale-bar { display: inline-block; width: var(--m, 40px); height: 8px; border: 1.5px solid var(--hondo-2); border-top: 0; }

.model { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; margin-top: clamp(40px, 6vw, 72px); }
.model-photo { margin: 0; }
.model-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; background: var(--piedra); }
.model-photo figcaption { margin-top: 10px; color: var(--hondo-2); font-size: 12.5px; }
.model-tagline { margin: 0 0 6px; color: var(--accion); font-weight: 600; }
.model-name { margin: 0; font: 700 clamp(56px, 7.5vw, 112px)/.9 var(--display); font-stretch: 75%; letter-spacing: -.035em; }
.model-features { max-width: 40ch; margin: 18px 0 0; color: var(--hondo-2); }
.variant { margin-top: 24px; }
.variant-label { margin: 0 0 10px; font-size: 14px; font-weight: 600; }
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 14px; border: 1px solid rgba(12, 42, 54, .2); border-radius: 999px; background: transparent; font-size: 14px; font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color .25s var(--ease), color .25s, border-color .25s; }
.chip[aria-checked="true"] { background: var(--hondo); border-color: var(--hondo); color: #fff; }
@media (hover: hover) and (pointer: fine) { .chip[aria-checked="false"]:hover { border-color: var(--hondo); } }
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.specs div { padding: 16px 16px 0 0; }
.specs div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.specs dt { color: var(--hondo-2); font-size: 13px; }
.specs dd { margin: 4px 0 0; font: 600 clamp(19px, 1.9vw, 24px)/1.15 var(--display); font-stretch: 90%; font-variant-numeric: tabular-nums; }
.model-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 30px; }

.beach { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 60px); align-items: center; margin-top: clamp(70px, 9vw, 120px); }
.beach img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px 20px 20px 90px; }
.beach p { max-width: 44ch; margin: 0 0 18px; color: var(--hondo-2); }

/* Día y noche: todos los colores salen de variables que el script mezcla suavemente */
.day { --sky-a: #9fd3ea; --sky-b: #eaf6f8; --deck: #e9e2d6; --deck-b: #d9d0c2; --ink: #0c2a36; --ink-2: #3f5965; --tint: rgba(255, 170, 90, 0); --stars: 0; --lamps: 0; --sun-x: 20%; --sun-y: 30%; --sun-o: 1; --moon-o: 0; --shadow: rgba(12, 42, 54, .3); --dusk: 0; --night: 0; --golden: 0; --kb: 1.07;
  position: relative; height: 300vh; color: var(--ink); }
.day-stage { position: sticky; top: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr auto; height: 100vh; height: 100svh; overflow: hidden; padding: clamp(110px, 13vh, 130px) var(--gutter) clamp(22px, 4vh, 40px); }
.sky { position: absolute; inset: 0; background: linear-gradient(180deg, var(--sky-a), var(--sky-b) 78%); }
.sky::after { content: ""; position: absolute; inset: 0; background: var(--tint); mix-blend-mode: multiply; }
.stars { position: absolute; inset: 0 0 35% 0; opacity: var(--stars);
  background-image: radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, transparent), radial-gradient(1px 1px at 28% 8%, #fff 50%, transparent), radial-gradient(1.4px 1.4px at 44% 26%, #fff 50%, transparent), radial-gradient(1px 1px at 61% 12%, #fff 50%, transparent), radial-gradient(1.3px 1.3px at 77% 22%, #fff 50%, transparent), radial-gradient(1px 1px at 89% 9%, #fff 50%, transparent), radial-gradient(1px 1px at 8% 40%, #fff 50%, transparent), radial-gradient(1.2px 1.2px at 52% 44%, #fff 50%, transparent), radial-gradient(1px 1px at 70% 38%, #fff 50%, transparent), radial-gradient(1px 1px at 35% 52%, #fff 50%, transparent), radial-gradient(1.2px 1.2px at 94% 46%, #fff 50%, transparent), radial-gradient(1px 1px at 19% 63%, #fff 50%, transparent); }
.sun, .moon { position: absolute; left: var(--sun-x); top: var(--sun-y); width: clamp(70px, 9vw, 130px); aspect-ratio: 1; margin: -65px 0 0 -65px; border-radius: 50%; }
.sun { opacity: var(--sun-o); background: radial-gradient(circle, #fff9e8 0 34%, rgba(255, 228, 160, .55) 36%, rgba(255, 210, 140, 0) 70%); }
.moon { left: 56%; top: 14%; width: clamp(40px, 4vw, 58px); margin: 0; opacity: var(--moon-o); background: radial-gradient(circle at 38% 38%, #fbf6e8, #d9d4c5 70%); box-shadow: 0 0 40px 8px rgba(220, 230, 255, .25); }
.day-copy { position: relative; z-index: 2; grid-column: 1; grid-row: 1; max-width: 520px; }
@media (min-width: 761px) {
  .day-stage { grid-template-columns: minmax(0, .72fr) minmax(0, 1.5fr); column-gap: clamp(28px, 4vw, 64px); }
  .day .clock { grid-column: 1; grid-row: 2; justify-self: start; align-self: end; margin-bottom: 18px; font-size: clamp(64px, 8vw, 132px); }
  .day .scene { grid-column: 2; grid-row: 1 / 3; padding-bottom: 18px; }
}
.day-copy p { max-width: 36ch; margin: 16px 0 0; color: var(--ink-2); }
.clock { position: relative; z-index: 2; grid-column: 2; grid-row: 1; justify-self: end; align-self: start; margin: 0; font: 700 clamp(64px, 11vw, 168px)/.8 var(--display); font-stretch: 75%; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--ink); opacity: .9; }
.scene { position: relative; z-index: 1; filter: drop-shadow(0 34px 34px var(--shadow)); grid-column: 1 / -1; grid-row: 2; display: grid; place-items: center; perspective: 1400px; min-height: 0; }
.deck { position: relative; width: min(78vw, 980px); aspect-ratio: 2.3; display: grid; place-items: center; border-radius: 36px; transform: rotateX(54deg) rotateZ(-7deg) translateY(4%); transform-style: preserve-3d;
  background-color: var(--deck); background-image: linear-gradient(90deg, var(--deck-b) 1.5px, transparent 1.5px), linear-gradient(var(--deck-b) 1.5px, transparent 1.5px); background-size: 9% 21%; }
.pool-wrap { --ratio: 2.33; position: relative; height: 58%; aspect-ratio: var(--ratio); max-width: 86%; transition: aspect-ratio .9s var(--ease); }
.pool { position: absolute; inset: 0; clip-path: url(#pool-clip); }
.pool canvas { display: block; width: 100%; height: 100%; }
.pool-edge { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.pool-edge path { fill: none; stroke: #f6f2ea; stroke-width: 9; vector-effect: non-scaling-stroke; }
.lamp { position: absolute; top: 46%; width: 34%; aspect-ratio: 1; margin-top: -17%; border-radius: 50%; opacity: var(--lamps); background: radial-gradient(circle, rgba(170, 250, 255, .95), rgba(70, 220, 255, .35) 35%, rgba(40, 190, 255, 0) 70%); mix-blend-mode: screen; pointer-events: none; }
.lamp-a { left: 4%; } .lamp-b { right: 4%; }
.garden-light { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #ffe7b0; opacity: var(--lamps); box-shadow: 0 0 22px 10px rgba(255, 214, 140, .5); }
.g1 { left: 6%; top: 12%; } .g2 { right: 7%; top: 14%; } .g3 { right: 9%; bottom: 12%; }
.day-bottom { position: relative; z-index: 2; grid-column: 1 / -1; grid-row: 3; display: grid; grid-template-columns: auto 1fr; gap: 14px 28px; align-items: center; }
.day-model { margin: 0; color: var(--ink-2); font-size: 15px; }
.day-model strong { color: var(--ink); font-weight: 650; margin-right: 6px; }
.moments { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.moments button { min-height: 40px; padding: 0 16px; border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); border-radius: 999px; background: transparent; color: var(--ink); font-size: 14px; cursor: pointer; transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s; }
.moments button[aria-pressed="true"] { background: var(--ink); color: var(--sky-b); border-color: var(--ink); }
.time-range { grid-column: 1 / -1; }
.time-range input { width: 100%; height: 26px; margin: 0; background: transparent; accent-color: var(--lafquen); cursor: pointer; -webkit-appearance: none; appearance: none; }
.time-range input::-webkit-slider-runnable-track { height: 2px; background: color-mix(in srgb, var(--ink) 30%, transparent); border-radius: 2px; }
.time-range input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -8px; border-radius: 50%; background: var(--lafquen); border: 3px solid var(--sky-b); }
.time-range input::-moz-range-track { height: 2px; background: color-mix(in srgb, var(--ink) 30%, transparent); }
.time-range input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--lafquen); border: 3px solid var(--sky-b); }
.day-note { grid-column: 1 / -1; margin: 0; color: var(--ink-2); font-size: 12.5px; }

/* Obras */
.works { padding: clamp(80px, 10vw, 140px) 0; }
.works-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 32px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.works-head p { max-width: 36ch; margin: 0; color: var(--hondo-2); }
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 13vw, 180px); grid-auto-flow: dense; gap: clamp(10px, 1.2vw, 16px); }
.tile { position: relative; grid-column: span 4; grid-row: span 2; overflow: hidden; padding: 0; border: 0; border-radius: 18px; background: var(--piedra); cursor: zoom-in; text-align: left; }
.tile.t-wide { grid-column: span 8; }
.tile.t-tall { grid-row: span 4; }
.tile.t-half { grid-column: span 6; }
.tile.low img { object-position: 50% 88%; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; color: #fff; font-size: 14px; font-weight: 500; background: linear-gradient(transparent, rgba(8, 28, 36, .62)); opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .tile:hover img { transform: scale(1.035); }
  .tile:hover span, .tile:focus-visible span { opacity: 1; transform: none; }
}
@media (hover: none) { .tile span { opacity: 1; transform: none; } }

/* Obra de día, al atardecer y de noche: tres fotos alineadas que se funden con el scroll */
.scene { container-type: size; }
.dn-sets { position: relative; display: grid; place-items: center; width: 100%; height: 100%; }
.dn-set { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility 0s .7s; }
.dn-set.is-active { opacity: 1; visibility: visible; transition: opacity .7s var(--ease); }
.dn-frame { position: relative; overflow: hidden; width: min(100cqw, 132cqh, 1040px); aspect-ratio: 883 / 656; border: clamp(8px, 1vw, 14px) solid color-mix(in srgb, var(--piedra) calc(100% - var(--night) * 55%), #23313a); border-radius: clamp(60px, 9vw, 140px) 24px 24px 24px; background: #0b2230; box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 40px 70px -40px var(--shadow); }
.dn-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--kb)); transform-origin: 46% 62%; will-change: opacity, transform; }
.dn-dusk { opacity: var(--dusk); }
.dn-night { opacity: var(--night); filter: saturate(calc(.85 + var(--night) * .15)); }
/* Luz de la tarde: un rayo cálido que entra por la izquierda y se va con el sol */
.dn-light { position: absolute; inset: -10%; pointer-events: none; opacity: var(--golden); mix-blend-mode: soft-light;
  background: radial-gradient(120% 90% at 0% 18%, rgba(255, 190, 110, .95), rgba(255, 140, 70, .45) 38%, rgba(255, 120, 60, 0) 70%); }
.dn-light::after { content: ""; position: absolute; inset: 0; mix-blend-mode: screen; opacity: .55;
  background: linear-gradient(115deg, rgba(255, 214, 150, .55) 0%, rgba(255, 190, 120, 0) 34%); }
.day-model p { margin: 0; }
.day-model:not(:has(.dn-tabs:not([hidden]))) { min-height: 0; }
.dn-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dn-tabs[hidden] { display: none; }
.dn-tabs button { min-height: 34px; padding: 0 14px; border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); border-radius: 999px; background: transparent; color: var(--ink); font-size: 13px; cursor: pointer; }
.dn-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--sky-b); }
.day .sun, .day .moon { display: none; }

/* Preguntas como chat */
.ask { padding: clamp(80px, 10vw, 140px) 0; background: var(--hondo); color: #eaf4f4; }
.ask-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.ask-head p { max-width: 34ch; margin: 18px 0 22px; color: #a9c3c7; }
.chat { overflow: hidden; border-radius: 26px; background: #103644; box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .6); }
.chat-top { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #0e313e; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.chat-top img { width: 40px; height: 40px; object-fit: contain; border-radius: 50%; background: #fff; padding: 2px; }
.chat-top div { display: grid; line-height: 1.2; }
.chat-top span { color: #8fb1b6; font-size: 13px; }
.thread { display: flex; flex-direction: column; gap: 10px; max-height: 470px; min-height: 300px; overflow-y: auto; margin: 0; padding: 22px 18px; list-style: none; scroll-behavior: smooth;
  background-image: radial-gradient(rgba(142, 216, 223, .06) 1px, transparent 1px); background-size: 18px 18px; }
.qa { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 82%; margin: 0; padding: 10px 14px; border-radius: 18px; font-size: 15.5px; line-height: 1.5; }
.from-them { align-self: flex-start; background: #1c4b5a; border-bottom-left-radius: 6px; }
.from-you { align-self: flex-end; background: var(--agua-clara); color: var(--hondo); border-bottom-right-radius: 6px; }
.typing { display: inline-flex; gap: 4px; align-self: flex-start; padding: 14px; border-radius: 18px 18px 18px 6px; background: #1c4b5a; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9cc3c8; animation: dot 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.msg.enter { animation: msg-in .45s var(--ease) both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.suggestions { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px 18px; border-top: 1px solid rgba(255, 255, 255, .06); }
.suggestions:empty { display: none; }
.suggestions button { min-height: 40px; padding: 8px 14px; border: 1px solid rgba(142, 216, 223, .4); border-radius: 999px; background: transparent; color: #dff1f2; font-size: 14px; text-align: left; cursor: pointer; transition: background-color .25s, border-color .25s; }
@media (hover: hover) and (pointer: fine) { .suggestions button:hover { background: rgba(142, 216, 223, .12); border-color: var(--agua-clara); } }

/* Consulta */
.quote { padding: clamp(80px, 10vw, 140px) 0; }
.quote-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 90px); align-items: start; }
.quote-lead { max-width: 40ch; margin: 18px 0 0; color: var(--hondo-2); }
.steps { margin-top: 40px; }
.step { margin: 0; padding: 26px 0; border: 0; border-top: 1px solid var(--line); min-width: 0; }
.step legend { display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 18px; font: 650 22px/1.2 var(--display); font-stretch: 88%; }
.step .n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--hondo); color: #fff; font: 600 14px/1 var(--text); }
.pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pick-option { display: grid; gap: 10px; justify-items: start; align-content: start; min-height: 100%; padding: 14px; border: 1px solid rgba(12, 42, 54, .16); border-radius: 16px; background: #fff; cursor: pointer; text-align: left; transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.pick-option svg { height: 34px; width: auto; max-width: 100%; overflow: visible; }
.pick-option .w { fill: var(--agua); opacity: .55; transition: opacity .25s; }
.pick-option .rim { fill: none; stroke: var(--agua); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.pick-option b { font-weight: 600; font-size: 15px; line-height: 1.2; }
.pick-option small { color: var(--hondo-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.pick-option[aria-checked="true"] { border-color: var(--hondo); box-shadow: inset 0 0 0 1px var(--hondo); }
.pick-option[aria-checked="true"] .w { opacity: 1; }
.pick-option.undecided { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; min-height: 0; padding: 12px 14px; }
.pick-size { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.pick-size .only { grid-column: 1 / -1; margin: 0; color: var(--hondo-2); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fields label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.fields .wide { grid-column: 1 / -1; }
.fields .opt { color: var(--hondo-2); font-weight: 400; }
.fields input, .fields textarea { width: 100%; padding: 13px 15px; border: 1px solid rgba(12, 42, 54, .2); border-radius: 12px; background: #fff; font-weight: 400; font-size: 16px; transition: border-color .2s; }
.fields textarea { resize: vertical; min-height: 96px; }
.fields input:focus, .fields textarea:focus { border-color: var(--agua); outline: none; box-shadow: 0 0 0 3px rgba(26, 143, 163, .18); }
.fields [aria-invalid="true"] { border-color: var(--accion); }
.note { position: sticky; top: 116px; display: grid; gap: 18px; }
.note-card { padding: 24px; border-radius: 24px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 30px 60px -40px rgba(12, 42, 54, .35); }
.note-title { margin: 0 0 14px; font: 650 20px/1.2 var(--display); font-stretch: 88%; }
.note-shape { height: 64px; margin-bottom: 14px; border-radius: 12px; background: var(--piedra); display: grid; place-items: center; }
.note-shape svg { height: 40px; width: auto; max-width: 80%; overflow: visible; }
.note-shape .w { fill: var(--agua); } .note-shape .rim { fill: none; stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.note-text { margin: 0 0 18px; padding: 14px 16px; border-radius: 14px 14px 14px 4px; background: #eef5f4; white-space: pre-line; font-size: 15px; line-height: 1.55; }
.note-error { margin: -6px 0 14px; color: var(--accion); font-size: 14px; font-weight: 600; }
.reach { display: grid; gap: 12px; padding: 4px 6px; font-size: 15px; }
.reach p { display: grid; gap: 2px; margin: 0; }
.reach span { color: var(--hondo-2); font-size: 13px; }
.reach a { font-weight: 600; text-decoration-color: rgba(26, 143, 163, .5); text-underline-offset: 3px; }

/* Pie */
.footer { padding: clamp(70px, 9vw, 120px) 0 40px; background: var(--hondo); color: #eaf4f4; }
.footer-big { margin: 0 0 clamp(40px, 6vw, 72px); font: 720 clamp(54px, 10.5vw, 168px)/.86 var(--display); font-stretch: 75%; letter-spacing: -.04em; color: var(--agua-clara); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 40px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .12); color: #a9c3c7; font-size: 15px; }
.footer-row img { width: 170px; height: auto; border-radius: 16px; background: #fff; padding: 10px 14px; }
.footer-row p { margin: 0; }
.footer-row a { color: #eaf4f4; }
.footer-row .link { margin-left: auto; color: #eaf4f4; }

/* Botón flotante en celular */
.float-wa { position: fixed; right: 16px; bottom: 16px; z-index: 25; display: none; align-items: center; min-height: 50px; padding: 0 22px; border-radius: 999px; background: var(--accion); color: #fff; font-weight: 600; text-decoration: none; box-shadow: 0 10px 30px -10px rgba(12, 42, 54, .5); transition: opacity .3s, transform .3s var(--ease); }
.float-wa.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; }

/* Diálogos */
dialog { border: 0; padding: 0; color: inherit; }
dialog::backdrop { background: rgba(6, 22, 30, .72); }
.close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); cursor: pointer; }
.close span { position: absolute; left: 14px; top: 22px; width: 18px; height: 1.5px; background: var(--hondo); transform: rotate(45deg); }
.close span + span { transform: rotate(-45deg); }
.menu { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: var(--manana); overflow-y: auto; }
.menu-top { display: flex; align-items: center; justify-content: space-between; height: 80px; padding: 0 var(--gutter); border-bottom: 1px solid var(--line); }
.menu-top img { width: auto; height: 52px; }
.menu .close { position: relative; top: auto; right: auto; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.menu-label { margin: 26px var(--gutter) 12px; color: var(--hondo-2); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.menu-list { display: grid; gap: 10px; padding: 0 var(--gutter); }
.menu-list a { display: flex; align-items: center; gap: 14px; padding: 10px; border: 1px solid var(--line); border-radius: 18px; background: #fff; color: var(--hondo); text-decoration: none; transition: border-color .2s, transform .15s var(--ease); }
.menu-list a:active { transform: scale(.98); }
.menu-list img { flex: none; width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.menu-list span { display: grid; gap: 2px; }
.menu-list b { font: 650 22px/1.05 var(--display); font-stretch: 85%; letter-spacing: -.01em; }
.menu-list i { color: var(--hondo-2); font-size: 14px; font-style: normal; line-height: 1.3; }
.menu-cta { padding: 22px var(--gutter) 32px; }
.menu-cta p { margin: 14px 0 0; color: var(--hondo-2); font-size: 14px; text-align: center; }
.menu-cta p a { color: var(--hondo); font-weight: 600; }
.viewer { width: min(1200px, 94vw); max-height: 92vh; background: #071b23; color: #dff1f2; border-radius: 18px; overflow: hidden; }
.viewer img { width: 100%; max-height: 80vh; object-fit: contain; background: #071b23; }
.viewer p { margin: 0; padding: 14px 18px; font-size: 15px; }
dialog[open] { animation: dlg .35s var(--ease); }
@keyframes dlg { from { opacity: 0; transform: translateY(10px) scale(.985); } }
html.dialog-open { overflow: hidden; }


/* Estados iniciales que solo aplican si hay JavaScript (sin JS todo queda visible) */
@media (scripting: enabled) {
  .hero-title .line > span { transform: translateY(105%); }
  .hero-lead, .hero-actions, .hero-foot { opacity: 0; }
  .hero-photos { opacity: 0; transform: translateY(24px); }
  .tile img { clip-path: inset(0 0 100% 0); }
  .tile.is-in img { clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease-io), transform 1.2s var(--ease); }
  .qa:not(.is-asked) { display: none; }
}

/* Celular y tablet */
@media (max-width: 980px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header { height: 80px; }
  .brand img { height: 56px; }
  .hero { min-height: 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 30px; padding-top: 44px; padding-bottom: 36px; }
  .hero::before { background: linear-gradient(180deg, rgba(6, 26, 36, .78), rgba(6, 26, 36, .5) 45%, rgba(6, 26, 36, .82)); }
  .hero-title { font-size: clamp(56px, 15vw, 96px); }
  .models-head, .works-head, .model, .beach, .ask-grid, .quote-grid { grid-template-columns: 1fr; }
  .note { position: static; }
  .float-wa { display: inline-flex; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .board { flex-direction: row; align-items: flex-end; padding: 18px 14px; gap: 10px; }
  .pool-pick .label b { font-size: 15px; }
  .pool-pick .label i { font-size: 11.5px; }
  .specs { grid-template-columns: 1fr; }
  .specs div, .specs div + div { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .specs dd { margin: 0; font-size: 19px; }
  .day { height: 260vh; }
  .day-stage { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto; padding-top: 100px; }
  .clock { grid-column: 1; grid-row: 2; justify-self: start; font-size: 46px; margin-top: 10px; }
  .day-copy p { margin-top: 10px; font-size: 15px; line-height: 1.5; }
  .day-copy .h2 { font-size: 34px; }
  .day-stage { padding-top: 92px; row-gap: 6px; }
  .day .scene { margin-inline: calc(var(--gutter) * -1 + 8px); }
  .dn-frame { border-width: 7px; width: min(100cqw, 112cqh); aspect-ratio: 1.12; }
  .dn-img { object-position: 50% 60%; }
  .moments { flex-wrap: nowrap; gap: 5px; }
  .moments button { min-height: 36px; padding: 0 11px; font-size: 13px; }
  .day-model:not(:has(.dn-tabs:not([hidden]))) { display: none; }
  .day-note { font-size: 11.5px; }
  .scene { grid-row: 3; }
  .dn-frame { border-radius: 70px 18px 18px 18px; }
  .slides { min-height: 0; }
  .slide-lema { font-size: 44px; }
  .slide-num strong { font-size: 64px; }
  .slide-text { font-size: 23px; }
  .slide-quote { font-size: 24px; }
  .hero-photos { justify-self: stretch; width: 100%; aspect-ratio: 4 / 3; border-radius: 70px 20px 20px 20px; }
  .hero-foot { flex-wrap: wrap; }
  .moon { left: 74%; top: 30%; }
  .sun { top: calc(var(--sun-y) + 24%); }
  .day-stage { padding-bottom: 86px; }
  .ask, .works { padding-bottom: 110px; }
  .day-bottom { grid-row: 4; grid-template-columns: 1fr; }
  .moments { justify-content: flex-start; }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 42vw; }
  .tile, .tile.t-wide { grid-column: span 1; grid-row: span 1; }
  .tile.t-half { grid-column: span 1; }
  .tile.t-wide, .tile.m-wide { grid-column: span 2; }
  .tile.t-tall { grid-row: span 2; }
  .thread { max-height: 420px; }
  .msg { max-width: 90%; }
  .pick { grid-template-columns: 1fr 1fr; }
  .fields { grid-template-columns: 1fr; }
  .footer-row .link { margin-left: 0; }
}

/* Menos movimiento: sin desplazamientos ni zoom; los cambios de luz pasan como fundidos */
@media (prefers-reduced-motion: reduce) {
  .hero-title .line > span, .hero-bg, .hero-photos { transform: none !important; }
  .is-ready .hero-title .line > span, .is-ready .hero-bg { transition: none; }
  .slide, .slide.is-on { transform: none; filter: none; }
  .hero-photos img.is-on { animation: photo-fade .8s ease both; }
  @keyframes photo-fade { from { opacity: 0; } }
  .tile img { clip-path: none !important; }
  .tile img, .pool-pick svg, .pool-wrap { transition: none; }
  .msg.enter, dialog[open] { animation: none; }
  .typing i { animation: none; opacity: .7; }
}
