:root {
  --earth: #a98556;
  --cream: #f7f3ee;
  --wood: #b58d60;
  --wood-dark: #6b5138;
  --stone: #eee6da;
  --radius-soft: 8px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--cream);
  color: #15130f;
  letter-spacing: 0;
  font-weight: 300;
}

/* Local fallback for the Tailwind utility classes used on this standalone page. */
[class~="fixed"] { position: fixed; }
[class~="relative"] { position: relative; }
[class~="absolute"] { position: absolute; }
[class~="inset-0"] { inset: 0; }
[class~="inset-x-0"] { left: 0; right: 0; }
[class~="top-0"] { top: 0; }
[class~="top-\[18\%\]"] { top: 18%; }
[class~="left-4"] { left: 1rem; }
[class~="z-0"] { z-index: 0; }
[class~="z-10"] { z-index: 10; }
[class~="z-20"] { z-index: 20; }
[class~="z-30"] { z-index: 30; }
[class~="z-50"] { z-index: 50; }
[class~="flex"] { display: flex; }
[class~="grid"] { display: grid; }
[class~="hidden"] { display: none; }
[class~="inline-flex"] { display: inline-flex; }
[class~="block"] { display: block; }
[class~="items-center"] { align-items: center; }
[class~="items-start"] { align-items: flex-start; }
[class~="items-end"] { align-items: flex-end; }
[class~="self-end"] { align-self: end; }
[class~="justify-between"] { justify-content: space-between; }
[class~="flex-col"] { flex-direction: column; }
[class~="flex-wrap"] { flex-wrap: wrap; }
[class~="overflow-hidden"] { overflow: hidden; }
[class~="select-none"] { user-select: none; }
[class~="antialiased"] { -webkit-font-smoothing: antialiased; }
[class~="min-h-screen"] { min-height: 100vh; }
[class~="min-h-\[560px\]"] { min-height: 560px; }
[class~="min-h-24"] { min-height: 6rem; }
[class~="min-h-6"] { min-height: 1.5rem; }
[class~="w-auto"] { width: auto; }
[class~="w-1\/2"] { width: 50%; }
[class~="w-full"] { width: 100%; }
[class~="w-64"] { width: 16rem; }
[class~="h-1"] { height: 0.25rem; }
[class~="h-16"] { height: 4rem; }
[class~="h-full"] { height: 100%; }
[class~="max-w-2xl"] { max-width: 42rem; }
[class~="max-w-3xl"] { max-width: 48rem; }
[class~="max-w-xl"] { max-width: 36rem; }
[class~="gap-2"] { gap: 0.5rem; }
[class~="gap-3"] { gap: 0.75rem; }
[class~="gap-4"] { gap: 1rem; }
[class~="gap-5"] { gap: 1.25rem; }
[class~="gap-6"] { gap: 1.5rem; }
[class~="gap-9"] { gap: 2.25rem; }
[class~="gap-10"] { gap: 2.5rem; }
[class~="space-y-2"] > * + * { margin-top: 0.5rem; }
[class~="space-y-3"] > * + * { margin-top: 0.75rem; }
[class~="space-y-5"] > * + * { margin-top: 1.25rem; }
[class~="space-y-6"] > * + * { margin-top: 1.5rem; }
[class~="mt-2"] { margin-top: 0.5rem; }
[class~="mt-3"] { margin-top: 0.75rem; }
[class~="mt-4"] { margin-top: 1rem; }
[class~="mt-6"] { margin-top: 1.5rem; }
[class~="mt-7"] { margin-top: 1.75rem; }
[class~="mt-10"] { margin-top: 2.5rem; }
[class~="mt-auto"] { margin-top: auto; }
[class~="mb-2"] { margin-bottom: 0.5rem; }
[class~="mb-3"] { margin-bottom: 0.75rem; }
[class~="mb-4"] { margin-bottom: 1rem; }
[class~="mb-5"] { margin-bottom: 1.25rem; }
[class~="mb-6"] { margin-bottom: 1.5rem; }
[class~="mb-8"] { margin-bottom: 2rem; }
[class~="mb-10"] { margin-bottom: 2.5rem; }
[class~="p-5"] { padding: 1.25rem; }
[class~="px-4"] { padding-left: 1rem; padding-right: 1rem; }
[class~="px-5"] { padding-left: 1.25rem; padding-right: 1.25rem; }
[class~="px-6"] { padding-left: 1.5rem; padding-right: 1.5rem; }
[class~="py-3"] { padding-top: 0.75rem; padding-bottom: 0.75rem; }
[class~="py-4"] { padding-top: 1rem; padding-bottom: 1rem; }
[class~="py-14"] { padding-top: 3.5rem; padding-bottom: 3.5rem; }
[class~="py-16"] { padding-top: 4rem; padding-bottom: 4rem; }
[class~="pt-3"] { padding-top: 0.75rem; }
[class~="pt-6"] { padding-top: 1.5rem; }
[class~="pt-28"] { padding-top: 7rem; }
[class~="pb-5"] { padding-bottom: 1.25rem; }
[class~="pb-10"] { padding-bottom: 2.5rem; }
[class~="border"] { border: 1px solid currentColor; }
[class~="border-b"] { border-bottom: 1px solid rgba(247, 243, 238, 0.2); }
[class~="border-stone\/35"] { border-color: rgba(185, 170, 150, 0.35); }
[class~="border-stone\/50"] { border-color: rgba(185, 170, 150, 0.5); }
[class~="border-earth"] { border-color: var(--earth); }
[class~="border-rice\/25"] { border-color: rgba(247, 243, 238, 0.25); }
[class~="bg-sumi"] { background: #15130f; }
[class~="bg-sumi\/35"] { background: rgba(21, 19, 15, 0.35); }
[class~="bg-sumi\/64"] { background: rgba(21, 19, 15, 0.64); }
[class~="bg-white\/55"] { background: rgba(255, 255, 255, 0.55); }
[class~="bg-white\/72"] { background: rgba(255, 255, 255, 0.72); }
[class~="bg-rice"] { background: #f7f3ee; }
[class~="bg-earth"] { background: var(--earth); }
[class~="bg-stone\/30"] { background: rgba(185, 170, 150, 0.3); }
[class~="bg-gradient-to-r"] { background-image: linear-gradient(90deg, rgba(21, 19, 15, 0.86), rgba(21, 19, 15, 0.46), rgba(21, 19, 15, 0.1)); }
[class~="bg-gradient-to-t"] { background-image: linear-gradient(0deg, rgba(21, 19, 15, 0.82), rgba(21, 19, 15, 0.16), transparent); }
[class~="backdrop-blur"] { backdrop-filter: blur(10px); }
[class~="backdrop-blur-xl"] { backdrop-filter: blur(22px); }
[class~="shadow-soft"] { box-shadow: 0 30px 90px rgba(22, 22, 17, 0.16); }
[class~="text-center"] { text-align: center; }
[class~="text-right"] { text-align: right; }
[class~="font-serif"] { font-family: Inter, Aptos, ui-sans-serif, system-ui, sans-serif; }
[class~="font-light"] { font-weight: 300; }
[class~="font-normal"] { font-weight: 400; }
[class~="uppercase"] { text-transform: uppercase; }
[class~="leading-none"] { line-height: 1; }
[class~="leading-7"] { line-height: 1.75rem; }
[class~="leading-8"] { line-height: 2rem; }
[class~="leading-\[0\.9\]"] { line-height: 0.9; }
[class~="tracking-\[0\.18em\]"] { letter-spacing: 0.18em; }
[class~="tracking-\[0\.2em\]"] { letter-spacing: 0.2em; }
[class~="tracking-\[0\.22em\]"] { letter-spacing: 0.22em; }
[class~="tracking-\[0\.24em\]"] { letter-spacing: 0.24em; }
[class~="tracking-\[0\.28em\]"] { letter-spacing: 0.28em; }
[class~="tracking-\[0\.3em\]"] { letter-spacing: 0.3em; }
[class~="tracking-\[0\.34em\]"] { letter-spacing: 0.34em; }
[class~="tracking-\[0\.36em\]"] { letter-spacing: 0.36em; }
[class~="tracking-\[0\.42em\]"] { letter-spacing: 0.42em; }
[class~="text-xs"] { font-size: 0.75rem; }
[class~="text-sm"] { font-size: 0.875rem; }
[class~="text-lg"] { font-size: 1.125rem; }
[class~="text-3xl"] { font-size: 1.875rem; }
[class~="text-4xl"] { font-size: 2.25rem; }
[class~="text-5xl"] { font-size: 3rem; }
[class~="text-6xl"] { font-size: 3.75rem; }
[class~="text-\[19vw\]"] { font-size: 19vw; }
[class~="text-white"] { color: #fff; }
[class~="text-sumi"] { color: #15130f; }
[class~="text-rice"] { color: #f7f3ee; }
[class~="text-rice\/72"] { color: rgba(247, 243, 238, 0.72); }
[class~="text-rice\/82"] { color: rgba(247, 243, 238, 0.82); }
[class~="text-cream\/75"] { color: rgba(247, 243, 238, 0.75); }
[class~="text-earth"] { color: var(--earth); }
[class~="text-ink"] { color: #2f2a24; }
[class~="text-ink\/48"] { color: rgba(47, 42, 36, 0.48); }
[class~="text-ink\/50"] { color: rgba(47, 42, 36, 0.5); }
[class~="text-ink\/55"] { color: rgba(47, 42, 36, 0.55); }
[class~="text-ink\/58"] { color: rgba(47, 42, 36, 0.58); }
[class~="text-ink\/62"] { color: rgba(47, 42, 36, 0.62); }
[class~="text-ink\/65"] { color: rgba(47, 42, 36, 0.65); }
[class~="text-ink\/68"] { color: rgba(47, 42, 36, 0.68); }
[class~="text-moss"] { color: #69705f; }
[class~="text-rice\/\[0\.07\]"] { color: rgba(247, 243, 238, 0.07); }
[class~="resize-y"] { resize: vertical; }
[class~="transition"] { transition: all 160ms ease; }
[class~="duration-300"] { transition-duration: 300ms; }

header .nav-logo-link--domvs {
  display: none !important;
}

.ordinata-group-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 119;
  display: flex;
  justify-content: center;
  gap: clamp(18px, 4vw, 44px);
  border-top: 1px solid rgba(247, 243, 238, 0.14);
  background: rgba(21, 19, 15, 0.92);
  padding: 13px 16px;
  color: #f7f3ee;
  backdrop-filter: blur(16px);
}

.ordinata-group-bar a {
  color: rgba(247, 243, 238, 0.86);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
}

.ordinata-group-bar a:hover,
.ordinata-group-bar a:focus-visible {
  color: #fff;
  outline: 0;
}

@media (min-width: 640px) {
  [class~="sm:px-8"] { padding-left: 2rem; padding-right: 2rem; }
  [class~="sm:p-8"] { padding: 2rem; }
  [class~="sm:h-20"] { height: 5rem; }
  [class~="sm:w-80"] { width: 20rem; }
  [class~="sm:text-xl"] { font-size: 1.25rem; }
  [class~="sm:text-5xl"] { font-size: 3rem; }
  [class~="sm:text-6xl"] { font-size: 3.75rem; }
  [class~="sm:text-7xl"] { font-size: 4.5rem; }
  [class~="sm:left-8"] { left: 2rem; }
}

@media (min-width: 768px) {
  [class~="md:flex"] { display: flex; }
  [class~="md:hidden"] { display: none; }
  [class~="md:grid-cols-2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  [class~="lg:px-12"] { padding-left: 3rem; padding-right: 3rem; }
  [class~="lg:py-20"] { padding-top: 5rem; padding-bottom: 5rem; }
  [class~="lg:py-24"] { padding-top: 6rem; padding-bottom: 6rem; }
  [class~="lg:pb-16"] { padding-bottom: 4rem; }
  [class~="lg:w-96"] { width: 24rem; }
  [class~="lg:text-8xl"] { font-size: 6rem; }
  [class~="lg:left-12"] { left: 3rem; }
  [class~="lg:items-end"] { align-items: end; }
  [class~="lg:flex-row"] { flex-direction: row; }
  [class~="lg:grid-cols-\[0\.9fr_1\.1fr\]"] { grid-template-columns: 0.9fr 1.1fr; }
  [class~="lg:grid-cols-\[0\.8fr_1\.2fr\]"] { grid-template-columns: 0.8fr 1.2fr; }
  [class~="lg:grid-cols-\[430px_minmax\(0\,1fr\)\]"] { grid-template-columns: 430px minmax(0, 1fr); }
  [class~="lg:grid-cols-\[minmax\(0\,1fr\)_330px\]"] { grid-template-columns: minmax(0, 1fr) 330px; }
}

@media (min-width: 1280px) {
  [class~="xl:text-9xl"] { font-size: 8rem; }
}

button,
input,
textarea {
  font: inherit;
}

button,
.config-panel,
.result-panel,
.preview-frame,
.policy-card {
  border-radius: var(--radius-soft);
}

button {
  border-radius: var(--radius-soft);
}

strong,
h1,
h2,
h3 {
  font-weight: 400;
}

.logo-link img {
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 0 12px rgba(255, 255, 255, 0.62)) drop-shadow(0 0 30px rgba(255, 255, 255, 0.28));
}

.nav-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
}

.nav-logo-link img {
  display: block;
  width: 84px;
  height: 38px;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 0 9px rgba(255, 255, 255, 0.38));
}

.nav-logo-link--domvs img {
  width: 78px;
  height: 36px;
}

.configurator-context-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-right: auto;
  border-left: 1px solid rgba(247, 243, 238, 0.3);
  padding-left: 14px;
  color: rgba(247, 243, 238, 0.9);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.configurator-context-short {
  display: none;
}

@media (max-width: 767px) {
  header nav {
    gap: 0.55rem !important;
  }

  .configurator-context-label {
    min-height: 24px;
    padding-left: 7px;
    font-size: 0.56rem;
    letter-spacing: 0.08em;
  }

  .configurator-context-full {
    display: none;
  }

  .configurator-context-short {
    display: inline;
  }
}

.hero-copy {
  color: white;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.88), 0 1px 5px rgba(0, 0, 0, 0.92);
}

.hero-brand-logo {
  width: min(22rem, 84vw);
  max-height: 14rem;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1) drop-shadow(0 0 16px rgba(255, 255, 255, 0.58)) drop-shadow(0 0 38px rgba(255, 255, 255, 0.26));
}

#inicio {
  transition: min-height 420ms ease, padding 420ms ease;
}

#inicio.is-compact {
  min-height: clamp(180px, 22vh, 250px);
  align-items: center;
  padding-top: 7rem;
  padding-bottom: 1.5rem;
}

#inicio.is-compact .hero-copy > :not(.hero-brand-logo) {
  display: none;
}

#inicio.is-compact .hero-brand-logo {
  width: min(14rem, 56vw);
  max-height: 8rem;
  margin-bottom: 0;
}

#configurador {
  scroll-margin-top: 6rem;
}

.ordinata-hero {
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(21, 19, 15, 0.66), rgba(21, 19, 15, 0.28), rgba(21, 19, 15, 0.06)),
    url("assets/ordinata/portada-domvs-ordinata.png") center / cover no-repeat,
    linear-gradient(135deg, #181510 0%, #2c241d 46%, #6b5138 100%);
}

.config-step legend {
  display: block;
  margin-bottom: 12px;
  color: #2f2a24;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.dimension-grid {
  display: grid;
  gap: 18px;
}

.field-label {
  display: grid;
  gap: 8px;
  color: rgba(47, 42, 36, 0.64);
  font-size: 0.82rem;
  font-weight: 400;
}

.field-input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(185, 170, 150, 0.65);
  border-radius: var(--radius-soft);
  background: rgba(255, 255, 255, 0.66);
  color: #15130f;
  padding: 0 12px;
  outline: none;
}

.field-input:focus {
  border-color: #15130f;
  background: rgba(255, 255, 255, 0.92);
}

.range-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px;
  gap: 12px;
  align-items: center;
}

.range-line input {
  width: 100%;
  accent-color: var(--earth);
}

.range-line output {
  color: #15130f;
  font-size: 0.9rem;
  text-align: right;
}

.option-card {
  min-height: 88px;
  border: 1px solid rgba(169, 133, 86, 0.3);
  border-radius: var(--radius-soft);
  background: rgba(255, 255, 255, 0.54);
  padding: 12px;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.option-card:hover,
.option-card.active {
  border-color: var(--earth);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 0 0 1px var(--earth);
}

.option-card strong {
  display: block;
  color: #15130f;
  font-size: 0.92rem;
  line-height: 1.15;
}

.option-card span {
  display: block;
  margin-top: 6px;
  color: rgba(47, 42, 36, 0.62);
  font-size: 0.78rem;
  line-height: 1.35;
}

.swatch {
  display: block;
  width: 100%;
  height: 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(21, 19, 15, 0.14);
  border-radius: 6px;
  background: var(--swatch);
}

.module-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid rgba(169, 133, 86, 0.28);
  border-radius: var(--radius-soft);
  background: rgba(255, 255, 255, 0.56);
  padding: 12px;
}

.lower-body-selector {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(110px, 0.55fr);
  gap: 10px;
  align-items: end;
  border: 1px solid rgba(169, 133, 86, 0.34);
  border-radius: 14px;
  background: rgba(169, 133, 86, 0.08);
  padding: 12px;
}

.lower-body-selector strong,
.lower-body-selector small {
  display: block;
}

.lower-body-selector small {
  margin-top: 3px;
  color: rgba(47, 42, 36, 0.58);
  font-size: 0.72rem;
}

.lower-body-selector__buttons {
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(185, 170, 150, 0.65);
  border-radius: 999px;
}

.lower-body-selector__buttons button {
  min-width: 44px;
  min-height: 42px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.74);
  color: #2f2a24;
}

.lower-body-selector__buttons button.active {
  background: #a98556;
  color: #f7f3ee;
}

.custom-width-toggle {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(169, 133, 86, 0.34);
  border-radius: 14px;
  background: rgba(169, 133, 86, 0.08);
  padding: 14px;
  cursor: pointer;
}

.custom-width-toggle input {
  width: 21px;
  height: 21px;
  accent-color: #a98556;
}

.custom-width-toggle strong,
.custom-width-toggle small {
  display: block;
}

.custom-width-toggle small,
.custom-width-note {
  margin-top: 4px;
  color: rgba(47, 42, 36, 0.62);
  font-size: 0.78rem;
  line-height: 1.45;
}

.custom-module-widths {
  margin-top: 14px;
}

.custom-width-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.custom-width-input {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(185, 170, 150, 0.65);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
}

.custom-width-input input {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  border: 0;
  background: transparent;
  padding: 0 10px;
  color: #15130f;
}

.custom-width-input em {
  padding-right: 10px;
  color: rgba(47, 42, 36, 0.5);
  font-style: normal;
  font-size: 0.78rem;
}

.module-row__head {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.module-control-label {
  display: grid;
  gap: 5px;
  color: rgba(47, 42, 36, 0.62);
  font-size: 0.72rem;
  line-height: 1.2;
}

.module-control-label--wide,
.module-row > small {
  grid-column: 1 / -1;
}

.module-row strong {
  display: block;
  color: #15130f;
  font-size: 0.92rem;
}

.module-row span,
.module-row small {
  display: block;
  margin-top: 3px;
  color: rgba(47, 42, 36, 0.58);
  font-size: 0.78rem;
  line-height: 1.35;
}

.module-select {
  min-height: 44px;
  border: 1px solid rgba(185, 170, 150, 0.65);
  border-radius: var(--radius-soft);
  background: rgba(255, 255, 255, 0.7);
  color: #15130f;
  padding: 0 10px;
}

.module-select option:disabled {
  color: rgba(47, 42, 36, 0.42);
}

.module-restriction {
  color: rgba(119, 76, 35, 0.86);
}

.wardrobe-preview {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: clamp(24px, 5vw, 56px);
  background:
    linear-gradient(180deg, rgba(15, 12, 9, 0.06), rgba(15, 12, 9, 0.68)),
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.16), transparent 34%),
    linear-gradient(135deg, #e7dfd2 0%, #b99b75 42%, #3a2b20 100%);
  transition: opacity 220ms ease;
}

.wardrobe-preview.is-3d-hidden {
  opacity: 0;
  pointer-events: none;
}

.ordinata-3d-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 68% 18%, rgba(235, 220, 196, 0.18), transparent 35%),
    linear-gradient(145deg, #cbc0af 0%, #6d6255 45%, #1d1a17 100%);
}

.ordinata-3d-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 17, 14, 0.02) 35%, rgba(20, 17, 14, 0.68) 100%);
}

.ordinata-3d-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

.ordinata-3d-canvas.is-dragging {
  cursor: grabbing;
}

.ordinata-3d-toolbar {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 7px;
}

.ordinata-3d-toolbar button {
  min-height: 34px;
  border: 1px solid rgba(23, 19, 15, 0.2);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 250, 242, 0.86);
  color: #17130f;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-shadow: none;
  backdrop-filter: blur(16px);
}

.ordinata-3d-toolbar button:hover,
.ordinata-3d-toolbar button[aria-pressed="true"] {
  background: rgba(255, 250, 242, 0.98);
  color: #17130f;
}

.ordinata-3d-hint {
  position: absolute;
  z-index: 3;
  top: 22px;
  left: 22px;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid rgba(23, 19, 15, 0.16);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.82);
  color: #17130f;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: none;
  backdrop-filter: blur(16px);
  pointer-events: none;
}

.wardrobe-shell {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--module-count), minmax(0, 1fr));
  gap: 6px;
  width: var(--preview-width, 100%);
  max-width: 760px;
  min-width: 96px;
  height: var(--preview-height, 390px);
  min-height: 150px;
  max-height: 500px;
  margin: 0 auto 64px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(33, 26, 20, 0.55);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  transform: perspective(900px) rotateX(var(--preview-depth-tilt, 0deg));
  transform-origin: bottom center;
}

.wardrobe-module {
  position: relative;
  display: grid;
  grid-template-rows: 19% 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: var(--finish-gradient);
}

.wardrobe-module::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--preview-side, 10px);
  background: rgba(255, 255, 255, 0.13);
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.wardrobe-module__top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.14);
}

.wardrobe-module__body {
  position: relative;
  display: grid;
  gap: 7px;
  padding: 12px;
}

.rail {
  height: 4px;
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.drawer-stack,
.shelves {
  display: grid;
  gap: 5px;
  align-self: end;
}

.drawer-stack i,
.shelves i {
  display: block;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.13);
}

.shelves {
  align-self: stretch;
}

.shelves i {
  height: auto;
}

.door-overlay {
  position: absolute;
  inset: 12px;
  display: grid;
  grid-template-columns: repeat(var(--door-columns), 1fr);
  pointer-events: none;
}

.door-overlay i {
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(30, 24, 18, 0.18);
}

.module-glass-overlay {
  position: absolute;
  inset: 12px;
  pointer-events: none;
}

.module-glass-overlay i {
  display: block;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(35, 32, 28, 0.82);
  background: linear-gradient(135deg, rgba(220, 236, 236, 0.24), rgba(255, 255, 255, 0.06));
}

.sliding-overlay {
  position: absolute;
  inset: 12px;
  display: grid;
  grid-template-columns: repeat(var(--glass-columns), 1fr);
  gap: 0;
  pointer-events: none;
}

.sliding-overlay i {
  border: 2px solid rgba(35, 32, 28, 0.82);
  background: linear-gradient(135deg, rgba(220, 236, 236, 0.24), rgba(255, 255, 255, 0.06));
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: rgba(47, 42, 36, 0.68);
}

.summary-line strong {
  color: #15130f;
  text-align: right;
}

.policy-card {
  border: 1px solid rgba(169, 133, 86, 0.2);
  background: rgba(255, 255, 255, 0.5);
  padding: 22px;
}

.policy-card h3 {
  margin: 0 0 10px;
  color: #2f2a24;
  font-size: 1.05rem;
}

.policy-card p {
  margin: 0;
  color: rgba(47, 42, 36, 0.68);
  line-height: 1.65;
}

.review-modal {
  width: min(1120px, calc(100vw - 28px));
  max-height: min(860px, calc(100vh - 28px));
  border: 0;
  border-radius: var(--radius-soft);
  background: transparent;
  padding: 0;
  color: #15130f;
}

.review-modal::backdrop {
  background: rgba(21, 19, 15, 0.54);
  backdrop-filter: blur(6px);
}

.review-modal__panel {
  overflow: hidden;
  border: 1px solid rgba(169, 133, 86, 0.24);
  border-radius: var(--radius-soft);
  background: rgba(250, 247, 241, 0.98);
  box-shadow: 0 28px 80px rgba(21, 19, 15, 0.28);
}

.review-modal__header,
.review-modal__actions {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid rgba(169, 133, 86, 0.18);
  padding: 24px;
}

.review-modal__actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  border-top: 1px solid rgba(169, 133, 86, 0.18);
  border-bottom: 0;
  padding-top: 18px;
}

.review-modal__close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(169, 133, 86, 0.28);
  background: rgba(255, 255, 255, 0.52);
  color: #15130f;
  font-size: 1.25rem;
  line-height: 1;
}

.review-modal__body {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  max-height: min(610px, calc(100vh - 235px));
  overflow: hidden;
}

.review-modal__column {
  min-width: 0;
  overflow: auto;
  padding: 24px;
}

.review-modal__column + .review-modal__column {
  border-left: 1px solid rgba(169, 133, 86, 0.18);
  background: rgba(255, 255, 255, 0.35);
}

.review-modal__column h3 {
  margin: 0 0 8px;
  font-family: Inter, Aptos, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.7rem;
  font-weight: 500;
}

.review-modal__column p {
  margin: 0 0 16px;
  color: rgba(47, 42, 36, 0.64);
  line-height: 1.55;
}

.review-message {
  width: 100%;
  min-height: 440px;
  resize: vertical;
  border: 1px solid rgba(169, 133, 86, 0.24);
  border-radius: var(--radius-soft);
  background: rgba(255, 255, 255, 0.72);
  color: #15130f;
  padding: 16px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.55;
}

.review-conditions {
  display: grid;
  gap: 10px;
}

.review-conditions article {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(169, 133, 86, 0.18);
  border-radius: var(--radius-soft);
  background: rgba(255, 255, 255, 0.5);
  padding: 14px;
}

.review-conditions strong {
  color: #2f2a24;
  font-size: 0.95rem;
}

.review-conditions span {
  color: rgba(47, 42, 36, 0.66);
  font-size: 0.86rem;
  line-height: 1.55;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

@media (max-width: 820px) {
  .review-modal__body {
    grid-template-columns: 1fr;
    max-height: min(640px, calc(100vh - 220px));
  }

  .review-modal__column + .review-modal__column {
    border-top: 1px solid rgba(169, 133, 86, 0.18);
    border-left: 0;
  }

  .review-message {
    min-height: 310px;
  }

  .summary-line {
    display: grid;
  }
}

@media (max-width: 560px) {
  .ordinata-hero {
    background-position: 58% center;
  }

  .wardrobe-preview {
    padding: 18px;
  }

  .wardrobe-shell {
    min-height: 130px;
    margin-bottom: 96px;
  }

  .ordinata-3d-toolbar {
    top: 14px;
    right: 14px;
  }

  .ordinata-3d-toolbar button:first-child,
  .ordinata-3d-hint {
    display: none;
  }
}

/* Superficies suaves y CTA principal tipo cápsula. */
:root {
  --radius-soft: 18px;
}

.hero-copy > a {
  min-height: 50px;
  border-radius: 999px;
  padding-inline: 26px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  box-shadow: 0 10px 28px rgba(21, 19, 15, 0.18);
}

.config-panel,
.result-panel,
.preview-frame,
.policy-card,
.review-modal__panel {
  border-radius: 22px;
}

.option-card,
.field-input,
.module-select,
.module-row {
  border-radius: 14px;
}

[data-prev],
[data-next],
[data-contact],
[data-quote],
[data-review-close],
[data-review-confirm] {
  border-radius: 999px;
  letter-spacing: 0.04em !important;
}

.ordinata-group-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 38px);
  min-height: 42px;
  border-top: 1px solid rgba(247, 243, 238, 0.14);
  background: rgba(23, 19, 15, 0.94);
  padding: 8px 18px;
  color: #f7f3ee;
  backdrop-filter: blur(20px) saturate(1.1);
}

.ordinata-group-bar a {
  color: inherit;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  opacity: 0.78;
  transition: opacity 180ms ease;
}

.ordinata-group-bar a:hover,
.ordinata-group-bar a:focus-visible {
  opacity: 1;
}

@media (max-width: 620px) {
  .ordinata-group-bar {
    gap: 12px;
    justify-content: space-between;
    padding-inline: 10px;
  }

  .ordinata-group-bar a {
    font-size: 0.54rem;
    letter-spacing: 0.1em;
  }
}

/* Portafolio ORDINATA: muchas imágenes visibles con el mínimo scroll. */
.ordinata-portfolio-page {
  min-height: 100vh;
  margin: 0;
  background: #f7f3ee;
  color: #15130f;
}

.ordinata-portfolio-page main {
  min-height: 100vh;
  padding: clamp(106px, 11vh, 128px) clamp(18px, 3vw, 48px) 68px;
}

.ordinata-portfolio-title {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1.1fr);
  gap: 4px clamp(28px, 6vw, 96px);
  align-items: end;
  max-width: 1500px;
  margin: 0 auto clamp(14px, 2vh, 22px);
}

.ordinata-portfolio-title .ordinata-portfolio-eyebrow {
  grid-column: 1 / -1;
}

.ordinata-portfolio-eyebrow {
  margin: 0;
  color: #a98556;
  font-size: 0.64rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.ordinata-portfolio-title h1 {
  margin: 5px 0 0;
  font-size: clamp(1.9rem, 3vw, 3.7rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.ordinata-portfolio-title > p:last-child {
  max-width: 64ch;
  margin: 0;
  color: rgba(47, 42, 36, 0.66);
  font-size: clamp(0.84rem, 0.95vw, 0.98rem);
  line-height: 1.4;
}

.ordinata-portfolio-list {
  display: grid;
  gap: 16px;
  max-width: 1800px;
  margin: 0 auto;
}

.ordinata-portfolio-project {
  display: grid;
  gap: 9px;
  min-width: 0;
  border: 1px solid rgba(169, 133, 86, 0.2);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
  padding: clamp(10px, 1.2vw, 16px);
  box-shadow: 0 18px 52px rgba(21, 19, 15, 0.08);
}

.ordinata-portfolio-project > header {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) minmax(250px, 1.65fr);
  gap: 2px 24px;
  align-items: center;
}

.ordinata-portfolio-project > header .ordinata-portfolio-eyebrow {
  grid-column: 1 / -1;
}

.ordinata-portfolio-project h2 {
  margin: 0;
  font-size: clamp(1.35rem, 1.8vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

.ordinata-portfolio-project > header > p:last-child {
  margin: 0;
  color: rgba(47, 42, 36, 0.62);
  font-size: clamp(0.74rem, 0.8vw, 0.88rem);
  line-height: 1.25;
  white-space: pre-line;
}

.ordinata-project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(128px, 100%), 1fr));
  gap: clamp(5px, 0.55vw, 9px);
}

.ordinata-project-photo {
  position: relative;
  height: clamp(88px, 7.4vw, 132px);
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #d8d0c6;
  padding: 0;
  cursor: zoom-in;
}

.ordinata-project-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: filter 260ms ease, transform 260ms ease;
}

@keyframes ordinataPortfolioHeartbeat {
  0%, 100% { transform: scale(1.015); }
  48% { transform: scale(1.06); }
  62% { transform: scale(1.038); }
}

.ordinata-project-photo:hover img,
.ordinata-project-photo:focus-visible img {
  animation: ordinataPortfolioHeartbeat 1.15s ease-in-out infinite;
  filter: saturate(1.04) contrast(1.02);
}

.ordinata-project-photo:focus-visible {
  outline: 3px solid #a98556;
  outline-offset: 3px;
}

.ordinata-portfolio-empty {
  max-width: 760px;
  margin: 8vh auto 0;
  text-align: center;
}

.ordinata-portfolio-empty h2 {
  margin: 12px 0;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 1;
}

.ordinata-lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  border: 0;
  background: rgba(21, 19, 15, 0.96);
  padding: clamp(18px, 3vw, 44px);
  color: #f7f3ee;
}

.ordinata-lightbox::backdrop {
  background: rgba(21, 19, 15, 0.78);
  backdrop-filter: blur(18px);
}

.ordinata-lightbox[open] {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(10px, 2vw, 28px);
  align-items: center;
}

.ordinata-lightbox figure {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.3fr);
  gap: clamp(18px, 3vw, 42px);
  align-items: center;
  min-width: 0;
  margin: 0;
}

.ordinata-lightbox figure img {
  width: 100%;
  max-height: calc(100vh - 88px);
  object-fit: contain;
  border-radius: 16px;
}

.ordinata-lightbox figcaption span {
  color: #caa676;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ordinata-lightbox figcaption h2 {
  margin: 14px 0;
  font-size: clamp(2rem, 4vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.ordinata-lightbox figcaption p {
  margin: 0;
  color: rgba(247, 243, 238, 0.7);
  line-height: 1.6;
  white-space: pre-line;
}

.ordinata-lightbox__close,
.ordinata-lightbox__arrow {
  border: 1px solid rgba(247, 243, 238, 0.24);
  border-radius: 999px;
  background: rgba(247, 243, 238, 0.08);
  color: #f7f3ee;
  cursor: pointer;
}

.ordinata-lightbox__close {
  position: fixed;
  z-index: 3;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  font-size: 1.7rem;
}

.ordinata-lightbox__arrow {
  width: 52px;
  height: 52px;
  font-size: 2.4rem;
  line-height: 1;
}

.ordinata-lightbox__close:hover,
.ordinata-lightbox__arrow:hover {
  background: #a98556;
}

@media (max-width: 900px) {
  .ordinata-portfolio-title,
  .ordinata-portfolio-project > header,
  .ordinata-lightbox figure {
    grid-template-columns: 1fr;
  }

  .ordinata-portfolio-title {
    gap: 8px;
  }

  .ordinata-project-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ordinata-project-photo {
    height: clamp(150px, 42vw, 270px);
  }

  .ordinata-lightbox[open] {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .ordinata-lightbox__arrow {
    position: fixed;
    z-index: 3;
    bottom: 18px;
  }

  .ordinata-lightbox__arrow--prev { left: 18px; }
  .ordinata-lightbox__arrow--next { right: 18px; }
  .ordinata-lightbox figure img { max-height: 66vh; }
}

@media (prefers-reduced-motion: reduce) {
  #inicio {
    transition: none;
  }

  .ordinata-project-photo:hover img,
  .ordinata-project-photo:focus-visible img {
    animation: none;
    transform: scale(1.025);
  }
}

/* Densidad de navegación: menos espacio vacío sin reducir contenido. */
#configurador {
  padding-block: clamp(30px, 4vw, 52px);
}

#condiciones,
#domvs {
  padding-block: clamp(32px, 4.5vw, 56px);
}

#configurador > .mb-10 {
  margin-bottom: clamp(20px, 2.5vw, 32px);
}
