/* ==========================================================================
   The Rooms | Creative Studio
   Sistema visual: monocromo cálido, beige de marca (#CFC2AF) y un acento verde terciopelo.
   Tipografía: Cormorant Garamond (titulares) + Jost (textos).
   El nombre "The Rooms" usa Huesito Extended; League Spartan, la letra del logo, queda de respaldo.
   Radios: botones y chips en pastilla, tarjetas 14px, fotos e inputs 8px.
   ========================================================================== */

/* Huesito Extended: solo para "The Rooms" del inicio. Tiene un solo peso; el rango evita que el navegador la engrose. */
@font-face {
  font-family: "Huesito";
  src: url("../fonts/huesito-extended.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}

:root {
  --paper: #ECEBE7;
  --paper-2: #E2E1DC;
  --paper-3: #D6D4CE;
  --card: #F4F4F1;
  --ink: #121211;
  --ink-soft: #2B2B29;
  --muted: #5C5B56;
  --line: rgba(18, 18, 17, 0.12);
  --line-strong: rgba(18, 18, 17, 0.28);
  --accent: #2F4A3B;      /* verde terciopelo, como el sillón del Living Room */
  --accent-ink: #F7F5F2;
  --sand: #CFC2AF;        /* beige de marca (brief) */
  --danger: #A8321F;      /* solo para errores de formulario */

  --font-display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --font-text: "Jost", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-brand: "Huesito", "League Spartan", "Helvetica Neue", Arial, sans-serif; /* solo "The Rooms" */

  --r-card: 14px;
  --r-media: 8px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --gutter: clamp(16px, 2.4vw, 36px);
  --section: clamp(96px, 12vw, 180px);
  --nav-h: 68px;

  /* capas */
  --z-menu: 45;
  --z-nav: 50;
  --z-toast: 70;
  --z-grain: 80;
  --z-preloader: 100;

  interpolate-size: allow-keywords;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-h);
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* grano de película: fijo y sin eventos para no costar repaints al hacer scroll */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--ink); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: currentColor;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: calc(var(--z-preloader) + 1);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  transform: translateY(-160%);
  transition: transform 200ms var(--ease-out);
}
.skip-link:focus { transform: none; }

/* ---------- Tipografía ---------- */
.h-xl, .h-lg, .h-md, .footer__ask, .intro__text {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.h-xl { font-size: clamp(56px, 8.6vw, 148px); line-height: 0.95; }
.h-lg { font-size: clamp(48px, 6.5vw, 112px); line-height: 0.97; }
.h-md { font-size: clamp(42px, 5.1vw, 84px); line-height: 1; }
/* palabra de contraste dentro de un titular ("Reinvéntalo.") */
.thin { font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

.lead {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 46ch;
  text-wrap: pretty;
}

/* palabras partidas para animar (máscara por palabra) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.1em 0.07em 0.12em; margin: -0.1em -0.07em -0.12em; }
.w__i { display: inline-block; will-change: transform; }

/* ---------- Botones ---------- */
.btn {
  --btn-h: 44px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  height: var(--btn-h);
  padding: 0 20px;
  border-radius: 999px;
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 160ms var(--ease-out),
    background-color 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn--lg { --btn-h: 54px; padding: 0 26px; font-size: 15px; }

.btn--ink { background: var(--ink); color: var(--paper); }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--ghost { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* etiqueta que rueda hacia arriba al pasar el cursor */
.btn__label {
  position: relative;
  display: inline-block;
  overflow: hidden;
  height: 1.2em;
  line-height: 1.2em;
}
.btn__label > span {
  display: block;
  transition: transform 420ms var(--ease-out);
}
.btn__label::after {
  content: attr(data-text);
  content: attr(data-text) / "";
  position: absolute;
  left: 0; top: 100%;
  transition: transform 420ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .btn--ink:hover { background: var(--accent); color: var(--accent-ink); }
  .btn--paper:hover { background: var(--accent); color: var(--accent-ink); }
  .btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
  .btn:hover .btn__label > span,
  .btn:hover .btn__label::after { transform: translateY(-100%); }
}

/* ---------- Preloader ---------- */
.preloader { display: none; }

.has-intro .preloader {
  position: fixed;
  inset: 0;
  z-index: var(--z-preloader);
  display: grid;
  place-items: center;
  pointer-events: none;
}
.preloader__panel {
  position: absolute;
  inset: 0;
  background: var(--paper);
}
.preloader__logo {
  position: relative;
  width: min(60vw, 520px);
  color: var(--ink);
  clip-path: inset(100% 0 0 0);
  transform-origin: 0 0;
  will-change: transform;
}
.preloader__logo svg { display: block; width: 100%; height: auto; }
.preloader__meta {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(var(--gutter) + 14px);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.preloader__count { font-variant-numeric: tabular-nums; }
.preloader__bar {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: var(--gutter);
  height: 1px;
  background: transparent;
}
.preloader__bar span {
  display: block;
  height: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
}
.has-intro .nav__logo { opacity: 0; }

/* ---------- Navegación ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  transition: transform 450ms var(--ease-out);
}
.nav.is-hidden { transform: translateY(-100%); }

.nav__logo { justify-self: start; display: block; color: var(--ink); }
.nav__logo svg { display: block; height: 36px; width: auto; }

.nav__links { display: flex; gap: 4px; }
.nav__links a {
  position: relative;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 350ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
}

.nav__right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.status i {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.status i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  animation: rec 1.8s var(--ease-out) infinite;
}
.status.is-closed i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.status.is-closed i::after { display: none; }
@keyframes rec {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.6); opacity: 0; }
}

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  place-items: center;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: transform 160ms var(--ease-out);
}
.nav__toggle:active { transform: scale(0.95); }
.nav__toggle .icon { width: 20px; height: 20px; }

/* menú móvil */
.menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--nav-h) + 24px) var(--gutter) calc(var(--gutter) + env(safe-area-inset-bottom));
  background: var(--paper);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 600ms var(--ease-in-out), visibility 0s linear 600ms;
}
.menu.is-open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path 600ms var(--ease-in-out), visibility 0s;
}
.menu__links { display: flex; flex-direction: column; }
.menu__links a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(50px, 13.9vw, 84px);
  line-height: 1.08;
  letter-spacing: -0.011em;
  padding: 4px 0;
}
.menu__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 14px;
  color: var(--muted);
}
.menu-open .nav { background: var(--paper); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100dvh;
  padding-top: var(--nav-h);
  display: flex;
  flex-direction: column;
}

.hero__mosaic {
  flex: 1;
  min-height: 380px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 0 var(--gutter);
}

.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-media);
  background: var(--paper-2);
  will-change: transform;
}
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.t1 { grid-column: 1 / 4;  grid-row: 1; }
.t2 { grid-column: 4 / 6;  grid-row: 1; }
.t3 { grid-column: 6 / 9;  grid-row: 1 / 3; }
.t4 { grid-column: 9 / 11; grid-row: 1; }
.t5 { grid-column: 11 / 13; grid-row: 1; }
.t6 { grid-column: 1 / 3;  grid-row: 2; }
.t7 { grid-column: 3 / 6;  grid-row: 2; }
.t8 { grid-column: 9 / 13; grid-row: 2; }

.hero__brand {
  padding: clamp(10px, 1.4vw, 20px) var(--gutter) clamp(12px, 1.6vw, 22px);
}
.hero__title { margin: 0; }
.hero__visual {
  display: flex;
  align-items: flex-end;
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: clamp(64px, 15.2vw, 290px);
  line-height: 0.74;
  letter-spacing: -0.03em;
}
.hero__word {
  display: inline-flex;
  overflow: hidden;
  padding-top: 0.06em;
  margin-top: -0.06em;
}
.hero__word--gap { margin-left: 0.035em; padding-right: 0.02em; } /* "Rooms" casi pegado a "The": apenas más aire que entre letras */
.hero__word .ch { display: inline-block; will-change: transform; }
/* las dos "o" de Rooms un poco más juntas (con animación las letras son .ch; sin animación queda .kern-oo) */
.hero__word--gap .ch:nth-child(3), .hero__word--gap .kern-oo { margin-left: -0.05em; }
/* la "h" pegada a la "T" */
.hero__word:first-child .ch:nth-child(2), .hero__word .kern-th { margin-left: -0.05em; }

.hero__rule {
  position: relative;
  flex: 1;
  height: max(2px, 0.022em);
  margin: 0 0 0.2em 0.3em;
  background: var(--ink);
  transform-origin: left center;
}
.hero__rule-label {
  position: absolute;
  left: 0;
  bottom: 18px;
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- Intro / manifiesto ---------- */
.intro {
  padding: var(--section) var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 48px;
}
.intro__text {
  max-width: 19em;
  font-size: clamp(35px, 4.9vw, 79px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.intro__text .word { transition: none; }
.intro__cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- Arma tu set (plano interactivo) ---------- */
.builder {
  padding: 0 var(--gutter) var(--section);
}
.builder__head {
  display: grid;
  gap: 24px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.builder__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.builder__tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.builder__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.builder__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px clamp(16px, 2.4vw, 32px);
  max-width: 820px;
  margin: 8px 0 0;
}
.builder__facts div { padding-top: 14px; border-top: 1px solid var(--line-strong); }
.builder__facts dt {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.4vw, 54px);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: lining-nums;
}
.builder__facts dd { margin: 8px 0 0; font-size: 14px; color: var(--muted); }

.chip {
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color 220ms ease, color 220ms ease, box-shadow 220ms ease, transform 160ms var(--ease-out);
}
.chip:active { transform: scale(0.97); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  .chip[aria-pressed="false"]:hover { box-shadow: inset 0 0 0 1px var(--ink); }
}

.builder__stage {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
  gap: 16px;
}

.plan {
  position: relative;
  min-width: 0;
  border-radius: var(--r-card);
  background: var(--card);
  padding: clamp(10px, 1.6vw, 22px) clamp(10px, 1.6vw, 22px) 56px;
}
.plan__svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 871 / 490;
  overflow: hidden;
  border-radius: var(--r-media);
  user-select: none;
  -webkit-user-select: none;
}
/* los trazos mantienen su grosor en pantalla aunque el plano haga zoom */
.plan__svg path, .plan__svg rect, .plan__svg circle, .plan__svg ellipse,
.plan__svg line, .plan__svg polygon { vector-effect: non-scaling-stroke; }
.plan__hint {
  position: absolute;
  left: clamp(14px, 1.8vw, 26px);
  right: clamp(14px, 1.8vw, 26px);
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.plan__label {
  position: absolute;
  left: 0; top: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -100%) scale(0.96);
  transform-origin: 50% 100%;
  transition: opacity 160ms ease, transform 200ms var(--ease-out);
}
.plan__label.is-on { opacity: 1; transform: translate(-50%, calc(-100% - 6px)); }

/* piezas del plano (SVG) */
.pl-floor { fill: var(--paper); }
.pl-room { fill: var(--paper-2); }
.pl-dots { fill: rgba(18, 18, 17, 0.22); }
.pl-wall { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: square; }
.pl-part { fill: none; stroke: var(--ink); stroke-width: 1.75; stroke-linecap: square; }
.pl-stair { stroke: var(--ink); stroke-width: 1; opacity: 0.4; }
.pl-col { fill: var(--ink); }
.pl-door { fill: none; stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; }
.pl-arrow { stroke: var(--accent); stroke-width: 1.5; }
.pl-arrow-head { fill: var(--accent); }
.pl-scale { stroke: var(--ink); stroke-width: 1.5; }
.pl-tag {
  font-family: var(--font-text);
  font-size: calc(10px * var(--u, 1));
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  fill: var(--muted);
}
.pl-tag--scale { letter-spacing: 0.04em; text-transform: none; }
.pl-area-group { transition: opacity 300ms ease; }
.pl-area-group.is-off { opacity: 0; }
.pl-tag { transition: opacity 300ms ease; }
.plan__svg.is-tiny .pl-tag, .plan__svg.is-tiny .pl-area-group { opacity: 0; }
.pl-area {
  font-family: var(--font-display);
  font-size: calc(30px * var(--u, 1));
  font-weight: 500;
  fill: var(--ink);
  font-variant-numeric: lining-nums;
}

.piece { cursor: grab; outline: none; }
.piece.is-drag { cursor: grabbing; }
.piece .pc { fill: var(--tint, var(--card)); stroke: var(--ink); stroke-width: 2; transition: fill 300ms ease, stroke 200ms ease; }
.piece .pc-soft { fill: var(--paper-2); stroke: var(--ink); stroke-width: 2; }
.piece .pc-ink { fill: var(--ink); }
.piece .pc-hair { fill: none; stroke: var(--ink); stroke-width: 1.25; }
.piece .pc-rug { fill: rgba(18, 18, 17, 0.045); stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 3 5; }
.piece .pc-beam { fill: rgba(207, 194, 175, 0.42); stroke: rgba(150, 128, 98, 0.55); stroke-width: 1; stroke-dasharray: 2 4; }
.piece .pc-panel-a { fill: var(--ink); stroke: var(--ink); stroke-width: 1.5; }
.piece .pc-panel-b { fill: #7A5B49; stroke: var(--ink); stroke-width: 1.5; }
.piece .pc-frustum { fill: rgba(18, 18, 17, 0.035); stroke: var(--ink); stroke-width: 1; stroke-dasharray: 5 4; }
.piece .pc-hit { fill: transparent; }
.piece .pc-paper { stroke: var(--ink); stroke-width: 2; }
.piece .pc-sweep { opacity: 0.5; }
.pl-focus {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 4 6;
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (hover: hover) and (pointer: fine) {
  .piece:hover .pc, .piece:hover .pc-soft { stroke: var(--accent); }
}
.piece:focus-visible .pc, .piece:focus-visible .pc-soft, .piece.is-drag .pc, .piece.is-drag .pc-soft { stroke: var(--accent); stroke-width: 2.5; }

.builder__photo { display: flex; flex-direction: column; gap: 12px; }
.builder__frame {
  position: relative;
  flex: 1;
  min-height: 320px;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--paper-2);
}
.builder__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.builder__photo figcaption { font-size: 14px; color: var(--muted); }

/* ---------- Espacios (scroll horizontal) ---------- */
.sets { position: relative; }
.sets__pin {
  display: grid;
  grid-template-columns: calc(max(280px, 26vw) + var(--gutter)) minmax(0, 1fr);
  align-items: stretch;
  height: 100dvh;
  padding: calc(var(--nav-h) + 12px) 0 28px 0;
  overflow: hidden;
  background: var(--paper);
}
.sets__intro {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0 clamp(16px, 2.4vw, 40px) 0 var(--gutter);
  background: var(--paper);
}
/* las tarjetas se desvanecen al pasar por debajo de la columna del título */
.sets__intro::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 100%;
  width: 48px;
  background: linear-gradient(90deg, var(--paper), transparent);
  pointer-events: none;
}
.sets__intro .lead { font-size: 17px; }
.sets__progress {
  margin-top: auto;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.sets__progress span {
  display: block;
  height: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
}
.sets__viewport { position: relative; min-width: 0; }
.sets__track {
  display: flex;
  gap: 14px;
  height: 100%;
  padding-left: 40px; /* la primera tarjeta empieza después del degradado del título */
  padding-right: var(--gutter);
  will-change: transform;
}

.set-card {
  flex: 0 0 clamp(330px, 44vw, 700px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  padding: 18px;
  border-radius: var(--r-card);
  background: var(--card);
}
.set-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.set-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 4.6vw, 79px);
  line-height: 0.95;
  letter-spacing: -0.012em;
}
.set-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 16px;
  min-height: 0;
}
.set-card__media {
  position: relative;
  border-radius: var(--r-media);
  overflow: hidden;
  background: var(--paper-2);
  min-height: 220px;
}
.set-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 64%; /* prioriza muebles y piso sobre el techo */
}
/* foto completa al abrir la tarjeta */
.set-card__body { transition: grid-template-columns 700ms var(--ease-in-out), gap 700ms var(--ease-in-out); }
.set-card__media { cursor: zoom-in; outline: none; }
.set-card__media:focus-visible { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }
.set-card__backdrop {
  position: absolute;
  inset: -24px;
  z-index: 1;
  background: center / cover no-repeat;
  filter: blur(26px) saturate(1.05) brightness(0.96);
  opacity: 0;
  transition: opacity 600ms ease;
}
.set-card__media .set-card__full {
  z-index: 2;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 500ms ease 120ms, transform 800ms var(--ease-out) 120ms;
}
.set-card__zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(244, 244, 241, 0.88);
  color: var(--ink);
  transition: opacity 300ms ease, transform 300ms var(--ease-out);
}
.set-card__zoom .icon { width: 18px; height: 18px; }
.set-card.is-open .set-card__media { cursor: zoom-out; }
.set-card.is-open .set-card__backdrop,
.set-card.is-open .set-card__full { opacity: 1; transform: none; }
.set-card.is-open .set-card__zoom { opacity: 0; transform: scale(0.8); }
@media (min-width: 601px) {
  .set-card.is-open .set-card__body { grid-template-columns: minmax(0, 1fr) minmax(0, 0fr); gap: 0; }
  .set-card__aside { min-width: 0; overflow: hidden; transition: opacity 250ms ease 350ms; }
  .set-card.is-open .set-card__aside { opacity: 0; padding-left: 0; border-left-color: transparent; transition: opacity 150ms ease; }
}

.set-card__aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.set-card__ideal {
  margin-top: auto;
  display: grid;
  gap: 8px;
}
.set-card__ideal span { font-size: 12px; color: var(--muted); }
.set-card__ideal strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 2.3vw, 37px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.set-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.set-card__link .icon { transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .set-card__link:hover { color: var(--accent); }
  .set-card__link:hover .icon { transform: translate(3px, -3px); }
}
.set-card__thumbs { display: flex; gap: 8px; }
.set-card__thumbs button {
  position: relative;
  width: 58px; height: 58px;
  border-radius: var(--r-media);
  overflow: hidden;
  opacity: 0.55;
  transition: opacity 200ms ease, transform 160ms var(--ease-out);
}
.set-card__thumbs button:active { transform: scale(0.95); }
.set-card__thumbs button[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--card), 0 0 0 3px var(--ink); }
.set-card__thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (pointer: fine) {
  .set-card__thumbs button:hover { opacity: 1; }
}

.sets__outro {
  flex: 0 0 clamp(300px, 30vw, 460px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 24px;
  padding: 18px 8px 18px 24px;
}
.sets__outro p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(42px, 4.2vw, 70px);
  line-height: 1;
  letter-spacing: -0.011em;
}

/* ---------- Recorrido ---------- */
.tour { padding: var(--section) var(--gutter) 0; }
.tour__head { display: grid; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); }
.tour__viewer {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}
.tour__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  outline: none;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.tour__stage.is-dragging { cursor: grabbing; }
.tour__stage.is-pointing { cursor: pointer; }
.tour__stage:focus-visible { box-shadow: inset 0 0 0 3px var(--paper); }
/* sombra suave abajo para que las flechas del piso se lean sobre cualquier foto */
.tour__stage::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(18, 18, 17, 0.32), rgba(18, 18, 17, 0));
  pointer-events: none;
  z-index: 1;
}
.tour__frame { position: absolute; inset: 0; transform: scale(1.1); will-change: transform; }
.tour__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* flechas sobre el piso, en perspectiva, que giran con la mirada */
.tour__ground {
  position: absolute;
  left: 50%;
  bottom: clamp(64px, 17%, 150px);
  width: 0;
  height: 0;
  perspective: 620px;
  z-index: 3;
  pointer-events: none;
}
.tour__ring { --r: 112px; position: absolute; left: 0; top: 0; transform: rotateX(56deg); }
.tour__ring::before {
  content: "";
  position: absolute;
  left: calc(var(--r) * -1);
  top: calc(var(--r) * -1);
  width: calc(var(--r) * 2);
  height: calc(var(--r) * 2);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(236, 235, 231, 0.3);
}
.tour__go {
  position: absolute;
  left: 0;
  top: 0;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 50%;
  color: var(--paper);
  pointer-events: auto;
  transform: rotate(calc((var(--b) - var(--yaw, 0)) * 1deg)) translateY(calc(var(--r) * -1));
  filter: drop-shadow(0 3px 6px rgba(18, 18, 17, 0.45));
}
.tour__go svg { width: 100%; height: 100%; fill: currentColor; stroke: rgba(18, 18, 17, 0.28); stroke-width: 1.5; transition: transform 220ms var(--ease-out); }
.tour__go:active svg { transform: scale(0.9); }
.tour__go:focus-visible { outline: 2px solid var(--paper); outline-offset: -4px; }
@media (hover: hover) and (pointer: fine) {
  .tour__go:hover svg { transform: scale(1.14); }
}

/* cursor en el piso: un óvalo que indica si se puede caminar en esa dirección */
.tour__cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(236, 235, 231, 0.7), 0 4px 14px rgba(18, 18, 17, 0.25);
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms ease, background-color 200ms ease;
}
.tour__cursor.is-on { opacity: 1; }
.tour__cursor.is-go { background: rgba(236, 235, 231, 0.3); box-shadow: 0 0 0 2px var(--paper), 0 4px 14px rgba(18, 18, 17, 0.3); }

.tour__tip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 6;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms ease;
}
.tour__tip.is-on { opacity: 1; }

/* minimapa con el plano real */
.tour__map {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 4;
  width: clamp(168px, 19vw, 252px);
  padding: 8px;
  border-radius: 12px;
  background: rgba(236, 235, 231, 0.94);
  box-shadow: 0 10px 28px rgba(18, 18, 17, 0.22);
  cursor: default;
}
.tour__map svg { display: block; width: 100%; height: auto; overflow: visible; }
.tm-floor { fill: rgba(18, 18, 17, 0.04); stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.tm-room { fill: rgba(18, 18, 17, 0.1); stroke: rgba(18, 18, 17, 0.45); stroke-width: 0.8; vector-effect: non-scaling-stroke; }
.tm-streets line { stroke: var(--accent); stroke-opacity: 0.45; stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.tm-spot { cursor: pointer; }
.tm-hit { fill: transparent; }
.tm-dot { fill: var(--paper); stroke: var(--accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: fill 160ms ease; }
.tm-spot:hover .tm-dot { fill: var(--accent); }
.tm-me { pointer-events: none; }
.tm-me circle { fill: var(--accent); stroke: var(--paper); stroke-width: 2; vector-effect: non-scaling-stroke; }

.tour__hint {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 12px 16px;
  border-radius: 999px;
  background: rgba(18, 18, 17, 0.58);
  color: var(--paper);
  font-size: 14px;
  line-height: 1.35;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity 500ms ease;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.tour__hint .icon { width: 24px; height: 24px; flex: none; }
.tour__hint.is-off { opacity: 0; }
.tour__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(16px, 2vw, 24px);
}
.tour__progress { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(236, 235, 231, 0.16); }
.tour__progress span { display: block; height: 100%; background: var(--paper); transform: scaleX(0); transform-origin: left; transition: transform 600ms var(--ease-out); }
.tour__info { display: flex; align-items: baseline; gap: 16px; min-width: 0; }
.tour__count { font-size: 13px; letter-spacing: 0.08em; opacity: 0.7; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tour__label {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tour__controls { display: flex; gap: 8px; flex: none; }
.tour__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(236, 235, 231, 0.3);
  font-size: 14px;
  font-weight: 500;
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.tour__btn:active { transform: scale(0.95); }
.tour__btn .icon { width: 18px; height: 18px; }
.tour__btn--play { padding: 0 16px; }
.tour__btn[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .tour__btn:hover { box-shadow: inset 0 0 0 1px var(--paper); }
}
.tour__strip {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.tour__strip::-webkit-scrollbar { display: none; }
.tour__strip button {
  flex: none;
  width: 104px;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-media);
  overflow: hidden;
  opacity: 0.5;
  transition: opacity 200ms ease, transform 160ms var(--ease-out);
}
.tour__strip button[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--ink); }
.tour__strip button:active { transform: scale(0.96); }
.tour__strip img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (pointer: fine) {
  .tour__strip button:hover { opacity: 1; }
}
/* pantalla completa: la foto se ve entera */
.tour__viewer:fullscreen { display: flex; flex-direction: column; border-radius: 0; }
.tour__viewer:fullscreen .tour__stage { flex: 1; aspect-ratio: auto; }
.tour__viewer:fullscreen .tour__map { width: clamp(220px, 22vw, 320px); }
@media (max-width: 600px) {
  .tour__stage { aspect-ratio: 4 / 3.3; }
  .tour__ground { bottom: 58px; }
  .tour__ring { --r: 74px; }
  .tour__go { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .tour__map { left: 10px; top: 10px; bottom: auto; width: 132px; padding: 6px; border-radius: 10px; }
  .tour__hint { font-size: 13px; padding: 10px 16px 10px 12px; }
  .tour__bar { flex-wrap: wrap; }
  .tour__info { width: 100%; }
  .tour__controls { width: 100%; }
  .tour__btn--play { flex: 1; }
  .tour__strip button { width: 84px; }
}

/* ---------- Clientes ---------- */
.clients { padding: var(--section) var(--gutter); }
.clients__head { display: grid; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); }
/* Farfán ocupa dos columnas y dos filas; el resto son historias verticales */
.clients__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 5fr);
  gap: clamp(8px, 0.9vw, 14px);
}
.clients__more {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(8px, 0.9vw, 14px);
}
.client {
  position: relative;
  margin: 0;
  aspect-ratio: 9 / 16;
  border-radius: var(--r-media);
  overflow: hidden;
  background: var(--paper-2);
}
.client img, .client video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}
.client--star { aspect-ratio: auto; border-radius: var(--r-card); }
.client--star figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 6px;
  padding: 72px clamp(18px, 2vw, 28px) clamp(18px, 2vw, 26px);
  background: linear-gradient(to top, rgba(18, 18, 17, 0.78), rgba(18, 18, 17, 0));
  color: var(--paper);
}
.client__role { font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; }
.client__name {
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 52px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
}
@media (hover: hover) and (pointer: fine) {
  .client:hover img, .client:hover video { transform: scale(1.04); }
}
@media (max-width: 900px) {
  /* en pantallas chicas: Farfán arriba y las demás historias en un carrusel */
  .clients__grid { grid-template-columns: minmax(0, 1fr); }
  .client--star { aspect-ratio: 4 / 5; }
  .client--star img { object-position: center 35%; }
  .clients__more {
    display: flex;
    gap: 8px;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .clients__more::-webkit-scrollbar { display: none; }
  .clients__more .client { flex: 0 0 clamp(150px, 30vw, 220px); scroll-snap-align: start; }
}
@media (max-width: 600px) {
  .clients__more .client { flex-basis: 44vw; }
}

/* ---------- Usos (bento) ---------- */
.uses { padding: var(--section) var(--gutter) 0; }
.uses .h-lg { margin-bottom: clamp(32px, 4vw, 56px); }
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(2, clamp(300px, 30vw, 470px));
  gap: 28px 14px;
}
.cell { display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.cell__media {
  position: relative;
  flex: 1;
  min-height: 0;
  margin-bottom: 10px;
  border-radius: var(--r-media);
  overflow: hidden;
  background: var(--paper-2);
}
.cell__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .cell:hover .cell__media img { transform: scale(1.04); }
}
.cell h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 2.2vw, 35px);
  line-height: 1.06;
  letter-spacing: -0.009em;
}
.cell p { font-size: 15px; color: var(--muted); max-width: 40ch; }
.c1 { grid-column: 1 / 4; grid-row: 1 / 3; }
.c2 { grid-column: 4 / 6; grid-row: 1; }
.c3 { grid-column: 6 / 7; grid-row: 1; }
.c4 { grid-column: 4 / 5; grid-row: 2; }
.c5 { grid-column: 5 / 7; grid-row: 2; }

/* ---------- Tarifas (banda en el beige de marca) ---------- */
.pricing {
  --muted: #4A463F;
  --strike: #B3361F;
  --strike-on-ink: #E5745B;
  --line: rgba(18, 18, 17, 0.14);
  --line-strong: rgba(18, 18, 17, 0.32);
  background: var(--sand);
  padding: var(--section) var(--gutter);
}
.pricing__head { display: grid; gap: 24px; margin-bottom: clamp(36px, 4.4vw, 64px); }
.pricing__picker {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-card);
  overflow: hidden;
}
.pricing__picker button {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 112px;
  padding: 18px 16px;
  background: var(--sand);
  color: var(--ink);
  text-align: left;
  transition: background-color 260ms ease, color 260ms ease;
}
.pricing__picker button[aria-checked="true"] { background: var(--ink); color: var(--paper); }
.pricing__picker button:focus-visible { outline-offset: -4px; }
.pp-h { font-size: 14px; font-weight: 500; }
.pp-p {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.3vw, 38px);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: lining-nums;
}
/* precio anterior tachado en rojo, como en el brief */
.pp-was { margin-bottom: -6px; font-family: var(--font-display); font-size: clamp(17px, 1.4vw, 22px); font-weight: 500; line-height: 1; color: var(--muted); font-variant-numeric: lining-nums; }
.pp-was s { text-decoration-color: var(--strike); text-decoration-thickness: 2px; }
.pricing__picker button[aria-checked="true"] .pp-was { color: rgba(236, 235, 231, 0.6); }
.pricing__picker button[aria-checked="true"] .pp-was s { text-decoration-color: var(--strike-on-ink); }
.pp-tag {
  justify-self: start;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
@media (hover: hover) and (pointer: fine) {
  .pricing__picker button[aria-checked="false"]:hover { background: #D8CDBC; }
}
.pricing__detail {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: end;
  padding-top: clamp(40px, 5vw, 72px);
}
.pricing__total { display: grid; gap: 20px; justify-items: start; }
.pricing__was {
  margin-bottom: -12px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 500;
  line-height: 1;
  color: var(--muted);
  font-variant-numeric: lining-nums;
}
.pricing__was s { text-decoration-color: var(--strike); text-decoration-thickness: 3px; }
.pricing__amount {
  display: flex;
  align-items: flex-start;
  gap: 0.08em;
  font-family: var(--font-display);
  font-size: clamp(96px, 14vw, 220px);
  font-weight: 500;
  line-height: 0.82;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
}
.pricing__cur { font-size: 0.3em; line-height: 1; margin-top: 0.18em; }
.pricing__meta { display: grid; gap: 4px; font-size: 16px; }
.pricing__save { color: var(--muted); }
.pricing__save:empty { display: none; }
.pricing__side { display: grid; gap: 24px; padding-bottom: 6px; }
.pricing__includes { display: grid; gap: 14px; }
.pricing__includes li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(22px, 1.9vw, 28px);
  font-weight: 500;
  line-height: 1.1;
}
.pricing__includes .icon { width: 20px; height: 20px; color: var(--accent); }
.pricing__notes { font-size: 14px; color: var(--muted); max-width: 44ch; }

/* ---------- Luz incluida ---------- */
.light { padding: var(--section) var(--gutter); }
.light__head { display: grid; gap: 24px; margin-bottom: clamp(36px, 4.4vw, 64px); }
.light__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
}
.light__kit {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px clamp(20px, 2.6vw, 40px);
}
.kit { padding-top: 20px; border-top: 1px solid var(--line-strong); }
.kit h3 {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.2vw, 34px);
  font-weight: 500;
  line-height: 1.05;
}
.kit li { padding: 5px 0; font-size: 15px; line-height: 1.45; color: var(--muted); }
.kit__n { margin-left: 6px; font-family: var(--font-text); font-size: 13px; font-weight: 500; color: var(--muted); vertical-align: super; }
.kit li.kit__hl { color: var(--ink); font-weight: 500; }
.light__feature {
  display: grid;
  gap: 18px;
  padding: 14px;
  border-radius: var(--r-card);
  background: var(--card);
}
.light__shots {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
  aspect-ratio: 4 / 3.3;
}
.light__media {
  position: relative;
  border-radius: var(--r-media);
  overflow: hidden;
  background: var(--paper-2);
}
.light__media--main { grid-row: 1 / -1; }
.light__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.light__feature figcaption { display: grid; gap: 10px; padding: 0 6px 6px; }
.light__tag {
  justify-self: start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.light__feature h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.4vw, 38px);
  font-weight: 500;
  line-height: 1;
}
.light__feature p { font-size: 14px; color: var(--muted); }

/* ---------- Escenografía adicional ---------- */
.addons { padding: 0 var(--gutter) var(--section); }
.addons__head { display: grid; gap: 24px; margin-bottom: clamp(36px, 4.4vw, 64px); }
.addons__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
}
.addons__preview {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  aspect-ratio: 4 / 3.6;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--paper-2);
}
.addons__preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.addons__list { border-top: 1px solid var(--line-strong); }
.addon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 6px 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  outline: none;
}
.addon__thumb { display: none; }
.addon h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.6vw, 42px);
  font-weight: 500;
  line-height: 1;
  transition: color 260ms ease;
}
.addon__text p { margin-top: 8px; font-size: 15px; color: var(--muted); max-width: 44ch; }
.addon__price {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.2vw, 36px);
  font-weight: 500;
  white-space: nowrap;
  font-variant-numeric: lining-nums;
}
.addon__price small { font-family: var(--font-text); font-size: 13px; color: var(--muted); }
.addon:focus-visible h3 { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
@media (hover: hover) and (pointer: fine) and (min-width: 1025px) {
  .addon h3 { color: var(--muted); }
  .addon.is-active h3, .addon:hover h3 { color: var(--ink); }
}

/* ---------- Reserva ---------- */
.booking {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 96px);
  padding: 0 var(--gutter) var(--section);
  align-items: start;
}
.booking__intro { display: flex; flex-direction: column; gap: 40px; position: sticky; top: calc(var(--nav-h) + 24px); }
.steps { display: grid; gap: 22px; counter-reset: s; }
.steps li { display: grid; gap: 4px; padding-top: 18px; border-top: 1px solid var(--line-strong); }
.steps strong {
  font-family: var(--font-display);
  font-size: clamp(35px, 3vw, 49px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.011em;
}
.steps p { color: var(--muted); max-width: 40ch; }
.booking__direct { display: flex; flex-wrap: wrap; gap: 20px; font-weight: 500; }
.booking__direct a { display: inline-flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line-strong); padding-bottom: 3px; transition: border-color 200ms ease, color 200ms ease; }
@media (hover: hover) and (pointer: fine) {
  .booking__direct a:hover { border-color: var(--accent); color: var(--accent); }
}

.form {
  display: grid;
  gap: 22px;
  padding: clamp(20px, 3vw, 40px);
  border-radius: var(--r-card);
  background: var(--card);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label, .field legend {
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.field legend { margin-bottom: 8px; }
.field__opt { color: var(--muted); font-weight: 400; margin-left: 6px; }
.field input[type="text"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-media);
  background: #FBFBF9;
  color: var(--ink);
  font: 400 16px/1.4 var(--font-text);
  transition: border-color 160ms ease, box-shadow 160ms ease;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.field input::-webkit-date-and-time-value { text-align: left; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(18, 18, 17, 0.12);
}
.field.is-invalid input, .field.is-invalid select { border-color: var(--danger); }
.select { position: relative; }
.select::after {
  content: "";
  position: absolute;
  right: 16px; top: 50%;
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.field__error { min-height: 0; font-size: 13px; color: var(--danger); }
.field__error:empty { display: none; }
.field__help { font-size: 13px; color: var(--muted); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease, transform 160ms var(--ease-out);
}
.pill span:active { transform: scale(0.97); }
.pill input:checked + span { background: var(--ink); color: var(--paper); box-shadow: none; }
.pill input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .pill input:not(:checked) + span:hover { box-shadow: inset 0 0 0 1px var(--ink); }
}

.pill em { font-style: normal; color: var(--muted); margin-left: 3px; transition: color 200ms ease; }
.pill input:checked + span em { color: rgba(236, 235, 231, 0.72); }

/* acceso total: todos los rooms incluidos en cada reserva */
.access {
  display: grid;
  gap: 10px;
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: var(--r-media);
  background: var(--accent);
  color: var(--accent-ink);
}
.access__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.access__text { max-width: 52ch; font-size: 14px; line-height: 1.5; color: rgba(247, 245, 242, 0.8); }
.access__rooms { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.access__rooms li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  background: rgba(247, 245, 242, 0.12);
  font-size: 13px;
  font-weight: 500;
  transition: background-color 300ms ease, color 300ms ease;
}
.access__rooms .icon { width: 14px; height: 14px; flex: none; }
.access__rooms li.is-picked { background: var(--accent-ink); color: var(--accent); }

.form__summary {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border-radius: var(--r-media);
  background: var(--paper);
}
.form__summary dl { display: grid; gap: 8px; margin: 0; }
.form__summary dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 15px; }
.form__summary dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.form__summary .form__total { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line-strong); font-weight: 500; }
.form__summary .form__total dd {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.form__summary p { font-size: 13px; color: var(--muted); }

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; padding-top: 6px; }
.form__note { font-size: 13px; color: var(--muted); max-width: 32ch; }

/* ---------- Comunidad ---------- */
.community { padding: 0 0 var(--section); }
.community__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gutter);
  margin-bottom: clamp(32px, 4vw, 56px);
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marquee__track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li {
  width: clamp(200px, 20vw, 320px);
  aspect-ratio: 4 / 5;
  border-radius: var(--r-media);
  overflow: hidden;
  background: var(--paper-2);
}
.marquee__track img { width: 100%; height: 100%; object-fit: cover; }
@keyframes marquee {
  to { transform: translateX(calc(-50% - 6px)); }
}

/* ---------- Preguntas ---------- */
.faq {
  padding: 0 var(--gutter) var(--section);
  max-width: 1080px;
  margin: 0 auto;
  box-sizing: content-box;
}
.faq .h-lg { margin-bottom: clamp(28px, 3.6vw, 48px); }
.faq__list { border-bottom: 1px solid var(--line-strong); }
.faq details { border-top: 1px solid var(--line-strong); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 37px);
  font-weight: 500;
  letter-spacing: -0.009em;
  line-height: 1.15;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 22px; height: 22px; transition: transform 300ms var(--ease-out); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 380ms var(--ease-out), content-visibility 380ms allow-discrete;
}
.faq details[open]::details-content { block-size: auto; }
.faq__body p { padding: 0 0 28px; max-width: 60ch; color: var(--muted); font-size: 17px; }

/* ---------- Footer (bloque oscuro: el único cambio de tema de la página) ---------- */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(80px, 10vw, 150px) var(--gutter) calc(24px + env(safe-area-inset-bottom));
  --line: rgba(236, 235, 231, 0.16);
}
.footer__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: clamp(56px, 8vw, 120px);
}
.footer__ask {
  font-size: clamp(56px, 9.3vw, 162px);
  line-height: 0.93;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) repeat(3, minmax(0, 2fr));
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.footer__logo { display: grid; gap: 14px; align-self: start; color: var(--paper); }
.footer__logo svg { width: clamp(220px, 34vw, 560px); height: auto; display: block; }
.footer__logo span { font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; padding-left: 0.4%; opacity: 0.8; }
.footer__col { display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: rgba(236, 235, 231, 0.72); }
.footer__col h3 { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper); margin-bottom: 6px; }
.footer__col a { width: fit-content; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) {
  .footer__col a:hover { color: var(--paper); }
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(56px, 7vw, 100px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: rgba(236, 235, 231, 0.6);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: var(--z-toast);
  max-width: min(92vw, 460px);
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 320ms var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Estados iniciales de animación (solo con JS) ---------- */
.js [data-reveal]:not([data-reveal="clip"]) { opacity: 0; transform: translateY(28px); }
.js [data-reveal="clip"] { clip-path: inset(100% 0 0 0); }
.js [data-split] .w__i { transform: translateY(105%); }
.js .hero__word .ch { transform: translateY(105%); }
.js .hero__rule { transform: scaleX(0); }
.js .hero__rule-label { opacity: 0; }
.js .tile { clip-path: inset(100% 0 0 0 round var(--r-media)); }

/* si GSAP no carga, mostrar todo */
.no-motion [data-reveal], .no-motion [data-reveal="clip"], .no-motion [data-split] .w__i,
.no-motion .hero__word .ch, .no-motion .hero__rule, .no-motion .hero__rule-label, .no-motion .tile {
  opacity: 1 !important;
  transform: none !important;
  clip-path: none !important;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .nav__links a { padding: 8px 9px; }
  .status { display: none; }
}

@media (max-width: 1024px) {
  .builder__stage { grid-template-columns: minmax(0, 1fr); }
  .builder__frame { aspect-ratio: 16 / 10; flex: none; }
  .bento { grid-template-rows: repeat(2, clamp(280px, 38vw, 420px)); }
  .booking { grid-template-columns: minmax(0, 1fr); }
  .booking__intro { position: static; }
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__logo { grid-column: 1 / -1; }

  .pricing__detail { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .light__grid { grid-template-columns: minmax(0, 1fr); }
  .light__feature { max-width: 680px; }
  .addons__body { grid-template-columns: minmax(0, 1fr); }
  .addons__preview { display: none; }
  .addon { grid-template-columns: 88px minmax(0, 1fr) auto; align-items: center; }
  .addon__thumb { display: block; width: 88px; height: 88px; object-fit: cover; border-radius: var(--r-media); }
}

@media (max-width: 899px) {
  /* el carrusel deja de anclarse: scroll horizontal nativo con snap */
  .sets__pin {
    display: block;
    height: auto;
    padding: var(--section) 0 0;
    overflow: visible;
  }
  .sets__intro { padding: 0 var(--gutter); margin-bottom: 32px; background: none; }
  .sets__intro::after { display: none; }
  .sets__progress { display: none; }
  .sets__viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .sets__viewport::-webkit-scrollbar { display: none; }
  .sets__track { height: auto; padding: 0 var(--gutter); width: max-content; }
  .set-card { flex-basis: min(86vw, 520px); scroll-snap-align: center; height: min(132vw, 680px); }
  .sets__outro { flex-basis: 72vw; scroll-snap-align: center; }
}

@media (max-width: 860px) {
  :root { --nav-h: 62px; }
  .nav { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
  .nav__toggle { display: grid; }
  .nav__logo svg { height: 32px; }
  .nav__cta { --btn-h: 40px; padding: 0 16px; }

  .hero__mosaic {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: 1fr 1.25fr 1fr;
    gap: 5px;
  }
  .t1 { grid-column: 1 / 4; grid-row: 1; }
  .t2 { grid-column: 4 / 7; grid-row: 1; }
  .t3 { grid-column: 1 / 5; grid-row: 2; }
  .t4 { grid-column: 5 / 7; grid-row: 2; }
  .t6 { grid-column: 1 / 3; grid-row: 3; }
  .t7 { grid-column: 3 / 7; grid-row: 3; }
  .t5, .t8 { display: none; }

  .hero__visual { font-size: 17.4vw; }
  .hero__rule { margin: 0 0 0.2em 0.2em; }
  .hero__rule-label { display: none; }

  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    gap: 28px 12px;
  }
  .cell { min-height: 0; }
  .cell__media { flex: none; aspect-ratio: 4 / 5; }
  .c1 { grid-column: 1 / -1; grid-row: auto; }
  .c1 .cell__media { aspect-ratio: 4 / 4.4; }
  .c2, .c3, .c4 { grid-column: auto; grid-row: auto; }
  .c5 { grid-column: 1 / -1; grid-row: auto; }
  .c5 .cell__media { aspect-ratio: 16 / 11; }
  .cell p { font-size: 14px; }

  .pricing__picker {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(118px, 30%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .pricing__picker::-webkit-scrollbar { display: none; }
  .pricing__picker button { scroll-snap-align: start; min-height: 104px; }
  .light__kit { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .builder__bar { flex-direction: column; align-items: stretch; }
  .chip { height: 38px; padding: 0 15px; }
  .builder__shuffle { align-self: flex-start; }
  .plan__svg { aspect-ratio: 20 / 17; }
  .builder__facts { grid-template-columns: 1fr 1fr; }
  .builder__facts div:first-child { grid-column: 1 / -1; }
  .plan { padding: 8px 8px 64px; }
  .plan__hint { bottom: 14px; font-size: 12.5px; align-items: flex-start; }

  .set-card__body { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .set-card__aside { padding-left: 0; border-left: 0; gap: 14px; }
  .set-card__ideal { display: none; }
  .set-card__thumbs button { width: 48px; height: 48px; }

  .light__kit { grid-template-columns: 1fr; }
  .addon { grid-template-columns: 72px minmax(0, 1fr); align-items: start; }
  .addon__thumb { width: 72px; height: 72px; grid-row: 1 / 3; }
  .addon__price { grid-column: 2; }
  .form__row { grid-template-columns: 1fr; }
  .form .btn--lg { width: 100%; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid .footer__col:last-child { display: none; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  .status i::after { animation: none; }
  .marquee__track { animation: none; }
  .marquee { overflow-x: auto; }
  .btn__label > span, .btn__label::after { transition: none; }
  .menu, .menu.is-open { transition: none; }
  .cell__media img { transition: none; }
  .pl-focus { animation: none; }
}
