/* ============ A&R Sofás ============ */
:root {
  --paper: #f7f3ec;
  --bone: #efe8dd;
  --sand: #e3d8c7;
  --ink: #17140f;
  --ink-2: #2a251e;
  --muted: #6f665a;
  --gold: #a8834a;
  --gold-soft: #c9a46a;
  --gold-text: #82622c; /* dorado para texto chico sobre fondos claros (AA) */
  --line: rgba(23, 20, 15, 0.12);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: italic; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; }
.skip:focus { left: 8px; }

.wrap { width: min(1320px, 100%); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-text); margin: 0 0 18px; font-weight: 500;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; transform: scaleX(var(--line, 1)); transform-origin: left; }
.eyebrow--light { color: var(--gold-soft); }

.sec-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(40px, 6vw, 84px); line-height: 0.98; letter-spacing: -0.01em;
  margin: 0 0 22px;
}
.sec-title em { color: var(--gold); font-weight: 400; }
.sec-lead { color: var(--muted); max-width: 52ch; font-size: 17px; margin: 0; }

/* ============ Buttons ============ */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 28px; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  overflow: hidden; isolation: isolate;
  transition: color 0.5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--gold); transform: translateY(101%); border-radius: inherit;
  transition: transform 0.6s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform 0.5s var(--ease); }
.btn:hover svg { transform: translateY(3px); }
.btn--dark:hover svg { transform: translate(3px, -3px); }
.btn--light { --bg: var(--paper); --fg: var(--ink); }
.btn--light:hover { color: var(--paper); }

/* ============ Nav ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px var(--gutter);
  color: var(--ink);
  transition: background 0.5s var(--ease), color 0.5s var(--ease), padding 0.5s var(--ease), transform 0.6s var(--ease);
}
.nav.is-solid {
  background: rgba(247, 243, 236, 0.86); color: var(--ink);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  padding-block: 14px; border-bottom: 1px solid var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo, .footer__logo { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; }
.nav__logo { letter-spacing: 0.08em; font-size: 24px; }
/* el "&" de la marca: siempre derecho y dorado */
.amp { color: var(--gold-soft) !important; font-style: normal !important; font-family: var(--serif); font-weight: inherit; }
.loader__logo .amp, .nav__logo .amp, .footer__logo .amp { color: var(--gold-soft); }
.nav__logo em, .footer__logo em { font-weight: 400; }
.nav__links { display: flex; gap: 36px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.nav__links a { position: relative; padding-block: 4px; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; padding: 11px 20px; border: 1px solid currentColor; border-radius: 999px; transition: background 0.4s, color 0.4s; }
.nav__cta:hover { background: var(--ink); color: var(--paper); }
.nav.is-solid .nav__cta:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 860px) { .nav__links { display: none; } }

/* ============ Hero (opción 6: video del living con el logo, a pantalla completa) ============ */
.hero--video { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: #0b0806; color: var(--paper); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero--video::after { content: ""; position: absolute; inset: auto 0 0 0; height: 38%; background: linear-gradient(to top, rgba(8, 6, 4, 0.7), rgba(8, 6, 4, 0)); pointer-events: none; }
.hero__bottom { position: absolute; left: 0; right: 0; bottom: clamp(28px, 6svh, 56px); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 26px; padding: 0 var(--gutter); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hero__actions .btn { padding: 16px 24px; letter-spacing: 0.14em; }
.btn--light { --bg: var(--paper); --fg: var(--ink); }
.btn--ghost { --bg: rgba(247, 243, 236, 0.08); --fg: var(--paper); box-shadow: inset 0 0 0 1px rgba(247, 243, 236, 0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--ghost:hover { --bg: var(--paper); color: var(--ink); }
.hero__scroll { width: 26px; height: 42px; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(247, 243, 236, 0.6); display: flex; justify-content: center; padding-top: 8px; }
.hero__scroll span { width: 3px; height: 8px; border-radius: 2px; background: var(--paper); animation: ruedita 1.8s var(--ease) infinite; }
@keyframes ruedita { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* Menú claro mientras está sobre el video */
body[data-hero="oscuro"] .nav:not(.is-solid) { color: var(--paper); }
body[data-hero="oscuro"] .nav:not(.is-solid) .nav__cta:hover { background: var(--paper); color: var(--ink); }
@media (max-width: 480px) {
  .hero__actions { width: 100%; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__scroll { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hero__scroll span { animation: none; } }

/* ============ Catalog ============ */
.catalog { padding: clamp(96px, 14vw, 180px) 0 clamp(80px, 10vw, 140px); background: var(--paper); position: relative; }
.sec-head { display: grid; grid-template-columns: 1fr; gap: 0; margin-bottom: 44px; }
@media (min-width: 960px) {
  .catalog .sec-head { grid-template-columns: 1.3fr 1fr; align-items: end; column-gap: 64px; }
  .catalog .sec-head .eyebrow { grid-column: 1 / -1; }
  .catalog .sec-head .sec-title { margin: 0; }
}

.filters {
  position: sticky; top: 0; z-index: 5;
  transition: top 0.6s var(--ease);
  display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none;
  padding: 14px 0; margin-bottom: 36px;
  background: var(--paper);
  box-shadow: 0 12px 16px -12px rgba(23, 20, 15, 0.08);
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
}
.nav-down .filters { top: 0; }
body:not(.nav-down) .filters { top: var(--nav-h, 64px); }
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 14px; color: var(--ink-2); background: transparent;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.chip sup { font-size: 10px; color: var(--muted); margin-left: 2px; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip.is-active sup { color: var(--gold-soft); }
.subfilters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: -20px 0 32px; padding: 2px 0; }
.subfilters::-webkit-scrollbar { display: none; }
.chip--sub { font-size: 13px; padding-block: 7px; }
.search {
  flex: none; display: flex; align-items: center; gap: 8px;
  padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); background: var(--bone);
  transition: border-color 0.4s var(--ease);
}
.search:focus-within { border-color: var(--ink); color: var(--ink); }
.search input {
  width: 150px; padding: 11px 0; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 14px; color: var(--ink);
}
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { filter: grayscale(1) brightness(0.4); opacity: 0.7; cursor: pointer; }
.grid-empty { margin: 8px 0 0; padding: 32px 0; text-align: center; color: var(--muted); }

.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px 28px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px 32px; } }

.card { display: flex; flex-direction: column; min-width: 0; }
.card.is-hidden { display: none; }
.card__media {
  position: relative; overflow: hidden; border-radius: var(--radius); background: var(--sand);
  aspect-ratio: 4 / 3.6;
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04); transition: transform 1.2s var(--ease), filter 1.2s var(--ease);
}
.card:hover .card__media img { transform: scale(1.1); }
.card__tag {
  position: absolute; left: 14px; top: 14px; z-index: 1;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(247, 243, 236, 0.88); color: var(--ink);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.card__num { position: absolute; right: 16px; bottom: 10px; z-index: 1; font-family: var(--serif); font-size: 44px; line-height: 1; color: rgba(247, 243, 236, 0.92); text-shadow: 0 2px 20px rgba(0,0,0,0.35); }
.card__body { padding-top: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__row { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; }
.card__name { font-family: var(--serif); font-weight: 500; font-size: 36px; line-height: 1; margin: 0; }
.card__price { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text); white-space: nowrap; }
.card__desc { margin: 0; color: var(--muted); font-size: 15px; }
.card__specs { font-size: 13px; color: var(--ink-2); padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: auto; }
.card__btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 12px 18px; border-radius: 999px; border: 1px solid var(--ink);
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
  white-space: nowrap;
}
.card__btn:hover { background: var(--ink); color: var(--paper); }
.card__btn i { font-style: normal; transition: transform 0.4s var(--ease); }
.card__btn:hover i { transform: translateX(4px); }

/* ============ About ============ */
.about { background: var(--bone); padding: clamp(96px, 12vw, 170px) 0 0; overflow: hidden; }
.about__grid { display: grid; gap: 56px; }
@media (min-width: 960px) { .about__grid { grid-template-columns: 1fr 1.05fr; gap: 88px; align-items: center; } }
.about__media { margin: 0; }
.about__img { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; }
.about__img img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.about__media figcaption { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 14px; }
.about__text > p:not(.eyebrow) { font-size: 18px; color: var(--ink-2); max-width: 46ch; margin: 0 0 36px; }
.pillars { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pillars li {
  display: grid; grid-template-columns: 44px 150px 1fr; align-items: baseline; gap: 12px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
  transition: transform 0.5s var(--ease);
}
.pillars li:hover { transform: translateX(10px); }
.pillars span { font-size: 12px; color: var(--gold-text); letter-spacing: 0.1em; }
.pillars b { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1; }
.pillars small { color: var(--muted); font-size: 14px; }
@media (max-width: 520px) {
  .pillars li { grid-template-columns: 36px 1fr; }
  .pillars small { grid-column: 2; }
}
.marquee { margin-top: clamp(80px, 10vw, 140px); border-block: 1px solid var(--line); padding: 26px 0; overflow: hidden; }
.marquee__inner { display: flex; gap: 42px; width: max-content; animation: marquee 38s linear infinite; font-family: var(--serif); font-size: clamp(30px, 4vw, 56px); font-style: italic; white-space: nowrap; align-items: center; }
.marquee i { font-style: normal; color: var(--gold); font-size: 0.5em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Reseñas ============ */
.reviews { padding: clamp(96px, 12vw, 170px) 0 clamp(72px, 9vw, 120px); background: var(--paper); border-top: 1px solid var(--line); }
@media (min-width: 960px) {
  .reviews__head { grid-template-columns: 1.3fr 1fr; align-items: end; column-gap: 64px; }
  .reviews__head .eyebrow { grid-column: 1 / -1; }
  .reviews__head .sec-title { margin: 0; }
}
.reviews__carousel { margin-bottom: 64px; }
.reviews__list { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; padding-bottom: 4px; }
.reviews__list::-webkit-scrollbar { display: none; }
.reviews__list > .review { flex: 0 0 86%; scroll-snap-align: start; }
@media (min-width: 720px) { .reviews__list > .review { flex-basis: calc((100% - 24px) / 2); } }
@media (min-width: 1100px) { .reviews__list { gap: 32px; } .reviews__list > .review { flex-basis: calc((100% - 64px) / 3); } }
.reviews__nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }
.reviews__nav[hidden] { display: none; }
.reviews__arrow { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 18px; display: grid; place-items: center; cursor: pointer; transition: background 0.3s, color 0.3s, opacity 0.3s; }
.reviews__arrow:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.reviews__arrow:disabled { opacity: 0.3; cursor: default; }
.review { display: flex; flex-direction: column; gap: 18px; padding: 32px 30px 28px; background: #fffdf9; border: 1px solid var(--line); border-radius: var(--radius); }
.review__stars { color: var(--gold); letter-spacing: 0.18em; font-size: 15px; }
.review__stars span { color: var(--sand); }
.review__text { font-family: var(--serif); font-size: 22px; line-height: 1.35; color: var(--ink); margin: 0; }
.review__who { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-2); }
.review__who small { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-text); }

.review-form { display: grid; gap: 32px; padding: clamp(28px, 4vw, 56px); background: var(--ink); color: var(--paper); border-radius: var(--radius); }
@media (min-width: 960px) { .review-form { grid-template-columns: 0.8fr 1.2fr; gap: 64px; } }
.review-form__intro h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.05; margin: 0 0 16px; }
.review-form__intro p { color: rgba(247, 243, 236, 0.72); font-size: 16px; max-width: 38ch; margin: 0; }
.review-form__fields { display: grid; gap: 18px; }
@media (min-width: 640px) { .review-form__fields { grid-template-columns: 1fr 1fr; } .review-form__fields .stars-input, .review-form__fields .field--wide, .review-form__error { grid-column: 1 / -1; } }
.review-form .btn { justify-self: start; --bg: var(--paper); --fg: var(--ink); }
.review-form .btn:hover { color: var(--paper); }
.field { display: grid; gap: 8px; }
.field span { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); }
.field small { text-transform: none; letter-spacing: 0; color: rgba(247, 243, 236, 0.6); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--paper); background: rgba(247, 243, 236, 0.06);
  border: 1px solid rgba(247, 243, 236, 0.22); border-radius: var(--radius); padding: 13px 14px; transition: border-color 0.3s, background 0.3s;
}
.field select option { color: var(--ink); }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-soft); background: rgba(247, 243, 236, 0.1); }
.stars-input { border: 0; padding: 0; margin: 0; min-width: 0; }
.stars-input__row { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.stars-input legend { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); padding: 0; margin-bottom: 8px; }
.stars-input input { position: absolute; opacity: 0; pointer-events: none; }
.stars-input label { font-size: 30px; line-height: 1; color: rgba(247, 243, 236, 0.25); cursor: pointer; transition: color 0.2s, transform 0.2s; padding: 2px; }
.stars-input input:checked ~ label { color: var(--gold-soft); }
.stars-input:hover input ~ label { color: rgba(247, 243, 236, 0.25); }
.stars-input:hover label:hover, .stars-input:hover label:hover ~ label { color: var(--gold-soft); }
.stars-input input:focus-visible + label { outline: 2px solid var(--gold-soft); outline-offset: 2px; border-radius: 3px; }
.review-form__error { margin: 0; color: #f2b8a8; font-size: 14px; } .review-form__ok { margin: 0; color: var(--gold-soft); font-size: 15px; }
.review-form__ok, .review-form__error { grid-column: 1 / -1; }
.review-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.review-form .btn[disabled] { opacity: 0.6; pointer-events: none; }
.review__date { font-size: 12px; color: var(--muted); }

/* ============ Location ============ */
.location { padding: clamp(96px, 12vw, 170px) 0; background: var(--paper); }
.location__grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .location__grid { grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center; } }
.location__text > p:not(.eyebrow) { color: var(--muted); font-size: 17px; max-width: 44ch; margin: 0 0 30px; }
.location__meta { margin: 0 0 36px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.location__meta div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.location__meta dt { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); padding-top: 3px; }
.location__meta dd { margin: 0; font-size: 15px; }
.location__map { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 4; background: var(--sand); box-shadow: 0 40px 80px -40px rgba(23, 20, 15, 0.35); }
.location__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) sepia(0.25) contrast(1.05) brightness(1.02); }
.location__pin {
  position: absolute; left: 18px; bottom: 18px;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: 999px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; pointer-events: none;
}
.location__name { font-weight: inherit; }
.location__pin > span:first-child { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-soft); box-shadow: 0 0 0 0 rgba(201,164,106,.7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 12px rgba(201,164,106,0); } 100% { box-shadow: 0 0 0 0 rgba(201,164,106,0); } }

/* ============ Contact ============ */
.contact { background: var(--ink); color: var(--paper); padding: clamp(96px, 12vw, 170px) 0; position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.18;
  background: url("img/hero-night.webp") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 50%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 50%, transparent);
}
.contact .wrap { position: relative; }
.contact__title { font-family: var(--serif); font-weight: 500; font-size: clamp(52px, 9vw, 140px); line-height: 0.92; margin: 0 0 20px; letter-spacing: -0.015em; }
.contact__title em { color: var(--gold-soft); font-weight: 400; }
.contact__lead { color: rgba(247, 243, 236, 0.72); font-size: 17px; margin: 0 0 22px; }
.topics { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.topics button {
  padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(247, 243, 236, 0.25);
  font-size: 14px; color: rgba(247, 243, 236, 0.85);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.topics button:hover { border-color: var(--paper); }
.topics button.is-active { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--ink); }
.contact__ctas { display: grid; gap: 16px; }
@media (min-width: 860px) { .contact__ctas { grid-template-columns: 1fr 1fr; } }
.big-cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; gap: 22px;
  padding: clamp(26px, 3.4vw, 42px) clamp(24px, 3vw, 40px);
  border-radius: 20px; border: 1px solid rgba(247, 243, 236, 0.18);
  background: rgba(247, 243, 236, 0.04);
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.big-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateY(101%); transition: transform 0.7s var(--ease); }
.big-cta--wa::before { background: #1f7a4d; }
.big-cta--ig::before { background: linear-gradient(120deg, #6b3fa0, #c13584 55%, #e1306c 75%, #f2a65a); }
.big-cta:hover::before { transform: translateY(0); }
.big-cta:hover { border-color: transparent; }
.big-cta svg { width: clamp(40px, 4vw, 54px); height: auto; fill: currentColor; flex: none; }
.big-cta__label { display: grid; font-family: var(--serif); font-size: clamp(38px, 4.4vw, 64px); line-height: 1; }
.big-cta__label small { font-family: var(--sans); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(247, 243, 236, 0.6); margin-bottom: 8px; }
.big-cta__arrow { margin-left: auto; font-size: 30px; transition: transform 0.5s var(--ease); }
.big-cta:hover .big-cta__arrow { transform: translateX(8px); }

/* ============ Footer ============ */
.footer { background: var(--ink); color: rgba(247, 243, 236, 0.75); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(247, 243, 236, 0.1); }
.footer__grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 860px) { .footer__grid { grid-template-columns: 1fr auto 1fr; } .footer__legal { text-align: right; } }
.footer__logo { color: var(--paper); font-size: 30px; }
.footer__links { display: flex; gap: 28px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; flex-wrap: wrap; }
.footer__links a:hover { color: var(--gold-soft); }
.footer__legal { margin: 0; font-size: 13px; }
.footer__credit { display: block; margin-top: 4px; font-size: 12px; opacity: .7; }

/* ============ FAB ============ */
.fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: #1f7a4d; color: #fff;
  box-shadow: 0 16px 34px -10px rgba(0, 0, 0, 0.45);
  transform: scale(0); transition: transform 0.5s var(--ease);
}
.fab svg { width: 28px; fill: currentColor; }
.fab.is-visible { transform: scale(1); }
@media (min-width: 861px) { .fab { display: none; } }


/* ============ Loader ============ */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  transition: clip-path 1.1s var(--ease), visibility 0s 1.1s;
  clip-path: inset(0 0 0 0);
}
.loader.is-done { clip-path: inset(0 0 100% 0); visibility: hidden; }
.loader__inner { width: min(320px, 70vw); text-align: center; }
.loader__logo { font-family: var(--serif); font-size: clamp(44px, 8vw, 72px); margin: 0 0 26px; font-weight: 500; }
.loader__logo span { color: var(--gold-soft); font-style: italic; font-weight: 400; }
.loader__logo em { font-weight: 400; }
.loader__bar { height: 1px; background: rgba(247, 243, 236, 0.18); position: relative; overflow: hidden; }
.loader__bar i { position: absolute; inset: 0; background: var(--gold-soft); transform: scaleX(0); transform-origin: left; transition: transform 0.3s linear; }
.loader__pct { margin: 14px 0 0; font-size: 12px; letter-spacing: 0.24em; color: rgba(247, 243, 236, 0.7); font-variant-numeric: tabular-nums; }

/* ============ Card → ficha ============ */
.card__media { cursor: pointer; }
.card__open {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 16px; background: linear-gradient(0deg, rgba(23, 20, 15, 0.45), rgba(23, 20, 15, 0) 45%);
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.card__open span {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
  color: var(--ink); background: var(--paper); padding: 10px 16px; border-radius: 999px;
  transform: translateY(8px); transition: transform 0.5s var(--ease);
}
.card:hover .card__open, .card__open:focus-visible { opacity: 1; }
.card:hover .card__open span { transform: none; }
@media (hover: none) {
  .card__open { opacity: 1; background: none; }
  .card__open span { transform: none; padding: 8px 13px; }
}

/* ============ Ficha (dialog) ============ */
.sheet {
  width: min(1240px, 100vw); max-width: 100vw; height: min(820px, 100dvh); max-height: 100dvh;
  padding: 0; border: 0; border-radius: 6px; background: var(--paper); color: var(--ink);
  display: none; grid-template-columns: 1.6fr 1fr; overflow: hidden;
}
.sheet[open] { display: grid; animation: sheetIn 0.7s var(--ease); }
.sheet::backdrop { background: rgba(14, 12, 9, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn 0.5s var(--ease); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(40px) scale(0.98); } }
@keyframes fadeIn { from { opacity: 0; } }
.sheet__media { position: relative; background: var(--ink); min-height: 0; display: grid; grid-template-rows: 1fr auto; }
.sheet__stage { position: relative; overflow: hidden; min-height: 0; }
.sheet__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: scale(1.04); transition: opacity 0.7s var(--ease), transform 1.4s var(--ease); }
.sheet__stage img.is-on { opacity: 1; transform: none; }
.sheet__thumbs { display: flex; gap: 8px; padding: 10px; background: var(--ink); overflow-x: auto; scrollbar-width: none; }
.sheet__thumbs button { flex: none; width: 72px; height: 54px; border-radius: 3px; overflow: hidden; opacity: 0.5; outline: 1px solid transparent; transition: opacity 0.3s, outline-color 0.3s; }
.sheet__thumbs button.is-on { opacity: 1; outline-color: var(--gold-soft); }
.sheet__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.sheet__nav { position: absolute; top: calc(50% - 40px); width: 46px; height: 46px; border-radius: 50%; background: rgba(247, 243, 236, 0.9); color: var(--ink); font-size: 18px; display: grid; place-items: center; transition: transform 0.4s var(--ease); }
.sheet__nav:hover { transform: scale(1.08); }
.sheet__nav--prev { left: 14px; }
.sheet__nav--next { right: 14px; }
.sheet__nav[hidden] { display: none; }
.sheet__info { position: relative; padding: clamp(28px, 4vw, 56px); overflow-y: auto; display: flex; flex-direction: column; }
.sheet__close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); font-size: 15px; transition: background 0.3s, color 0.3s; }
.sheet__close:hover { background: var(--ink); color: var(--paper); }
.sheet__name { font-family: var(--serif); font-weight: 500; font-size: clamp(48px, 6vw, 84px); line-height: 0.95; margin: 0 0 18px; }
.sheet__desc { color: var(--muted); font-size: 17px; margin: 0 0 28px; }
.sheet__label { font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 12px; }
.sheet__carac { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.sheet__carac li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 15px; line-height: 1.45; }
.sheet__carac svg { width: 22px; height: 22px; fill: none; stroke: var(--gold-text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.sheet__carac b { font-weight: 600; margin-right: 6px; }
.sheet__carac b::after { content: ":"; }
.sheet__specs { margin: 0 0 32px; border-top: 1px solid var(--line); }
.sheet__specs div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sheet__specs div[hidden] { display: none; }
.sheet__specs dt { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text); padding-top: 2px; }
.sheet__specs dd { margin: 0; font-size: 15px; }
.sheet__cta { align-self: flex-start; }
.sheet__pager { margin-top: auto; padding-top: 32px; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.sheet__pager button:hover { color: var(--ink); }
@media (max-width: 860px) {
  .sheet { grid-template-columns: 1fr; grid-template-rows: 52svh 1fr; height: 100dvh; border-radius: 0; }
  .sheet__info { padding: 24px 16px 32px; overflow: visible; }
  .sheet { overflow-y: auto; }
  .sheet__close { position: fixed; top: 12px; right: 12px; background: var(--paper); z-index: 3; }
  .sheet__nav { top: calc(50% - 30px); width: 40px; height: 40px; }
}

/* ============ Diseñá tu sofá ============ */
.studio { background: var(--bone); padding: clamp(96px, 12vw, 170px) 0; }
.studio__grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .studio__grid { grid-template-columns: 0.85fr 1.3fr; gap: 72px; align-items: center; } }
.studio__group { margin-top: 32px; }
.studio__label { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 12px; }
.studio__label b { color: var(--ink); font-weight: 500; letter-spacing: 0.02em; margin-left: 8px; text-transform: none; font-family: var(--serif); font-size: 19px; font-style: italic; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(23, 20, 15, 0.06); }
.seg button { padding: 11px 18px; border-radius: 999px; font-size: 14px; transition: background 0.4s var(--ease), color 0.4s var(--ease); }
.seg button.is-active { background: var(--ink); color: var(--paper); }
.swatches { display: grid; grid-template-columns: repeat(5, 44px); gap: 14px; }
.swatch { width: 44px; height: 44px; border-radius: 50%; position: relative; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); transition: transform 0.4s var(--ease); }
.swatch::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--ink); opacity: 0; transform: scale(0.85); transition: opacity 0.3s, transform 0.4s var(--ease); }
.swatch:hover { transform: scale(1.08); }
.swatch[aria-checked="true"]::after { opacity: 1; transform: none; }
.studio .btn { margin-top: 36px; }
@media (max-width: 480px) { .studio .btn { white-space: nowrap; letter-spacing: 0.08em; padding-left: 24px; padding-right: 24px; } }
.studio__stage { margin: 0; }
.studio__stage canvas { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--sand); box-shadow: 0 50px 90px -50px rgba(23, 20, 15, 0.45); transition: opacity 0.35s; }
.studio__stage canvas.is-loading { opacity: 0.45; }
.model-pick { position: relative; max-width: 420px; }
.model-pick__input { width: 100%; height: 54px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-family: var(--serif); font-size: 22px; color: var(--ink); outline: none; transition: border-color 0.3s, box-shadow 0.3s; }
.model-pick__input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(168, 131, 74, 0.15); }
.model-pick__hint { display: block; min-height: 18px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.model-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.model-chips button { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: 13px; color: var(--ink-2); cursor: pointer; transition: border-color 0.25s, background 0.25s, color 0.25s; }
.model-chips button:hover { border-color: var(--gold); }
.model-chips button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.studio__stage figcaption { display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.studio__stage figcaption small { color: var(--muted); font-size: 12px; }

/* ============ Del taller a tu casa ============ */
.works { background: var(--ink); color: var(--paper); overflow: hidden; }
.works__pin { padding: clamp(80px, 10vw, 120px) 0; display: flex; flex-direction: column; gap: clamp(32px, 5vw, 56px); }
.works__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.works__head .sec-title em { color: var(--gold-soft); }
.works__lead { color: rgba(247, 243, 236, 0.72); max-width: 48ch; margin: 0; font-size: 17px; }
.works__nav { display: flex; gap: 10px; flex: none; }
.works__arrow { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(247, 243, 236, 0.3); background: transparent; color: var(--paper); font-size: 20px; cursor: pointer; transition: background 0.3s, color 0.3s, opacity 0.3s, border-color 0.3s; }
.works__arrow:hover:not(:disabled) { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.works__arrow:disabled { opacity: 0.3; cursor: default; }
.works__arrow:focus-visible, .works__track:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 4px; }
.works__track { display: flex; gap: clamp(14px, 2vw, 24px); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.works__track::-webkit-scrollbar { display: none; }
.works__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.works__track.is-dragging img { pointer-events: none; }
.work { margin: 0; flex: none; width: clamp(280px, 30vw, 420px); scroll-snap-align: start; }
.work__img { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--ink-2); }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); -webkit-user-drag: none; user-select: none; }
.work:hover img { transform: scale(1.05); }
.work figcaption { margin-top: 12px; font-size: 13px; color: rgba(247, 243, 236, 0.75); display: flex; gap: 10px; }
.work figcaption span { color: var(--gold-soft); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  .works__nav { display: none; }
  .work { width: 78vw; }
}

/* ============ Reveal base (JS mejora) ============ */
.js .reveal { opacity: 0; transform: translateY(28px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Diseñá tu sofá en celular: la vista previa va justo después de elegir el modelo */
@media (max-width: 959px) {
  .studio__grid { display: flex; flex-direction: column; gap: 0; }
  .studio__text { display: contents; }
  .studio__text > * { order: 1; }
  .studio__text > .studio__group:has(#modelInput) { order: 1; }
  .studio__stage { order: 2; margin-top: 24px; }
  .studio__text > .studio__group:not(:has(#modelInput)), .studio__text > .btn { order: 3; }
}

/* Títulos partidos en palabras (reveal) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.06em 0.14em; margin: 0 -0.06em -0.14em; }
.wi { display: inline-block; transform-origin: 0 100%; }
.nobr { white-space: nowrap; }

@media (min-width: 960px) { .studio .sec-title { font-size: clamp(56px, 5vw, 72px); white-space: nowrap; } }
.footer__credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
