/* Compact layout isolated to Configuralo Tu. */
.configurator-page .cfg-hero {
  padding-block: clamp(2.25rem, 4.2vh, 4.25rem);
  min-height: calc(100dvh - 92px);
  display: grid;
  align-items: center;
}
.configurator-page .cfg-hero-grid { gap: clamp(1.5rem, 4vw, 4rem); }
.configurator-page .cfg-hero h1 {
  font-size: clamp(2.45rem, 4.5vw, 5.15rem);
  margin: .45rem 0 .9rem;
  line-height: .94;
}
.configurator-page .cfg-hero p { line-height: 1.55; margin-block: .55rem; }
.configurator-page .cfg-hero .button-row { margin-top: 1.15rem; }
.configurator-page .cfg-hero-panel { padding: clamp(1.35rem, 2.5vw, 2rem); gap: .5rem 1rem; }

.configurator-page .cfg-workspace {
  padding-block: clamp(1.4rem, 2.7vh, 2.5rem);
  min-height: calc(100dvh - 92px);
  scroll-margin-top: 88px;
}
.configurator-page .cfg-workspace > .shell { max-width: 1240px; }
.configurator-page .cfg-workspace-head { align-items: center; }
.configurator-page .cfg-workspace-head .eyebrow { margin-bottom: .2rem; }
.configurator-page .cfg-workspace-head h2 {
  font-size: clamp(1.55rem, 2.25vw, 2.65rem);
  line-height: 1;
  margin: .15rem 0 0;
  white-space: nowrap;
}
.configurator-page .cfg-workspace-head > p {
  margin: 0;
  font-size: .86rem;
}
.configurator-page .progress { margin: .8rem 0 1rem; height: 5px; }
.configurator-page .cfg-card-shell {
  max-width: 1180px;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,.13);
  background: #0b2942;
  border-radius: 1.15rem;
  overflow: hidden;
  box-shadow: 0 22px 55px rgba(0,0,0,.16);
}
.configurator-page .cfg-step {
  max-width: none;
  margin: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: clamp(1rem, 2.1vh, 1.7rem) clamp(1.15rem, 2.4vw, 2rem) .8rem;
}
.configurator-page .cfg-step legend {
  font-size: clamp(1.55rem, 2.55vw, 2.65rem);
  line-height: 1;
  margin-bottom: .35rem;
}
.configurator-page .question { margin: .15rem 0 .75rem; font-size: .98rem; }
.configurator-page .choice-grid { gap: .55rem; }
.configurator-page .choice-grid span {
  min-height: 50px;
  padding: .68rem .85rem;
  font-size: .91rem;
}
.configurator-page .text-field { margin-top: .75rem; gap: .3rem; }
.configurator-page .text-field input,
.configurator-page .text-field textarea { padding: .65rem .8rem; }
.configurator-page .text-field textarea { min-height: 68px; max-height: 90px; }
.configurator-page .hint { margin: .55rem 0 0; line-height: 1.35; }
.configurator-page .subquestion { margin: .85rem 0 .55rem; }
.configurator-page .cfg-question-group + .cfg-question-group {
  padding-top: .7rem;
  margin-top: .7rem;
}
.configurator-page .cfg-question-group .question { margin-bottom: .55rem; }
.configurator-page .wizard-actions {
  max-width: none;
  margin: 0;
  padding: .75rem clamp(1.15rem, 2.4vw, 2rem);
  border-top: 1px solid rgba(255,255,255,.12);
  background: rgba(2,15,26,.22);
  align-items: center;
}
.configurator-page .wizard-actions .button {
  min-height: 44px;
  padding-block: .72rem;
}
.configurator-page .form-error {
  max-width: none;
  margin: .4rem clamp(1.15rem, 2.4vw, 2rem);
}
.configurator-page .whatsapp-float { bottom: 18px; right: 18px; }

/* Final step and conversion review: denser without changing content or flow. */
@media (min-width: 901px) {
  .configurator-page .cfg-step[data-step="7"] {
    padding-top: clamp(.7rem, 1.35vh, 1rem);
    padding-bottom: .45rem;
  }
  .configurator-page .cfg-step[data-step="7"] legend { margin-bottom: .25rem; }
  .configurator-page .cfg-step[data-step="7"] .question { margin-bottom: .42rem; }
  .configurator-page .cfg-step[data-step="7"] .choice-grid { gap: .4rem; }
  .configurator-page .cfg-step[data-step="7"] .choice-grid span {
    min-height: 42px;
    padding-block: .45rem;
  }
  .configurator-page .cfg-step[data-step="7"] .hint { margin-top: .3rem; }
  .configurator-page .cfg-step[data-step="7"] .cfg-question-group + .cfg-question-group {
    padding-top: .38rem;
    margin-top: .38rem;
  }
  .configurator-page .cfg-step[data-step="7"] .text-field { margin-top: .38rem; }
  .configurator-page .cfg-step[data-step="7"] .text-field textarea {
    min-height: 46px;
    max-height: 54px;
  }
  .configurator-page .cfg-review {
    max-width: 1180px;
    padding: clamp(1.1rem, 2vh, 1.55rem) clamp(1.25rem, 2.4vw, 2rem);
  }
  .configurator-page .review-head { align-items: center; }
  .configurator-page .review-head h2 {
    font-size: clamp(1.45rem, 2.05vw, 2.15rem);
    line-height: 1.08;
    margin: .25rem 0 .85rem;
    max-width: 900px;
  }
  .configurator-page .cfg-review dl {
    gap: .45rem;
    margin-bottom: 1.05rem;
  }
  .configurator-page .cfg-review dl div { padding: .58rem .75rem; }
  .configurator-page .cfg-review dd { margin-top: .15rem; line-height: 1.25; }
  .configurator-page .cfg-review form > fieldset > legend,
  .configurator-page .cfg-review .contact-pref legend {
    font-size: clamp(1.25rem, 1.8vw, 1.65rem);
    margin-bottom: .35rem;
  }
  .configurator-page .contact-grid { gap: .45rem .75rem; }
  .configurator-page .contact-grid label { gap: .3rem; margin-top: .35rem; }
  .configurator-page .contact-grid input { padding: .65rem .8rem; }
  .configurator-page .contact-pref { margin-top: .9rem !important; }
  .configurator-page .contact-pref .choice-grid span { min-height: 44px; padding-block: .55rem; }
  .configurator-page .privacy-check { margin: .85rem 0; }
  .configurator-page .whatsapp-submit { min-height: 44px; }
  .configurator-page .cfg-review .hint { margin-bottom: .25rem; }
}

@media (min-width: 901px) and (max-height: 820px) {
  .configurator-page .cfg-hero { padding-block: 1.5rem; }
  .configurator-page .cfg-hero h1 { font-size: clamp(2.35rem, 4vw, 4.35rem); }
  .configurator-page .cfg-hero p { font-size: 1rem; line-height: 1.45; }
  .configurator-page .cfg-hero-panel { padding: 1.25rem; }
  .configurator-page .cfg-workspace { padding-block: .85rem; }
  .configurator-page .cfg-workspace-head h2 { font-size: clamp(1.45rem, 2vw, 2.2rem); }
  .configurator-page .progress { margin: .55rem 0 .65rem; }
  .configurator-page .cfg-step { padding-top: .75rem; padding-bottom: .55rem; }
  .configurator-page .cfg-step legend { font-size: clamp(1.4rem, 2.25vw, 2.2rem); }
  .configurator-page .choice-grid { gap: .42rem; }
  .configurator-page .choice-grid span { min-height: 44px; padding: .55rem .75rem; font-size: .86rem; }
  .configurator-page .wizard-actions { padding-block: .55rem; }
  .configurator-page .wizard-actions .button { min-height: 40px; padding-block: .58rem; }
  .configurator-page .text-field { margin-top: .55rem; }
  .configurator-page .text-field textarea { min-height: 54px; max-height: 62px; }
  .configurator-page .cfg-question-group + .cfg-question-group { padding-top: .48rem; margin-top: .48rem; }
  .configurator-page .hint { font-size: .78rem; margin-top: .35rem; }
  .configurator-page .cfg-step[data-step="7"] { padding-top: .58rem; padding-bottom: .38rem; }
  .configurator-page .cfg-step[data-step="7"] legend { margin-bottom: .22rem; }
  .configurator-page .cfg-step[data-step="7"] .question { margin-bottom: .38rem; }
  .configurator-page .cfg-step[data-step="7"] .choice-grid { gap: .34rem; }
  .configurator-page .cfg-step[data-step="7"] .choice-grid span { min-height: 40px; padding-block: .42rem; }
  .configurator-page .cfg-step[data-step="7"] .cfg-question-group + .cfg-question-group {
    padding-top: .3rem;
    margin-top: .3rem;
  }
  .configurator-page .cfg-step[data-step="7"] .text-field { margin-top: .3rem; }
  .configurator-page .cfg-step[data-step="7"] .text-field textarea { min-height: 44px; max-height: 48px; }
  .configurator-page .cfg-review { padding-top: .8rem; padding-bottom: .8rem; }
  .configurator-page .review-head h2 { font-size: clamp(1.35rem, 1.9vw, 1.8rem); margin-bottom: .65rem; }
  .configurator-page .cfg-review dl { margin-bottom: .75rem; }
}

@media (max-width: 900px) {
  .configurator-page .cfg-hero { min-height: auto; padding-block: 3rem; }
  .configurator-page .cfg-workspace { min-height: auto; padding-block: 2.5rem; }
  .configurator-page .cfg-workspace-head h2 { white-space: normal; }
}
@media (max-width: 600px) {
  .configurator-page .cfg-hero { padding-block: 2.4rem; }
  .configurator-page .cfg-workspace { padding-block: 2rem; }
  .configurator-page .cfg-workspace-head { display: grid; gap: .5rem; }
  .configurator-page .cfg-workspace-head h2 { font-size: 1.65rem; }
  .configurator-page .progress { margin: .65rem 0 .9rem; }
  .configurator-page .cfg-card-shell { border-radius: .9rem; }
  .configurator-page .cfg-step { padding: 1rem .9rem .7rem; }
  .configurator-page .cfg-step legend { font-size: 1.7rem; }
  .configurator-page .choice-grid span { min-height: 52px; font-size: .92rem; }
  .configurator-page .wizard-actions { padding: .75rem .9rem; gap: .6rem; }
  .configurator-page .wizard-actions .button { flex: 1; justify-content: center; }
  .configurator-page .cfg-review { padding: 1rem .9rem; }
  .configurator-page .review-head h2 { font-size: 1.55rem; margin-bottom: .8rem; }
  .configurator-page .cfg-review dl { gap: .55rem; margin-bottom: 1.2rem; }
  .configurator-page .cfg-review dl div { padding: .75rem; }
  .configurator-page .contact-grid label { margin-top: .7rem; }
  .configurator-page .whatsapp-float { bottom: 76px; right: 10px; transform: scale(.86); transform-origin: bottom right; }
}
@media (prefers-reduced-motion: reduce) {
  .configurator-page * { scroll-behavior: auto !important; }
}
