:root {
  --earth: #8B6F47;
  --cream: #F5F1ED;
  --wood: #b38b62;
  --wood-dark: #765237;
  --stone: #efe9dd;
  --glow: rgba(255, 187, 95, 0.26);
  --radius-soft: 8px;
  --ignis-header-offset: 74px;
}

@media (min-width: 640px) {
  :root {
    --ignis-header-offset: 90px;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  letter-spacing: 0;
  font-weight: 300;
}

body.configurator-locked {
  height: 100vh;
  overflow: hidden;
}

body.configurator-locked main > section:not(#configurador) {
  display: none !important;
}

button,
input {
  font: inherit;
}

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

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

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

.hero-copy > img {
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.58)) drop-shadow(0 0 38px rgba(255, 255, 255, 0.26));
}

.hero-carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 0 0 var(--radius-soft) var(--radius-soft);
  background: #17130f;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  animation: heroFade 48s infinite;
}

.hero-slide:nth-child(1) {
  animation-delay: 0s;
}

.hero-slide:nth-child(2) {
  animation-delay: 6s;
}

.hero-slide:nth-child(3) {
  animation-delay: 12s;
}

.hero-slide:nth-child(4) {
  animation-delay: 18s;
}

.hero-slide:nth-child(5) {
  animation-delay: 24s;
}

.hero-slide:nth-child(6) {
  animation-delay: 30s;
}

.hero-slide:nth-child(7) {
  animation-delay: 36s;
}

.hero-slide:nth-child(8) {
  animation-delay: 42s;
}

@keyframes heroFade {
  100% {
    opacity: 0;
    transform: scale(1.03);
  }

  0%,
  4%,
  12% {
    opacity: 1;
  }

  16% {
    opacity: 0;
    transform: scale(1.08);
  }
}

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

#inicio a,
#condiciones a {
  border-radius: var(--radius-soft);
}

#configurador {
  scroll-margin-top: calc(var(--ignis-header-offset) + 12px);
}

#configurador.is-active {
  min-height: 100vh;
  padding-top: calc(var(--ignis-header-offset) + 12px);
  padding-bottom: 16px;
}

#configurador.is-active .configurator-heading {
  display: none;
}

.configurator-board {
  --line-image-opacity: 0.5;
  position: relative;
  align-items: stretch;
}

#configurador.is-active .configurator-board {
  height: calc(100vh - var(--ignis-header-offset) - 44px);
  max-height: calc(100vh - var(--ignis-header-offset) - 44px);
  grid-template-columns: minmax(270px, 1fr) minmax(420px, 2fr) minmax(250px, 1fr);
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-soft);
}

#configurador.is-active .configurator-board::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--line-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: var(--line-image-opacity);
  filter: saturate(0.86);
}

#configurador.is-active .configurator-result {
  display: contents;
}

#configurador.is-active .configurator-panel,
#configurador.is-active #reserva,
#configurador.is-active .preview-frame {
  position: relative;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

#configurador.is-active .configurator-panel::before,
#configurador.is-active #reserva::before {
  display: none;
}

#configurador.is-active .configurator-panel::after,
#configurador.is-active #reserva::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(3px);
}

#configurador.is-active [data-contact-form] {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-right: 3px;
}

#configurador.is-active .configurator-panel {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.62) !important;
}

#configurador.is-active .configurator-panel > .mt-6 {
  margin-top: auto;
}

#configurador.is-active #reserva {
  overflow: auto;
  background: rgba(255, 255, 255, 0.62) !important;
}

#configurador aside,
#reserva,
[data-preview-kicker] {
  border-radius: var(--radius-soft);
}

.option-card {
  min-height: 94px;
  border: 1px solid rgba(139, 111, 71, 0.28);
  border-radius: var(--radius-soft);
  background: rgba(255, 255, 255, 0.52);
  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.86);
  box-shadow: inset 0 0 0 1px var(--earth);
}

.option-card.disabled {
  background: rgba(255, 255, 255, 0.34);
  box-shadow: none;
}

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

.option-card .series-choice-title {
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1;
}

.option-card .series-choice-title em {
  display: block;
  margin-top: 6px;
  color: #8B6F47;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.option-card .series-choice-note {
  font-size: 0.74rem;
}

.option-card span {
  display: block;
  margin-top: 6px;
  color: rgba(40, 40, 34, 0.62);
  font-size: 0.78rem;
  line-height: 1.3;
}

.option-blueprint {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  margin-bottom: 10px;
  border: 1px solid rgba(139, 111, 71, 0.18);
  border-radius: var(--radius-soft);
  background: rgba(255, 255, 255, 0.56);
  padding: 8px;
}

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

.module-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(139, 111, 71, 0.28);
  border-radius: var(--radius-soft);
  background: rgba(255, 255, 255, 0.52);
  padding: 12px;
}

.module-row--drawn {
  grid-template-columns: 42px minmax(0, 1fr) auto;
}

.module-list-grid {
  display: grid;
  gap: 14px;
}

.module-capacity {
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
  border: 1px solid rgba(139, 111, 71, 0.22);
  border-radius: var(--radius-soft);
  background: rgba(245, 241, 237, 0.64);
  padding: 12px;
}

.module-capacity strong {
  color: #171714;
  font-size: 0.95rem;
}

.module-capacity span {
  color: rgba(46, 41, 35, 0.62);
  font-size: 0.82rem;
  line-height: 1.45;
}

.module-list-grid h4 {
  margin: 0 0 8px;
  color: rgba(40, 40, 34, 0.58);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.module-list-grid section {
  display: grid;
  gap: 8px;
}

.module-sketch {
  position: relative;
  display: block;
  width: 34px;
  height: 38px;
  border: 1px solid rgba(139, 111, 71, 0.42);
  border-radius: 5px;
  background: var(--front-finish-bg, linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(211, 194, 169, 0.5)));
}

.module-sketch--tall {
  height: 54px;
}

.module-sketch--upper {
  height: 26px;
}

.module-sketch i,
.module-sketch b,
.module-sketch em,
.module-sketch small {
  position: absolute;
  display: block;
  border: 1px solid rgba(46, 41, 35, 0.28);
  background: rgba(255, 255, 255, 0.45);
}

.module-sketch i {
  inset: 5px;
}

.module-sketch b {
  left: 5px;
  right: 5px;
  height: 7px;
}

.module-sketch b:nth-of-type(1) {
  top: 7px;
}

.module-sketch b:nth-of-type(2) {
  top: 17px;
}

.module-sketch b:nth-of-type(3) {
  top: 27px;
}

.module-sketch em {
  left: 9px;
  right: 9px;
  top: 8px;
  height: 10px;
  border-radius: 50%;
}

.module-sketch small {
  left: 9px;
  right: 9px;
  top: 12px;
  bottom: 12px;
}

.module-row strong {
  display: block;
  color: #171714;
  font-size: 0.92rem;
  font-weight: 400;
}

.module-row span {
  display: block;
  margin-top: 3px;
  color: rgba(40, 40, 34, 0.58);
  font-size: 0.78rem;
}

.fixed-spec {
  border: 1px solid rgba(139, 111, 71, 0.28);
  border-radius: var(--radius-soft);
  background: rgba(255, 255, 255, 0.52);
  padding: 14px;
}

.fixed-spec strong {
  display: block;
  color: #171714;
  font-size: 0.94rem;
}

.fixed-spec span {
  display: block;
  margin-top: 7px;
  color: rgba(40, 40, 34, 0.62);
  font-size: 0.82rem;
  line-height: 1.45;
}

.module-row-muted {
  opacity: 0.58;
}

.field-label {
  display: grid;
  gap: 8px;
  color: rgba(40, 40, 34, 0.62);
  font-size: 0.82rem;
  font-weight: 400;
}

.field-input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(183, 170, 153, 0.65);
  border-radius: var(--radius-soft);
  background: rgba(255, 255, 255, 0.62);
  color: #171714;
  padding: 0 12px;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease;
}

.field-input:focus {
  border-color: #171714;
  background: rgba(255, 255, 255, 0.9);
}

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

.wall-matrix {
  display: grid;
  gap: 10px;
}

.wall-matrix__title {
  margin: 0;
  color: rgba(40, 40, 34, 0.62);
  font-size: 0.82rem;
  line-height: 1.45;
}

.wall-matrix__grid {
  display: grid;
  gap: 8px;
}

.wall-row {
  display: grid;
  grid-template-columns: minmax(76px, 1fr) repeat(3, minmax(62px, 0.8fr));
  gap: 6px;
  align-items: stretch;
}

.wall-row--head {
  color: rgba(40, 40, 34, 0.54);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wall-row__label {
  display: grid;
  align-content: center;
  border: 1px solid rgba(183, 170, 153, 0.45);
  border-radius: var(--radius-soft);
  background: rgba(245, 241, 237, 0.54);
  padding: 9px 10px;
  color: #171714;
  font-size: 0.78rem;
}

.wall-row__label small {
  color: rgba(40, 40, 34, 0.5);
  font-size: 0.68rem;
}

.wall-check {
  display: grid;
  place-items: center;
  min-height: 40px;
  border: 1px solid rgba(183, 170, 153, 0.65);
  border-radius: var(--radius-soft);
  background: rgba(255, 255, 255, 0.52);
}

.wall-check input {
  accent-color: var(--earth);
}

.appliance-grid,
.review-contact-fields {
  display: grid;
  gap: 12px;
}

.review-contact-fields {
  margin-bottom: 16px;
}

.review-contact-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.always-series {
  border-bottom: 1px solid rgba(139, 111, 71, 0.18);
  padding-bottom: 14px;
}

.dimension-note {
  margin: 0;
  border: 1px solid rgba(139, 111, 71, 0.24);
  border-radius: var(--radius-soft);
  background: rgba(245, 241, 237, 0.64);
  color: rgba(46, 41, 35, 0.68);
  padding: 12px;
  font-size: 0.82rem;
  line-height: 1.55;
}

.config-warning {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  border: 1px solid rgba(139, 58, 42, 0.34);
  border-radius: var(--radius-soft);
  background: rgba(255, 245, 235, 0.78);
  color: rgba(65, 34, 24, 0.82);
  padding: 12px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.config-warning strong {
  color: #3f241c;
  font-size: 0.86rem;
}

.config-warning span {
  display: block;
}

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

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

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

.checkbox-line {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  border: 1px solid rgba(183, 170, 153, 0.65);
  border-radius: var(--radius-soft);
  background: rgba(255, 255, 255, 0.52);
  padding: 10px 12px;
}

.checkbox-line input {
  accent-color: var(--earth);
}

.category-card,
.product-card {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  border-radius: var(--radius-soft);
  background: #17130f;
}

.preview-frame {
  border-radius: var(--radius-soft);
}

#configurador.is-active .preview-frame {
  min-height: 0;
  background: rgba(23, 19, 15, 0.42) !important;
}

.drawing-backdrop {
  background:
    radial-gradient(circle at 18% 12%, rgba(139, 111, 71, 0.28), transparent 28%),
    linear-gradient(135deg, #17130f 0%, #2b241d 58%, #11100e 100%);
}

.drawing-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--line-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: var(--line-image-opacity);
  filter: saturate(0.84);
}

#configurador.is-active .drawing-backdrop {
  background: transparent;
}

#configurador.is-active .drawing-backdrop::before {
  display: none;
}

.drawing-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 19, 15, 0.3), rgba(23, 19, 15, 0.68));
}

.preview-frame--clean-line .drawing-backdrop::after {
  background: rgba(23, 19, 15, 0.08);
}

.preview-frame--clean-line [data-preview-kicker],
.preview-frame--clean-line .kitchen-drawings,
.preview-frame--clean-line > .absolute.inset-x-0.bottom-0 {
  display: none;
}

.kitchen-drawings {
  position: absolute;
  inset: 72px 18px 128px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 0.98fr) minmax(0, 1.02fr);
  gap: 12px;
}

.kitchen-drawings--plan-focus {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.kitchen-drawings--plan-focus article:nth-child(1) {
  display: none;
}

.kitchen-drawings--plan-focus article:nth-child(2) {
  display: none;
}

.kitchen-drawings--plan-focus .distribution-focus-card {
  display: grid;
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  grid-template-rows: auto minmax(0, 1fr);
}

.kitchen-drawings--plan-focus .kitchen-plan {
  min-height: 210px;
}

.kitchen-drawings--plan-focus .preview-reference-image {
  height: calc(100% - 24px);
  min-height: 360px;
}

.kitchen-drawings article {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  border: 1px solid rgba(245, 241, 237, 0.2);
  border-radius: var(--radius-soft);
  background: rgba(245, 241, 237, 0.08);
  padding: 12px;
  backdrop-filter: blur(8px);
}

.kitchen-drawings article:nth-child(1) {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

.kitchen-drawings article:nth-child(2) {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}

.distribution-focus-card {
  display: none;
}

.elevation-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.elevation-slide {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  min-height: 0;
  height: calc(100% - 26px);
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
}

.elevation-slide > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.distribution-empty {
  display: grid;
  place-items: center;
  min-height: 360px;
  border: 1px dashed rgba(245, 241, 237, 0.26);
  border-radius: var(--radius-soft);
  color: rgba(245, 241, 237, 0.72);
  font-size: 1rem;
  line-height: 1.6;
  padding: 24px;
  text-align: center;
}

.distribution-focus-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border-radius: var(--radius-soft);
  background: rgba(255, 255, 255, 0.72);
  object-fit: contain;
  padding: 18px;
}

.kitchen-drawings--photo-focus .distribution-focus-image {
  background: rgba(23, 19, 15, 0.12);
  object-fit: cover;
  padding: 0;
}

.distribution-focus-image[hidden],
.distribution-empty[hidden] {
  display: none;
}

.kitchen-drawings article > span {
  display: block;
  margin-bottom: 8px;
  color: rgba(245, 241, 237, 0.72);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.kitchen-plan {
  position: relative;
  display: grid;
  margin-inline: auto;
  width: min(100%, 720px);
  height: calc(100% - 26px);
  min-height: 150px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(245, 241, 237, 0.16);
  border-radius: var(--radius-soft);
  box-sizing: border-box;
}

.plan-levels {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px;
  min-width: 0;
  min-height: 0;
  padding-top: 30px;
  overflow: auto;
}

.plan-layer {
  position: relative;
  min-width: 220px;
  min-height: 145px;
  overflow: hidden;
  border: 1px solid rgba(245, 241, 237, 0.16);
  border-radius: var(--radius-soft);
  background:
    linear-gradient(rgba(245, 241, 237, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 241, 237, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

.plan-layer-title {
  position: absolute;
  top: 8px;
  left: 10px;
  z-index: 9;
  border: 1px solid rgba(245, 241, 237, 0.26);
  border-radius: 999px;
  background: rgba(23, 19, 15, 0.58);
  color: rgba(245, 241, 237, 0.86);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  padding: 5px 8px;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.view-badges {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: calc(100% - 20px);
  pointer-events: none;
}

.view-badge {
  border: 1px solid rgba(245, 241, 237, 0.34);
  border-radius: 999px;
  background: rgba(23, 19, 15, 0.62);
  color: #f5f1ed;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 5px 7px;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.view-badge--lighting {
  background: rgba(225, 183, 92, 0.86);
  color: #17130f;
}

.view-badge--popup_socket,
.view-badge--motorized_panel,
.view-badge--lift_system,
.view-badge--hidden_hood {
  background: rgba(75, 112, 126, 0.86);
}

.room-outline {
  position: absolute;
  left: 8%;
  bottom: 28px;
  max-width: 82%;
  max-height: 72%;
  border: 1px dashed rgba(245, 241, 237, 0.42);
  border-radius: 5px;
}

.room-label {
  position: absolute;
  color: rgba(245, 241, 237, 0.78);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.room-label--width {
  left: 50%;
  bottom: -24px;
  transform: translateX(-50%);
}

.room-label--depth {
  right: -44px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
}

.plan-run {
  position: absolute;
  display: grid;
  gap: 0;
  border: 2px solid var(--countertop-color, rgba(245, 241, 237, 0.55));
  border-radius: 5px;
  background: var(--front-finish-bg, rgba(183, 139, 86, 0.74));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.plan-run--main,
.plan-run--wall-1 {
  grid-template-columns: repeat(var(--plan-slots, 6), minmax(0, 1fr));
  left: 8%;
  bottom: 28px;
  max-width: 82%;
  height: 42px;
  border-radius: 0;
}

.plan-run--return,
.plan-run--wall-2 {
  grid-template-rows: repeat(var(--plan-slots, 4), minmax(0, 1fr));
  right: 8%;
  bottom: 69px;
  width: 42px;
  max-height: 72%;
  border-radius: 0;
}

.plan-run--u-left,
.plan-run--wall-4 {
  grid-template-rows: repeat(var(--plan-slots, 4), minmax(0, 1fr));
  left: 8%;
  bottom: 69px;
  width: 42px;
  max-height: 72%;
  border-radius: 0;
}

.plan-run--wall-3 {
  grid-template-columns: repeat(var(--plan-slots, 6), minmax(0, 1fr));
  left: 8%;
  top: 24px;
  max-width: 82%;
  height: 42px;
  border-radius: 0;
}

.plan-corner {
  position: absolute;
  bottom: 28px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--countertop-color, rgba(245, 241, 237, 0.55));
  background: var(--front-finish-bg, rgba(111, 118, 95, 0.84));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.plan-corner em {
  padding: 0 3px;
  color: var(--front-ink, rgba(23, 19, 15, 0.74));
  font-size: 0.5rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.plan-corner--right {
  right: 8%;
}

.plan-corner--left {
  left: 8%;
}

.plan-corner--bottom-right {
  right: 8%;
}

.plan-corner--bottom-left {
  left: 8%;
}

.plan-corner--top-right {
  right: 8%;
  top: 24px;
  bottom: auto;
}

.plan-corner--top-left {
  left: 8%;
  top: 24px;
  bottom: auto;
}

.plan-corner--peninsula {
  right: 8%;
}

.plan-run--island {
  grid-template-columns: repeat(var(--plan-slots, 3), minmax(0, 1fr));
  grid-template-rows: repeat(var(--island-rows, 1), minmax(0, 1fr));
  left: 50%;
  top: 46%;
  width: min(var(--island-width, 34%), 260px);
  height: var(--island-depth, 50px);
  transform: translateX(-50%);
  background: var(--front-finish-bg, rgba(245, 241, 237, 0.78));
}

.plan-run--peninsula {
  grid-template-rows: repeat(var(--plan-slots, 4), minmax(0, 1fr));
  right: 8%;
  bottom: 69px;
  width: var(--peninsula-depth, 42px);
  height: min(62%, 230px);
  background: var(--front-finish-bg, rgba(245, 241, 237, 0.74));
  border-radius: 0;
}

.plan-run--peninsula .plan-module {
  border-right: 0;
}

.plan-overhang {
  position: absolute;
  display: block;
  border: 1px dashed rgba(245, 241, 237, 0.62);
  background: rgba(245, 241, 237, 0.2);
}

.plan-overhang--peninsula {
  right: calc(8% - 22px);
  bottom: 69px;
  width: 22px;
  height: min(62%, 230px);
}

.plan-overhang--island {
  left: 50%;
  top: calc(46% + var(--island-depth, 50px));
  width: min(var(--island-width, 34%), 260px);
  height: 20px;
  transform: translateX(-50%);
}

.plan-module {
  min-width: 0;
  min-height: 0;
  border-right: 1px solid rgba(23, 19, 15, 0.28);
  border-bottom: 1px solid rgba(23, 19, 15, 0.16);
  background: var(--front-finish-bg, rgba(245, 241, 237, 0.2));
}

.plan-module[data-visual-module-index],
.front-cell[data-visual-module-index] {
  cursor: grab;
  transition: opacity 140ms ease, outline-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.plan-module[data-visual-module-locked],
.front-cell[data-visual-module-locked] {
  cursor: default;
}

.plan-module[data-visual-module-index]:active,
.front-cell[data-visual-module-index]:active {
  cursor: grabbing;
}

.plan-module[data-visual-module-index]:focus-visible,
.front-cell[data-visual-module-index]:focus-visible {
  outline: 2px solid var(--earth);
  outline-offset: 2px;
}

.visual-module--dragging {
  opacity: 0.44;
  transform: scale(0.98);
}

.visual-module--drop-before,
.visual-module--drop-after {
  outline: 2px solid var(--earth);
  outline-offset: -2px;
}

.visual-module--drop-before {
  box-shadow: inset 3px 0 0 var(--earth);
}

.visual-module--drop-after {
  box-shadow: inset -3px 0 0 var(--earth);
}

.plan-run--return .visual-module--drop-before,
.plan-run--u-left .visual-module--drop-before,
.plan-run--wall-2 .visual-module--drop-before,
.plan-run--wall-4 .visual-module--drop-before,
.plan-run--peninsula .visual-module--drop-before {
  box-shadow: inset 0 3px 0 var(--earth);
}

.plan-run--return .visual-module--drop-after,
.plan-run--u-left .visual-module--drop-after,
.plan-run--wall-2 .visual-module--drop-after,
.plan-run--wall-4 .visual-module--drop-after,
.plan-run--peninsula .visual-module--drop-after {
  box-shadow: inset 0 -3px 0 var(--earth);
}

.plan-module em {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: rgba(23, 19, 15, 0.74);
  color: var(--front-ink, rgba(23, 19, 15, 0.74));
  font-size: 0.54rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.plan-run--return .plan-module {
  border-right: 0;
}

.plan-run--u-left .plan-module {
  border-right: 0;
}

.plan-module--tall,
.front-cell--tall {
  background: var(--front-finish-bg, rgba(245, 241, 237, 0.28));
}

.plan-module--drawers,
.front-cell--drawers {
  background: var(--front-finish-bg, rgba(183, 139, 86, 0.72));
}

.plan-module--sink,
.front-cell--sink {
  background: rgba(134, 157, 158, 0.74);
}

.plan-module--appliance,
.front-cell--appliance {
  background: rgba(46, 41, 35, 0.7);
}

.plan-module--corner,
.front-cell--corner {
  background: var(--front-finish-bg, rgba(111, 118, 95, 0.72));
}

.plan-module--empty,
.front-cell--empty {
  background: rgba(245, 241, 237, 0.06);
}

.kitchen-front {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  margin-inline: auto;
  width: max-content;
  min-width: max-content;
  height: max-content;
  min-height: 96px;
}

.kitchen-side {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--front-slots, 6), var(--module-width, 29px));
  grid-template-rows: var(--front-rows, 30fr 85fr 50fr 70fr 15fr);
  width: max-content;
  min-width: min(100%, max-content);
  height: var(--front-height, calc(100% - 26px));
  min-height: 96px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(245, 241, 237, 0.26);
  border-radius: 5px;
}

.side-empty {
  display: grid;
  place-items: center;
  height: calc(100% - 26px);
  min-height: 96px;
  border: 1px dashed rgba(245, 241, 237, 0.24);
  border-radius: 5px;
  color: rgba(245, 241, 237, 0.58);
  font-size: 0.78rem;
  text-align: center;
}

.kitchen-front::before {
  content: attr(data-height-label);
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 2;
  color: rgba(245, 241, 237, 0.7);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.result-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.result-media figure {
  min-width: 0;
  margin: 0;
}

.result-media span {
  display: block;
  margin-bottom: 5px;
  color: rgba(46, 41, 35, 0.58);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.result-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(139, 111, 71, 0.18);
  border-radius: var(--radius-soft);
  background: rgba(255, 255, 255, 0.64);
  object-fit: contain;
  padding: 6px;
}

.result-photo-focus .result-media,
.result-plan-focus .result-media {
  display: block;
}

.result-photo-focus .result-media figure:first-child {
  display: none;
}

.result-photo-focus .result-media [data-series-image] {
  aspect-ratio: 4 / 3;
}

.result-plan-focus .result-media figure:first-child {
  margin-bottom: 12px;
}

.result-plan-focus .result-media figure:first-child img {
  aspect-ratio: 1 / 1;
}

.result-plan-focus .result-media figure:last-child {
  display: none;
}

.result-media [data-series-image] {
  background: rgba(23, 19, 15, 0.14);
  object-fit: cover;
  padding: 0;
}

.front-run {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 8px;
  width: var(--front-width, 348px);
  min-width: var(--front-width, 348px);
}

.front-run-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--front-slots, 6), var(--module-width, 29px));
  grid-template-rows: var(--front-rows, 30fr 85fr 50fr 70fr 15fr);
  height: var(--front-height, 180px);
  min-height: 96px;
  overflow: hidden;
  border: 1px solid rgba(245, 241, 237, 0.26);
  border-radius: 5px;
}

.preview-frame[data-lighting="basic"] .front-run-grid::after,
.preview-frame[data-lighting="medium"] .front-run-grid::after,
.preview-frame[data-lighting="high"] .front-run-grid::after,
.preview-frame[data-lighting="total"] .front-run-grid::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 30%;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 218, 142, 0.88);
  box-shadow: 0 0 12px rgba(255, 218, 142, 0.76);
  pointer-events: none;
}

.preview-frame[data-lighting="medium"] .front-run-grid::after {
  top: 20%;
}

.preview-frame[data-lighting="high"] .front-run-grid::after,
.preview-frame[data-lighting="total"] .front-run-grid::after {
  top: auto;
  bottom: 8px;
}

.preview-frame[data-lighting="total"] .front-run-grid {
  box-shadow: inset 0 12px 18px rgba(255, 218, 142, 0.16), inset 0 -12px 18px rgba(255, 218, 142, 0.16);
}

.preview-frame[data-opening="push"] .front-cell .module-sketch i,
.preview-frame[data-opening="servo"] .front-cell .module-sketch i {
  border-style: dashed;
}

.preview-frame[data-opening="gola"] .front-cell .module-sketch::after,
.preview-frame[data-opening="basic_gola"] .front-cell .module-sketch::after,
.preview-frame[data-opening="steel_gola"] .front-cell .module-sketch::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 44%;
  height: 3px;
  background: rgba(23, 19, 15, 0.32);
}

.front-run-label {
  display: block;
  color: rgba(245, 241, 237, 0.78);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.front-cell {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  border-right: 1px solid rgba(245, 241, 237, 0.22);
  border-bottom: 1px solid rgba(245, 241, 237, 0.22);
  background: color-mix(in srgb, var(--front-color, #d3c2a9), transparent 28%);
  padding: 0;
}

.front-cell > span {
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 2px;
  color: var(--front-ink, rgba(23, 19, 15, 0.78));
  font-size: 0.5rem;
  font-weight: 600;
  line-height: 1;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.front-cell--tall {
  background: var(--front-finish-bg, rgba(245, 241, 237, 0.2));
}

.front-cell--leg {
  background: var(--plinth-color, rgba(23, 19, 15, 0.44));
}

.front-cell .module-sketch {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: var(--front-finish-bg, linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(183, 139, 86, 0.48)));
}

.front-cell .module-sketch i {
  inset: 8px;
}

.front-cell--lower,
.front-cell--sink,
.front-cell--appliance,
.front-cell--drawers {
  border-top: 4px solid var(--countertop-color, rgba(245, 241, 237, 0.76));
}

.front-cell--base,
.front-cell--upper,
.front-cell--drawers,
.front-cell--lower {
  background: var(--front-finish-bg, rgba(245, 241, 237, 0.13));
}

.front-cell .module-sketch--upper,
.front-cell .module-sketch--tall {
  height: 100%;
}

.category-card {
  cursor: pointer;
}

.category-card:focus-visible {
  outline: 3px solid var(--earth);
  outline-offset: 3px;
}

.category-card img,
.product-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms ease;
}

.category-card::after,
.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 19, 15, 0.1), rgba(23, 19, 15, 0.78));
}

.category-card:hover img,
.product-card:hover img {
  transform: scale(1.04);
}

.category-card div,
.product-card div {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 24px;
  color: white;
}

.category-card span,
.product-card span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.category-card strong,
.product-card strong {
  display: block;
  max-width: 12ch;
  font-family: Georgia, serif;
  font-size: clamp(2.7rem, 5vw, 4.6rem);
  font-weight: 300;
  line-height: 0.9;
}

.category-card p {
  max-width: 30ch;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  line-height: 1.45;
}

.category-card small {
  display: block;
  max-width: 34ch;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  line-height: 1.45;
}

.product-card {
  min-height: 360px;
}

.plan-card {
  border: 1px solid rgba(139, 111, 71, 0.22);
  border-radius: var(--radius-soft);
  background: rgba(245, 241, 237, 0.72);
  padding: 14px;
}

.plan-card > span {
  display: block;
  margin-bottom: 12px;
  color: rgba(46, 41, 35, 0.55);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.plan-preview {
  display: block;
  width: 100%;
  border: 1px solid rgba(139, 111, 71, 0.28);
  background: rgba(255, 255, 255, 0.5);
  padding: 10px;
}

.plan-preview img {
  display: block;
  width: 100%;
  min-height: 110px;
  max-height: 190px;
  object-fit: contain;
}

.plan-drawing {
  position: relative;
  height: 110px;
  border: 1px solid rgba(139, 111, 71, 0.28);
  border-radius: var(--radius-soft);
  background:
    linear-gradient(rgba(139, 111, 71, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 111, 71, 0.12) 1px, transparent 1px),
    rgba(255, 255, 255, 0.42);
  background-size: 22px 22px;
}

.plan-drawing i {
  position: absolute;
  display: block;
  background: var(--earth);
  opacity: 0.84;
}

.plan-drawing i:nth-child(1) {
  left: 12%;
  right: 12%;
  bottom: 22px;
  height: 18px;
}

.plan-drawing i:nth-child(2) {
  right: 12%;
  top: 18px;
  width: 18px;
  height: 70px;
}

.plan-drawing i:nth-child(3) {
  left: 36%;
  right: 36%;
  bottom: 52px;
  height: 22px;
  background: #2e2923;
}

.plan-drawing.plan-lineal i:nth-child(2),
.plan-drawing.plan-lineal i:nth-child(3) {
  opacity: 0;
}

.plan-drawing.plan-u i:nth-child(2) {
  left: 12%;
  right: auto;
}

.plan-drawing.plan-island i:nth-child(3) {
  opacity: 1;
}

.plan-drawing.plan-peninsula i:nth-child(3) {
  left: 48%;
  right: 12%;
  bottom: 52px;
  opacity: 1;
}

.policy-card {
  border: 1px solid rgba(139, 111, 71, 0.2);
  border-radius: var(--radius-soft);
  background: rgba(255, 255, 255, 0.48);
  padding: 22px;
}

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

.policy-card p {
  margin: 0;
  color: rgba(46, 41, 35, 0.68);
  line-height: 1.65;
}

.stepper {
  display: grid;
  grid-template-columns: 34px 34px 34px;
  border: 1px solid rgba(183, 170, 153, 0.65);
  border-radius: var(--radius-soft);
  background: #f4efe5;
  overflow: hidden;
}

.stepper button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #171714;
  font-weight: 400;
}

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

.stepper output {
  display: grid;
  place-items: center;
  min-width: 34px;
  border-inline: 1px solid rgba(183, 170, 153, 0.65);
  color: #171714;
  font-weight: 400;
}

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

.summary-line strong {
  color: #171714;
  white-space: nowrap;
}

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

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

.review-modal__panel {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 20px);
  overflow: hidden;
  border: 1px solid rgba(139, 111, 71, 0.24);
  border-radius: var(--radius-soft);
  background: rgba(250, 247, 241, 0.98);
  box-shadow: 0 28px 80px rgba(23, 19, 15, 0.28);
}

.review-modal__header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid rgba(139, 111, 71, 0.18);
  padding: 24px;
}

.review-modal__close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(139, 111, 71, 0.28);
  background: rgba(255, 255, 255, 0.52);
  color: #171714;
  font-size: 1.6rem;
  line-height: 1;
}

.review-modal__body {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: 0;
  min-height: 0;
  overflow: auto;
}

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

.review-modal__column + .review-modal__column {
  border-left: 1px solid rgba(139, 111, 71, 0.18);
  background: rgba(255, 255, 255, 0.35);
}

.review-modal__column h3 {
  margin: 0 0 8px;
  font-family: Georgia, serif;
  font-size: 1.7rem;
  font-weight: 300;
}

.review-modal__column p {
  margin: 0 0 16px;
  color: rgba(46, 41, 35, 0.64);
  line-height: 1.55;
}

.review-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}

.review-thumbs figure {
  min-width: 0;
  margin: 0;
}

.review-thumbs span {
  display: block;
  margin-bottom: 5px;
  color: rgba(46, 41, 35, 0.58);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.review-thumbs img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(139, 111, 71, 0.18);
  border-radius: var(--radius-soft);
  background: rgba(255, 255, 255, 0.72);
  object-fit: contain;
  padding: 6px;
}

.review-thumbs [data-review-series-image] {
  background: rgba(23, 19, 15, 0.12);
  object-fit: cover;
  padding: 0;
}

.review-message {
  width: 100%;
  min-height: 320px;
  resize: vertical;
  border: 1px solid rgba(139, 111, 71, 0.24);
  border-radius: var(--radius-soft);
  background: rgba(255, 255, 255, 0.72);
  color: #171714;
  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(139, 111, 71, 0.18);
  border-radius: var(--radius-soft);
  background: rgba(255, 255, 255, 0.5);
  padding: 14px;
}

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

.review-conditions span {
  color: rgba(46, 41, 35, 0.66);
  font-size: 0.86rem;
  line-height: 1.55;
}

.review-modal__actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid rgba(139, 111, 71, 0.18);
  padding: 18px 24px 24px;
}

.review-conditions {
  padding-bottom: 4px;
}

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

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

.blueprint-modal__panel {
  overflow: hidden;
  border: 1px solid rgba(139, 111, 71, 0.24);
  border-radius: var(--radius-soft);
  background: rgba(250, 247, 241, 0.98);
  box-shadow: 0 28px 80px rgba(23, 19, 15, 0.28);
}

.blueprint-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(139, 111, 71, 0.18);
  padding: 20px 24px;
}

.blueprint-modal img {
  display: block;
  width: 100%;
  max-height: min(720px, calc(100vh - 150px));
  object-fit: contain;
  background: white;
  padding: 18px;
}

@media (max-width: 480px) {
  .module-row {
    grid-template-columns: 1fr;
  }

  .module-row--drawn {
    grid-template-columns: 42px 1fr;
  }

  .module-row--drawn .stepper {
    grid-column: 1 / -1;
    width: max-content;
  }
}

@media (max-width: 820px) {
  #configurador.is-active {
    min-height: auto;
  }

  #configurador.is-active .configurator-board {
    height: auto;
    max-height: none;
    grid-template-columns: 1fr;
  }

  #configurador.is-active .configurator-result {
    display: grid;
  }

  #configurador.is-active .configurator-panel,
  #configurador.is-active #reserva,
  #configurador.is-active .preview-frame {
    height: auto;
  }

  .kitchen-drawings {
    position: relative;
    inset: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    padding: 82px 16px 190px;
  }

  .plan-levels {
    grid-template-columns: 1fr;
  }

  .plan-layer {
    min-height: 160px;
  }

  .review-modal__body {
    grid-template-columns: 1fr;
  }

  .review-modal__column + .review-modal__column {
    border-top: 1px solid rgba(139, 111, 71, 0.18);
    border-left: 0;
  }

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

  .review-contact-row {
    grid-template-columns: 1fr;
  }
}
