/* ─── PÁGINA DESCUENTO ─── */

/* ─── HERO ─── */
.dc-hero {
  position: relative;
  height: 62vh;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.dc-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/about/salonPrincipal.JPEG');
  background-size: cover;
  background-position: center;
  filter: brightness(.38) saturate(.7);
}

.dc-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 40px;
}

.dc-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(50px, 8vw, 92px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: .02em;
  color: var(--cream);
  margin: 16px 0 24px;
}

.dc-hero-content h1 em {
  font-style: italic;
  color: var(--gold-lt);
}

.dc-hero-content p {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: .04em;
  max-width: 520px;
  margin: 0 auto 36px;
}

.dc-hero-cta {
  margin-top: 4px;
}

/* ─── SECCIÓN FORMULARIO ─── */
.dc-form-section {
  background: var(--dark);
  padding: 110px 0;
}

.dc-form-head {
  text-align: center;
  margin-bottom: 56px;
}

.dc-form-head h2 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--cream);
}

.dc-form-head h2 em {
  font-style: italic;
  color: var(--gold-lt);
}

.dc-form-wrap {
  max-width: 720px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 56px 56px 48px;
}

/* ─── PROGRESO ─── */
.dc-progress {
  height: 1px;
  background: rgba(196, 162, 101, .18);
  overflow: hidden;
}

.dc-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-dk), var(--gold));
  transition: width .5s var(--ease);
}

.dc-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-dk);
  margin: 14px 0 40px;
}

/* ─── PASOS ─── */
.dc-step {
  display: none;
  animation: dcFade .5s var(--ease);
}

.dc-step.active {
  display: block;
}

@keyframes dcFade {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dc-q-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 400;
  line-height: 1.25;
  color: var(--cream);
  margin-bottom: 10px;
}

.dc-q-help {
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: .04em;
  margin-bottom: 32px;
}

/* ─── OPCIONES (radio / checkbox) ─── */
.dc-options {
  display: grid;
  gap: 10px;
}

.dc-options.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.dc-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  background: var(--dark);
  padding: 18px 22px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.dc-option:hover {
  border-color: rgba(196, 162, 101, .45);
  background: #1a1922;
}

.dc-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.dc-option-mark {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border: 1px solid var(--gold-dk);
  border-radius: 50%;
  position: relative;
  transition: border-color var(--transition);
}

.dc-option-mark.square {
  border-radius: 0;
}

.dc-option-mark::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  transform: scale(.4);
  transition: opacity var(--transition), transform var(--transition);
}

.dc-option-mark.square::after {
  border-radius: 0;
}

.dc-option-text {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: .03em;
  color: var(--cream);
  line-height: 1.5;
}

.dc-option input:checked ~ .dc-option-mark::after,
.dc-consent input:checked ~ .dc-option-mark::after {
  opacity: 1;
  transform: scale(1);
}

.dc-option:has(input:checked) {
  border-color: var(--gold);
  background: rgba(196, 162, 101, .06);
}

.dc-option input:focus-visible ~ .dc-option-mark,
.dc-consent input:focus-visible ~ .dc-option-mark {
  outline: 1px solid var(--gold-lt);
  outline-offset: 3px;
}

/* ─── ESCALA 1-5 ─── */
.dc-scale-items {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.dc-scale-item {
  position: relative;
  cursor: pointer;
}

.dc-scale-item input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.dc-scale-num {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border: 1px solid var(--border);
  background: var(--dark);
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 300;
  color: var(--cream);
  transition: border-color var(--transition), background var(--transition),
              color var(--transition), transform var(--transition);
}

.dc-scale-item:hover .dc-scale-num {
  border-color: rgba(196, 162, 101, .5);
  background: #1a1922;
}

.dc-scale-item input:checked ~ .dc-scale-num {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
  transform: translateY(-3px);
}

.dc-scale-item input:focus-visible ~ .dc-scale-num {
  outline: 1px solid var(--gold-lt);
  outline-offset: 3px;
}

.dc-scale-ends {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.dc-scale-ends span:last-child {
  text-align: right;
}

/* ─── CAMPOS DE TEXTO ─── */
.dc-fields {
  display: grid;
  gap: 22px;
}

.dc-field label {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.dc-field input,
.dc-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: .03em;
  padding: 10px 0;
  transition: border-color var(--transition);
}

.dc-field textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.7;
}

.dc-field input::placeholder,
.dc-field textarea::placeholder {
  color: rgba(154, 143, 130, .5);
}

.dc-field input:focus,
.dc-field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}

.dc-field.invalid input,
.dc-field.invalid textarea {
  border-bottom-color: #a8564e;
}

/* ─── CONSENTIMIENTO ─── */
.dc-consent {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 6px;
  cursor: pointer;
}

.dc-consent input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.dc-consent .dc-option-mark {
  margin-top: 4px;
}

.dc-consent span.dc-consent-text {
  font-size: 12px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
  letter-spacing: .02em;
}

.dc-consent a {
  color: var(--gold);
  border-bottom: 1px solid var(--border);
}

.dc-consent a:hover {
  color: var(--gold-lt);
}

/* ─── HONEYPOT ─── */
.dc-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ─── NAVEGACIÓN DEL FORM ─── */
.dc-nav {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.dc-nav button {
  min-width: 150px;
  text-align: center;
}

#btnPrev {
  margin-right: auto;
  min-width: 120px;
}

#btnSubmit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

#btnSubmit[disabled] {
  opacity: .55;
  cursor: wait;
}

.dc-spinner {
  width: 12px;
  height: 12px;
  border: 1px solid rgba(7, 6, 10, .3);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: dcSpin .7s linear infinite;
}

@keyframes dcSpin {
  to { transform: rotate(360deg); }
}

.dc-error {
  margin-top: 26px;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: .03em;
  color: #d08a82;
}

.dc-legal-note {
  max-width: 720px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: .06em;
  color: var(--gold-dk);
}

.dc-legal-note a {
  color: var(--gold);
  border-bottom: 1px solid var(--border);
}

/* ─── MODAL ─── */
.dc-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.dc-modal[hidden] {
  display: none;
}

.dc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 6, 10, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: dcFade .4s var(--ease);
}

.dc-modal-box {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--gold-dk);
  padding: 56px 48px 44px;
  text-align: center;
  animation: dcModalIn .55s var(--ease);
}

@keyframes dcModalIn {
  from { opacity: 0; transform: translateY(24px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.dc-modal-box h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 46px);
  font-weight: 300;
  line-height: 1.12;
  color: var(--cream);
}

.dc-modal-box h2 em {
  font-style: italic;
  color: var(--gold-lt);
}

.dc-modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition);
}

.dc-modal-close:hover {
  color: var(--gold);
}

.dc-modal-intro {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--muted);
  letter-spacing: .03em;
  max-width: 400px;
  margin: 0 auto;
}

.dc-reward {
  margin: 28px 0 32px;
}

.dc-reward-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(62px, 12vw, 88px);
  font-weight: 300;
  line-height: 1;
  color: var(--gold);
  letter-spacing: -.01em;
}

/* Premios que no son un porcentaje: «GRATIS», «2+1»… */
.dc-reward-value.largo {
  font-size: clamp(42px, 9vw, 62px);
  letter-spacing: .03em;
}

.dc-reward-label {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--cream);
  margin-top: 14px;
}

.dc-reward-detail {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
  max-width: 380px;
  margin: 14px auto 0;
}

.dc-code-box {
  border: 1px dashed var(--gold-dk);
  padding: 24px 20px;
  margin-bottom: 32px;
}

.dc-code-label {
  display: block;
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.dc-code {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 400;
  letter-spacing: .22em;
  color: var(--cream);
}

.dc-code-valid {
  display: block;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: .06em;
  color: var(--gold-dk);
  margin-top: 12px;
}

.dc-modal-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.dc-modal-foot {
  font-size: 11px;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: .04em;
  color: var(--muted);
  margin-top: 28px;
}

body.dc-modal-open {
  overflow: hidden;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .dc-form-section {
    padding: 80px 0;
  }

  .dc-form-wrap {
    padding: 36px 24px 32px;
  }

  .dc-options.cols-2 {
    grid-template-columns: 1fr;
  }

  .dc-nav {
    flex-direction: column-reverse;
    gap: 12px;
  }

  .dc-nav button {
    width: 100%;
  }

  #btnPrev {
    margin-right: 0;
  }

  .dc-modal-box {
    padding: 44px 24px 32px;
  }

  .dc-modal-actions .btn-primary,
  .dc-modal-actions .btn-ghost {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .dc-hero {
    height: 70vh;
  }

  .dc-option {
    padding: 15px 18px;
  }

  .dc-progress-label {
    font-size: 9px;
    letter-spacing: .22em;
  }
}
