/* ==========================================================
   NIVEL 99 · Tapetes personalizados
   Paleta: espresso + crema + rojo tomate (del logo)
   Tipos: Bricolage Grotesque (display) · Inter (texto) · DM Mono (etiquetas)
   ========================================================== */

:root {
  --bg: #120e0b;
  --bg-2: #1a1410;
  --surface: #221a15;
  --surface-2: #2b211b;
  --ink: #f2ebdb;
  --ink-soft: rgba(242, 235, 219, 0.72);
  --ink-mute: rgba(242, 235, 219, 0.5);
  --line: rgba(242, 235, 219, 0.12);
  --accent: #e6301a;
  --accent-hot: #ff4a2e;
  --accent-deep: #9e1f10;
  /* Rojo para superficies con texto encima (botones, etiquetas): crema sobre este rojo ≥ 4.5:1 */
  --accent-ui: #c4260f;
  --accent-ui-deep: #a81e0b;
  /* Rojo para texto pequeño sobre el fondo oscuro: ≥ 4.5:1 */
  --accent-text: #ff6a4d;
  --sand: #cdbb98;
  --cream: #f2ebdb;
  --cream-2: #e9dfca;
  --espresso: #120e0b;

  --f-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --f-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --f-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius: 22px;
  --radius-sm: 12px;
  --nav-h: 76px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
::selection { background: var(--accent-ui); color: var(--cream); }
p, li, dd, figcaption { text-wrap: pretty; }

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

.section { padding-block: clamp(80px, 11vw, 150px); position: relative; }

.mono { font-family: var(--f-mono); letter-spacing: 0.04em; }
.muted { color: var(--ink-mute); font-size: 0.92rem; }
.accent { color: var(--accent); }

.h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
  text-wrap: balance;
}

.lead {
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 28px;
  font-weight: 300;
}
.lead strong { color: var(--ink); font-weight: 600; }

.section-head { margin-bottom: clamp(40px, 6vw, 72px); max-width: 780px; }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head-center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background-color 0.3s, color 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.btn .arrow { transition: transform 0.35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }

.btn-primary {
  color: var(--cream);
  background: linear-gradient(110deg, var(--accent-ui) 0%, #c9280f 45%, var(--accent-ui) 70%, var(--accent-ui-deep) 100%);
  background-size: 220% 100%;
  background-position: 0% 50%;
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  animation: sheen 6s ease-in-out infinite;
}
.btn-primary:hover { box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
@keyframes sheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.btn-ghost {
  color: var(--ink);
  border-color: rgba(242, 235, 219, 0.3);
  background: rgba(18, 14, 11, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(242, 235, 219, 0.08); }

.btn-ghost-dark {
  color: var(--espresso);
  border-color: rgba(18, 14, 11, 0.25);
  background: transparent;
}
.btn-ghost-dark:hover { border-color: var(--espresso); background: rgba(18, 14, 11, 0.05); }

.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn-lg { padding: 17px 30px; font-size: 1.04rem; }

/* ---------- Splash ---------- */
.splash {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
  animation: splashSafety 0.01s 4.5s forwards;
}
.splash img { width: 140px; height: auto; animation: splashPop 1.1s var(--ease-out) both; }
.splash.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes splashSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@keyframes splashPop {
  0% { transform: scale(0.7) rotate(-8deg); opacity: 0; }
  60% { transform: scale(1.06) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
  padding-inline: var(--gutter);
  transition: background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(18, 14, 11, 0.82);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.nav-logo img { width: 52px; height: 52px; object-fit: contain; transition: transform 0.5s var(--ease-out); }
.nav-logo:hover img { transform: rotate(-8deg) scale(1.06); }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a {
  text-decoration: none; font-size: 0.94rem; color: var(--ink-soft);
  position: relative; transition: color 0.25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-burger {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; cursor: pointer;
  position: relative;
}
.nav-burger span {
  position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink);
  transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out);
}
.nav-burger span:first-child { top: 17px; }
.nav-burger span:last-child { top: 25px; }
.nav-burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
  background: rgba(18, 14, 11, 0.97);
  display: flex; flex-direction: column; gap: 8px;
  padding: 32px var(--gutter);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) {
  font-family: var(--f-display); font-weight: 700; font-size: 2rem; letter-spacing: -0.03em;
  text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 24px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 90px;
  isolation: isolate;
}
.hero-media {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background: #2a1a10 url("assets/img/hero-rug.jpg") 22% 50% / cover no-repeat;
}
.hero-video {
  width: 100%; height: 100%; object-fit: cover;
  object-position: 22% 50%;
  transform: scale(1.04);
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 14, 11, 0.94) 0%, rgba(18, 14, 11, 0.78) 34%, rgba(18, 14, 11, 0.15) 64%, rgba(18, 14, 11, 0.05) 100%),
    linear-gradient(0deg, rgba(18, 14, 11, 1) 0%, rgba(18, 14, 11, 0) 26%);
}
.hero-inner { position: relative; }

.hero-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(3.1rem, 9vw, 7.6rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0 0 28px;
  max-width: 11ch;
  text-wrap: balance;
}
.hero-sub {
  font-size: clamp(1.04rem, 1.5vw, 1.24rem);
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0 0 36px;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust {
  list-style: none; padding: 0; margin: 44px 0 0;
  display: flex; flex-wrap: wrap; gap: 12px 30px;
  font-size: 0.92rem; color: var(--ink-soft);
}
.hero-trust li { display: flex; align-items: center; gap: 10px; }
.hero-trust .mono { color: var(--accent-text); font-size: 0.78rem; }
.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--ink-mute); text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.hero-scroll span { animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--accent);
  color: var(--cream);
  overflow: hidden;
  padding-block: 18px;
  transform: rotate(-1.2deg);
  margin-block: -10px;
  position: relative; z-index: 2;
  box-shadow: 0 14px 28px -14px rgba(0, 0, 0, 0.6);
}
.marquee-track {
  display: flex; align-items: center; gap: 34px;
  width: max-content;
  animation: marquee 32s linear infinite;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  letter-spacing: -0.02em; text-transform: uppercase;
}
.marquee-track i { font-style: normal; font-size: 0.8em; opacity: 0.85; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 3D piece ---------- */
.piece { background: radial-gradient(80% 60% at 75% 50%, rgba(230, 48, 26, 0.08), transparent 70%), var(--bg); }
.piece-grid {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: center;
}
.specs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0 0 34px;
  border-top: 1px solid var(--line);
}
.specs div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.specs div:nth-child(odd) { padding-right: 16px; }
.specs dt { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--sand); margin-bottom: 4px; }
.specs dd { margin: 0; font-size: 0.98rem; }

.piece-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  background:
    radial-gradient(60% 55% at 50% 45%, rgba(242, 235, 219, 0.07), transparent 70%),
    linear-gradient(160deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
}
.piece-stage:active { cursor: grabbing; }
.stage-glow {
  position: absolute; width: 60%; aspect-ratio: 1; left: 20%; top: 20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 48, 26, 0.45), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
  transition: transform 0.6s var(--ease-out);
}
.stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-fallback {
  position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain;
  mix-blend-mode: normal; border-radius: 12px;
  transition: opacity 0.6s;
}
.piece-stage.is-3d .stage-fallback { opacity: 0; pointer-events: none; }
.stage-hint {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-soft);
  display: flex; gap: 8px; align-items: center; margin: 0;
  padding: 8px 14px; border-radius: 999px; background: rgba(18, 14, 11, 0.6); border: 1px solid var(--line);
  pointer-events: none; white-space: nowrap;
}
.hint-ico { display: inline-block; animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(-360deg); } }

/* ---------- Texture ---------- */
.texture { background: var(--bg-2); }
.texture-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.texture-media { margin: 0; position: relative; }
.texture-media video, .texture-media img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius);
}
.texture-media figcaption {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  font-size: 0.78rem; color: var(--ink-soft);
  background: rgba(18, 14, 11, 0.6); padding: 8px 12px; border-radius: 10px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  width: fit-content;
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 12px; }
.stat {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px 18px; background: rgba(242, 235, 219, 0.02);
}
.stat strong {
  display: block; font-family: var(--f-display); font-weight: 800;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem); letter-spacing: -0.04em; line-height: 1; color: var(--accent);
  margin-bottom: 8px;
}
.stat span { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.4; display: block; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  gap: 18px;
}
.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 4 / 5;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
  will-change: transform;
}
.card-tall { grid-row: span 2; aspect-ratio: auto; }
.card-wide { grid-column: span 2; aspect-ratio: auto; }
.card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.card-tall { background: radial-gradient(70% 60% at 50% 40%, #3a2a20 0%, var(--surface) 70%); }
.card-tall img { object-fit: contain; padding: 12% 10% 34%; filter: drop-shadow(0 30px 30px rgba(0,0,0,.55)); }
.card:hover img { transform: scale(1.06); }
.card:hover { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.card-meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 60px 22px 22px;
  background: linear-gradient(0deg, rgba(18, 14, 11, 0.95) 0%, rgba(18, 14, 11, 0.7) 50%, transparent 100%);
}
.card-meta h3 {
  font-family: var(--f-display); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.03em;
  margin: 8px 0 2px; line-height: 1.1;
}
.card-meta p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.card-meta p b { color: var(--ink); }
.tag {
  display: inline-block; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; background: var(--accent-ui); color: var(--cream);
}
.card-link {
  display: inline-block; margin-top: 12px;
  font-weight: 600; font-size: 0.92rem; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--accent); padding-bottom: 2px;
  opacity: 0.85; transition: opacity 0.3s, color 0.3s;
}
.card-link:hover { opacity: 1; color: var(--accent-hot); }
.card-cta {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  padding: 26px; text-decoration: none; color: var(--ink);
  background:
    radial-gradient(90% 70% at 80% 10%, rgba(196, 38, 15, 0.22), transparent 70%),
    var(--surface);
  border: 1.5px dashed rgba(242, 235, 219, 0.28);
}
.card-cta:hover { border-color: var(--accent); }
.card-cta strong { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.8rem, 2.6vw, 2.4rem); letter-spacing: -0.04em; line-height: 1; }
.card-cta .tag { align-self: flex-start; }
.card-cta-sub { color: var(--ink-soft); font-size: 0.94rem; }
.card-cta-go { font-weight: 600; color: var(--accent-hot); }
.card-cta-plus {
  position: absolute; top: 22px; right: 22px; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; font-size: 2rem; font-weight: 300;
  background: var(--accent); color: var(--cream);
  transition: transform 0.5s var(--ease-out);
}
.card-cta:hover .card-cta-plus { transform: rotate(90deg) scale(1.08); }
.section-cta { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }

/* ---------- Process ---------- */
.process { background: var(--bg); }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  counter-reset: s;
}
.step { position: relative; }
.step-media {
  aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; margin-bottom: 22px;
  background: var(--surface);
}
.step-media img, .step-media video { width: 100%; height: 100%; object-fit: cover; }
.step-media-cream { background: var(--cream); display: grid; place-items: center; }
.step-media-cream img { width: 70%; height: 70%; object-fit: contain; }
.step-n { font-size: 0.78rem; color: var(--accent-text); letter-spacing: 0.14em; }
.step h3 {
  font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.03em;
  margin: 8px 0 8px; line-height: 1.15;
}
.step p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- Workshop band ---------- */
.workshop {
  position: relative; min-height: 88vh; display: flex; align-items: flex-end;
  padding-block: clamp(80px, 10vw, 140px);
  isolation: isolate; overflow: hidden;
}
.workshop-media { position: absolute; inset: 0; z-index: -1; }
.workshop-media video { width: 100%; height: 100%; object-fit: cover; }
.workshop-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 14, 11, 0.85) 0%, rgba(18, 14, 11, 0.2) 65%),
    linear-gradient(0deg, rgba(18, 14, 11, 0.96) 0%, rgba(18, 14, 11, 0.5) 45%, rgba(18, 14, 11, 0.2) 100%);
}
.workshop-copy .h2 { max-width: 16ch; }

/* ---------- Cream theme (configurator + pricing) ---------- */
.theme-cream, .pricing {
  background: var(--cream);
  color: var(--espresso);
  --ink: var(--espresso);
  --ink-soft: rgba(18, 14, 11, 0.72);
  --ink-mute: rgba(18, 14, 11, 0.64);
  --line: rgba(18, 14, 11, 0.12);
}
.pricing { background: var(--cream-2); }

/* ---------- Configurator ---------- */
.config-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.config-intro { position: sticky; top: calc(var(--nav-h) + 24px); }
.config-preview {
  margin-top: 12px; aspect-ratio: 4 / 3; border-radius: var(--radius);
  background:
    linear-gradient(160deg, #c7a47a 0%, #8b6440 100%);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.preview-rug {
  width: 58%; aspect-ratio: 1;
  display: grid; place-items: center;
  background: var(--cream);
  box-shadow: 0 24px 40px -18px rgba(18, 14, 11, 0.6), inset 0 0 0 10px rgba(230, 48, 26, 0.95), inset 0 0 0 18px var(--cream);
  transition: border-radius 0.6s var(--ease-out), transform 0.6s var(--ease-out), clip-path 0.6s var(--ease-out);
  border-radius: 18%;
  transform: perspective(800px) rotateX(38deg) scale(var(--rug-scale, 1));
}
.preview-rug img { width: 72%; height: 72%; object-fit: contain; }
.preview-size {
  position: absolute; bottom: 14px; left: 14px; margin: 0;
  font-size: 0.8rem; color: var(--cream); background: rgba(18, 14, 11, 0.7);
  padding: 6px 12px; border-radius: 999px;
}

.config-form {
  background: #fbf7ee;
  border: 1px solid rgba(18, 14, 11, 0.1);
  border-radius: 28px;
  padding: clamp(22px, 3vw, 40px);
  box-shadow: 0 40px 80px -50px rgba(18, 14, 11, 0.5);
}
.config-form fieldset { border: 0; padding: 0; margin: 0 0 26px; }
.config-form legend {
  font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent-deep);
  margin-bottom: 12px; padding: 0;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 11px 18px; border-radius: 999px;
  border: 1px solid rgba(18, 14, 11, 0.2); font-size: 0.94rem; font-weight: 500;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease-out);
  user-select: none;
}
.chip:hover span { border-color: var(--espresso); }
.chip input:checked + span { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 0.88rem; font-weight: 500; }
.field input, .field textarea {
  font: inherit; font-size: 0.98rem; color: var(--espresso);
  padding: 13px 16px; border-radius: 14px;
  border: 1px solid rgba(18, 14, 11, 0.2); background: #fff;
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(230, 48, 26, 0.12); }
.field-note { font-size: 0.84rem; color: var(--ink-mute); margin: 0; }

.config-total {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px; border-radius: 20px; background: var(--espresso); color: var(--cream);
}
.config-total .mono { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--sand); display: block; }
.config-total strong {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3rem);
  letter-spacing: -0.04em; line-height: 1; display: block; margin: 4px 0;
}
.config-total strong.bump { animation: bump 0.45s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.08); color: var(--accent-hot); } }
.config-total small { color: rgba(242, 235, 219, 0.65); font-size: 0.84rem; }
.config-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.config-alt { font-size: 0.86rem; color: rgba(242, 235, 219, 0.7); }
.config-alt:hover { color: var(--cream); }
.fine { font-size: 0.8rem; color: var(--ink-mute); margin: 14px 0 0; }

/* ---------- Lifestyle ---------- */
.lifestyle {
  position: relative; min-height: 90vh; display: flex; align-items: center;
  overflow: hidden; isolation: isolate;
}
.lifestyle video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.lifestyle-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18,14,11,0.85) 0%, rgba(18,14,11,0.3) 60%, rgba(18,14,11,0.2) 100%); }
.lifestyle-quote { margin: 0 auto; }
.lifestyle-quote p {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(2.4rem, 6.5vw, 5.6rem); line-height: 0.98; letter-spacing: -0.045em;
  margin: 0; max-width: 14ch; text-wrap: balance;
}

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review {
  margin: 0; padding: 30px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 18px;
}
.stars { color: var(--accent); letter-spacing: 0.2em; margin: 0; font-size: 0.95rem; }
.review blockquote { margin: 0; font-size: 1.08rem; line-height: 1.55; flex: 1; }
.review figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 0.92rem; }
.review figcaption .mono { font-size: 0.74rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.1em; }

/* ---------- Promise ---------- */
.promise { background: var(--bg-2); }
.promise-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.promise-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.promise-list li { display: flex; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.promise-list li > .mono {
  flex: 0 0 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(230, 48, 26, 0.14); color: var(--accent); font-size: 1rem;
}
.promise-list b { font-family: var(--f-display); font-size: 1.25rem; letter-spacing: -0.02em; font-weight: 700; }
.promise-list p { margin: 4px 0 0; color: var(--ink-soft); }

/* ---------- Brands ---------- */
.brands { background: var(--bg); }
.brands-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.brands-uses { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.brands-uses li { padding-left: 20px; position: relative; color: var(--ink-soft); font-size: 0.96rem; }
.brands-uses li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.brands-media { margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; }
.brands-media img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 50%; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-2); }
.faq-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq-grid > header { position: sticky; top: calc(var(--nav-h) + 24px); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer;
  padding: 24px 44px 24px 0; position: relative;
  font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; font-family: var(--f-body); font-weight: 400; font-size: 1.2rem;
  transition: transform 0.35s var(--ease-out), background-color 0.3s, border-color 0.3s;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--accent); border-color: var(--accent); }
.faq-list details p { margin: 0 0 24px; color: var(--ink-soft); max-width: 62ch; }
.faq-list details a { color: var(--ink); }

/* ---------- Final CTA ---------- */
.final {
  text-align: center;
  background: radial-gradient(60% 70% at 50% 40%, rgba(230, 48, 26, 0.22), transparent 70%), var(--bg);
  overflow: hidden;
}
.final-inner { display: flex; flex-direction: column; align-items: center; }
.final-logo { width: clamp(140px, 18vw, 220px); height: auto; margin-bottom: 28px; animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-10px) rotate(-3deg); } }
.final-title {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(2.8rem, 8vw, 6.6rem); line-height: 0.94; letter-spacing: -0.04em;
  margin: 0 0 24px; text-wrap: balance;
}
.final .lead { margin-inline: auto; }
.final .hero-ctas { justify-content: center; }

/* ---------- Footer ---------- */
.footer { background: #0c0907; border-top: 1px solid var(--line); padding-top: 70px; padding-bottom: 110px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--ink-mute); max-width: 30ch; margin: 16px 0 0; font-size: 0.94rem; }
.footer-brand img { width: 80px; height: 80px; object-fit: contain; }
.footer nav { display: flex; flex-direction: column; gap: 10px; }
.footer nav h3 { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--sand); margin: 0 0 8px; font-weight: 500; }
.footer nav a { text-decoration: none; color: var(--ink-soft); font-size: 0.95rem; transition: color 0.25s; }
.footer nav a:hover { color: var(--accent-hot); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-bottom p { margin: 0; font-size: 0.8rem; color: var(--ink-mute); }
.socials { display: flex; gap: 20px; }
.socials a { font-size: 0.9rem; color: var(--ink-soft); text-decoration: none; }
.socials a:hover { color: var(--ink); }

/* ---------- Sticky mobile CTA + WhatsApp ---------- */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 18px; border-radius: 999px;
  background: rgba(18, 14, 11, 0.92); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 0.9rem;
  transform: translateY(140%); transition: transform 0.5s var(--ease-out);
}
.sticky-cta.is-on { transform: translateY(0); }
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 91;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.6);
  transition: transform 0.35s var(--ease-out);
}
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }

/* ---------- Catálogo con precios ---------- */
.catalog { background: var(--bg); border-top: 1px solid var(--line); }
.cat-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.cat-filter {
  font: inherit; font-size: 0.88rem; font-weight: 500; cursor: pointer;
  padding: 9px 16px; border-radius: 999px;
  color: var(--ink-soft); background: transparent; border: 1px solid var(--line);
  transition: color 0.25s, background-color 0.25s, border-color 0.25s;
}
.cat-filter:hover { color: var(--ink); border-color: rgba(242, 235, 219, 0.4); }
.cat-filter.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cat-filter:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.cat-card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
}
.cat-card[hidden] { display: none; }
.cat-media {
  display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); position: relative;
}
.cat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.cat-media:hover img { transform: scale(1.05); }
.cat-media::after {
  content: "⤢"; position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(18, 14, 11, 0.65); color: var(--ink); font-size: 0.95rem;
  opacity: 0; transition: opacity 0.3s;
}
.cat-media:hover::after, .cat-media:focus-visible::after { opacity: 1; }
.cat-media:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cat-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 18px; flex: 1; }
.cat-meta { margin: 0; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sand); }
.cat-body h3 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
.cat-franchise { margin: 0; font-size: 0.82rem; color: var(--ink-mute); }
.cat-sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.size-chip {
  font: inherit; font-size: 0.76rem; font-weight: 500; cursor: pointer;
  padding: 6px 10px; border-radius: 999px;
  background: transparent; color: var(--ink-soft); border: 1px solid var(--line);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.size-chip:hover { border-color: rgba(242, 235, 219, 0.45); color: var(--ink); }
.size-chip.is-on { background: var(--accent-ui); border-color: var(--accent-ui); color: var(--cream); }
.size-chip:focus-visible { outline: 2px solid var(--sand); outline-offset: 2px; }
.cat-measure { margin: 4px 0 0; font-size: 0.8rem; color: var(--ink-soft); line-height: 1.4; }
.cat-measure [data-measure] { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; margin-right: 4px; }
.cat-use { color: var(--ink-mute); }
.cat-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.cat-price { font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.cat-note { margin: 22px 0 0; font-size: 0.8rem; color: var(--ink-mute); max-width: 60ch; }

/* ---------- Galería con precio y tamaño ---------- */
.card-buyable .card-meta {
  padding-top: 90px;
  background: linear-gradient(0deg, rgba(18, 14, 11, 0.97) 0%, rgba(18, 14, 11, 0.85) 55%, transparent 100%);
}
.card-buyable img { cursor: pointer; }
.card-meta .card-spec { margin: 2px 0 0; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sand); }
.card-buyable .cat-sizes { margin-top: 10px; }
.card-buyable .size-chip { background: rgba(18, 14, 11, 0.55); }
.card-buyable .size-chip.is-on { background: var(--accent-ui); }
.card-meta .card-measure { margin: 8px 0 0; font-size: 0.8rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.card-measure [data-measure] { color: var(--ink); font-weight: 600; }
.card-buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.card-buy .cat-price { color: var(--ink); }

/* ---------- Configurador: tamaños ---------- */
.size-info { margin: 12px 0 0; font-size: 0.9rem; color: var(--ink-soft); }
.size-info b { color: var(--ink); font-variant-numeric: tabular-nums; margin-right: 6px; }
.chip.is-disabled { opacity: 0.35; cursor: not-allowed; }
.chip.is-disabled span { text-decoration: line-through; }
.config-total small { display: block; }
.config-total .ship { color: var(--sand); margin-top: 2px; }
.preview-rug[data-shape="cuadrado"] { border-radius: 6%; aspect-ratio: 1; width: 52%; }
.preview-rug[data-shape="rectangular-clasico"] { border-radius: 5%; aspect-ratio: 70 / 55; width: 62%; }
.preview-rug[data-shape="rectangular-angosto"] { border-radius: 8% / 18%; aspect-ratio: 70 / 30; width: 72%; }
.preview-rug[data-shape="circular"] { border-radius: 50%; aspect-ratio: 1; width: 50%; }
.preview-rug[data-shape="rectangular-angosto"] img { width: 40%; height: 80%; }

/* ---------- Tabla de precios ---------- */
.price-table-wrap { overflow-x: auto; border-radius: 22px; border: 1px solid rgba(18, 14, 11, 0.1); background: #fbf7ee; }
.price-table { width: 100%; min-width: 640px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { padding: 0; text-align: center; border-bottom: 1px solid rgba(18, 14, 11, 0.08); }
.price-table thead th {
  padding: 16px 10px; font-family: var(--f-mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-deep);
}
.price-table tbody th {
  padding: 18px 20px; text-align: left; font-family: var(--f-display); font-weight: 700; font-size: 1rem;
  letter-spacing: -0.02em; white-space: nowrap;
}
.price-table tbody tr:last-child th, .price-table tbody tr:last-child td { border-bottom: 0; }
.price-table td a {
  display: flex; flex-direction: column; gap: 2px; padding: 16px 10px;
  text-decoration: none; color: var(--espresso); transition: background-color 0.2s;
}
.price-table td a:hover, .price-table td a:focus-visible { background: rgba(230, 48, 26, 0.08); outline: none; }
.price-table td b { font-family: var(--f-display); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; }
.price-table td span { font-size: 0.76rem; color: rgba(18, 14, 11, 0.7); }
.price-table .is-base { background: rgba(230, 48, 26, 0.07); }
.price-table thead .is-base { color: var(--accent-deep); }
.price-table .na { color: rgba(18, 14, 11, 0.3); }
.size-legend {
  list-style: none; padding: 0; margin: 22px 0 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px;
  font-size: 0.82rem; color: var(--ink-soft);
}
.size-legend b { display: block; color: var(--ink); font-family: var(--f-display); font-size: 0.95rem; }

/* ---------- Visor de imágenes ---------- */
.is-zoomable { cursor: pointer; }
.is-zoomable:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.lightbox {
  border: 0; padding: 0; margin: auto; background: transparent; color: var(--cream);
  width: min(94vw, 1100px); max-width: none; max-height: 94vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(10, 8, 6, 0.9); backdrop-filter: blur(6px); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; animation: lbIn 0.3s var(--ease-out); }
@keyframes lbIn { from { opacity: 0; transform: scale(0.97); } }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; }
.lb-figure img {
  max-width: 100%; max-height: calc(94vh - 120px); width: auto; height: auto;
  object-fit: contain; border-radius: 16px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
}
.lb-stage { position: relative; display: flex; justify-content: center; max-width: 100%; }
.lb-lens {
  position: absolute; left: 0; top: 0; width: 170px; height: 170px; border-radius: 50%;
  pointer-events: none; opacity: 0; transform: scale(0.85);
  background-color: var(--bg-2); background-repeat: no-repeat;
  border: 3px solid var(--cream);
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.75), inset 0 0 0 1px rgba(0, 0, 0, 0.25);
  transition: opacity 0.18s, transform 0.18s var(--ease-out);
}
.lb-lens.is-on { opacity: 1; transform: none; }
.lb-lens::after {
  content: attr(data-level); position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%);
  font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.06em; white-space: nowrap;
  padding: 3px 8px; border-radius: 999px; background: rgba(18, 14, 11, 0.85); color: var(--cream);
}

/* ---------- Formulario: subir imágenes ---------- */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-label { font-size: 0.88rem; font-weight: 500; }
.field-label em { font-style: normal; color: var(--ink-mute); font-weight: 400; }
.dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 22px 16px; border-radius: 16px; text-align: center; cursor: pointer;
  border: 1.5px dashed rgba(18, 14, 11, 0.28); background: #fff;
  transition: border-color 0.2s, background-color 0.2s;
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--accent); background: rgba(230, 48, 26, 0.04); }
.dropzone:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(230, 48, 26, 0.12); }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone.is-full { opacity: 0.5; pointer-events: none; }
.dz-icon { color: var(--accent); line-height: 0; margin-bottom: 4px; }
.dz-text { font-size: 0.95rem; }
.dz-text b { color: var(--accent-deep); }
.dz-sub { font-size: 0.78rem; color: var(--ink-mute); }
.dz-previews { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dz-previews:empty { display: none; }
.dz-item { position: relative; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid rgba(18, 14, 11, 0.12); }
.dz-item img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.dz-name {
  display: block; padding: 6px 8px; font-size: 0.75rem; color: var(--ink-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dz-remove {
  position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%;
  border: 0; cursor: pointer; font-size: 1.05rem; line-height: 1;
  background: rgba(18, 14, 11, 0.8); color: var(--cream);
}
.dz-remove:hover { background: var(--accent); }
.dz-remove:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.field-error { margin: 8px 0 0; font-size: 0.84rem; color: var(--accent-deep); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.config-actions button.btn { border: 0; }
.btn.is-sending { opacity: 0.75; cursor: progress; }
.form-status { margin-top: 14px; padding: 14px 16px; border-radius: 14px; font-size: 0.92rem; line-height: 1.5; }
.form-status.is-ok { background: rgba(37, 160, 90, 0.12); border: 1px solid rgba(37, 160, 90, 0.35); }
.form-status.is-error { background: rgba(230, 48, 26, 0.08); border: 1px solid rgba(230, 48, 26, 0.35); }
.form-status a { color: var(--accent-deep); font-weight: 600; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
@media (hover: hover) { .lb-stage img { cursor: none; } }
.lb-hint { margin: 0; font-size: 0.78rem; color: rgba(242, 235, 219, 0.6); text-align: center; }
.lb-hint[hidden] { display: none; }
.lb-cap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; font-size: 0.95rem; text-align: center; color: var(--cream); }
.lb-close, .lb-nav {
  position: fixed; z-index: 2; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.8rem; line-height: 1;
  color: var(--cream); background: rgba(34, 26, 21, 0.85); border: 1px solid rgba(242, 235, 219, 0.2);
  transition: background-color 0.2s;
}
.lb-close:hover, .lb-nav:hover { background: var(--accent); }
.lb-close:focus-visible, .lb-nav:focus-visible { outline: 2px solid var(--sand); outline-offset: 2px; }
.lb-close { top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-nav[hidden] { display: none; }
html.lb-open { overflow: hidden; }

@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .size-legend { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cat-body { padding: 12px; }
  .cat-meta { letter-spacing: 0.06em; }
  .cat-sizes { gap: 4px; }
  .cat-use { display: none; } /* en dos columnas el uso alarga la tarjeta; la medida basta */
  .cat-price { font-size: 1.1rem; }
  .cat-foot { flex-wrap: wrap; }
  .cat-foot .btn { width: 100%; }
  .size-legend { grid-template-columns: 1fr 1fr; }
  .lb-prev, .lb-next { top: auto; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: none; }
}
@media (max-width: 420px) {
  .size-chip { padding: 5px 8px; font-size: 0.75rem; }
}

/* ---------- Reveal (IO + safety 6s) ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Solo lo intrusivo se detiene con reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .hint-ico, .hero-scroll span { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { gap: 20px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --nav-h: 66px; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
  .nav-logo img { width: 44px; height: 44px; }

  .hero { display: block; min-height: 0; padding: 0 0 64px; }
  .hero-media { position: relative; inset: auto; height: 58svh; min-height: 340px; max-height: 560px; z-index: 0; }
  .hero-video, .hero-media { object-position: 74% 50%; background-position: 74% 50%; }
  .hero-shade {
    background:
      linear-gradient(0deg, var(--bg) 0%, rgba(18,14,11,0) 42%),
      linear-gradient(180deg, rgba(18,14,11,0.6) 0%, rgba(18,14,11,0) 28%);
  }
  .hero-inner { margin-top: -64px; position: relative; z-index: 1; }
  .hero-scroll { display: none; }

  .piece-grid, .texture-grid, .config-grid, .promise-grid, .brands-inner, .faq-grid { grid-template-columns: 1fr; }
  .piece-stage { order: -1; }
  .config-intro, .faq-grid > header { position: static; }
  .config-preview { display: none; }

  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .card-tall { grid-row: span 1; aspect-ratio: 4 / 5; }
  .card-wide { grid-column: span 2; aspect-ratio: 16 / 11; }

  .reviews-grid { grid-template-columns: 1fr; }
  .brands-media { aspect-ratio: 16 / 11; order: -1; }

  .sticky-cta { display: flex; }
  .wa-float { bottom: 84px; right: 16px; width: 52px; height: 52px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-ctas .btn { width: 100%; }
  .hero-trust { flex-direction: column; gap: 8px; margin-top: 32px; }
  .stats { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .specs div:nth-child(odd) { padding-right: 0; }
  .gallery-grid { grid-template-columns: 1fr; }
  .card-wide { grid-column: span 1; aspect-ratio: 4 / 5; }
  .steps { grid-template-columns: 1fr; }
  .brands-uses { grid-template-columns: 1fr; }
  .config-total { flex-direction: column; align-items: stretch; }
  .config-actions { align-items: stretch; }
  .config-actions .btn { width: 100%; }
  .config-alt { text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .marquee { transform: rotate(-2deg); }
}

/* ---------- Aviso al copiar el pedido para WhatsApp ---------- */
.wa-toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 120;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  max-width: min(92vw, 420px); padding: 12px 18px; border-radius: 14px;
  background: var(--cream); color: var(--espresso); font-size: 0.92rem; font-weight: 500; text-align: center;
  box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.6);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.wa-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
