*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --accent: #5f4b8b;
  --accent-hover: #6e5a9f;
  --accent-light: #7b68ae;
  --accent-dark: #4a3a6f;
  --accent-glow: rgba(95, 75, 139, 0.4);
  --green: #48bb78;
  --white: #ffffff;
  --dark-1: #1a1a1a;
  --dark-2: #2d2d2d;
  --dark-3: #404040;
  --card-bg: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.15);
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
html,
body {
  width: 100%;
  overflow-x: hidden;
  font-family: "DM Sans", sans-serif;
  background: var(--dark-1);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* TOPBAR */
.topbar {
  background: var(--dark-1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 24px;
  font-size: 0.78rem;
  z-index: 100;
  position: relative;
}
.topbar__inner {
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.topbar__promo {
  color: #5f4b8b;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.topbar__contact {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}
.topbar__contact a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.topbar__contact a:hover {
  color: #5f4b8b;
}
.topbar__contact span {
  color: rgba(255, 255, 255, 0.4);
  margin: 0 4px;
}
.topbar__social {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar__social a {
  color: var(--white);
  text-decoration: none;
  transition:
    color 0.2s,
    transform 0.2s;
  display: flex;
  align-items: center;
}
.topbar__social a:hover {
  color: #5f4b8b;
  transform: scale(1.1);
}
.topbar__social svg {
  width: 18px;
  height: 18px;
}

/* NAVBAR COMPLETO */
.navbar {
  background: var(--dark-1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 99;
  backdrop-filter: blur(20px);
}
.navbar__inner {
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.navbar__logo {
  font-family: "DM Sans", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  line-height: 1.1;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.navbar__logo small {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
}
.navbar__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: rgba(95, 75, 139, 0.15);
  border: 1.5px solid rgba(95, 75, 139, 0.35);
  border-radius: 10px;
  color: var(--accent-light);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.15s;
  white-space: nowrap;
}
.navbar__back:hover {
  background: rgba(95, 75, 139, 0.28);
  border-color: rgba(95, 75, 139, 0.6);
  transform: translateX(-2px);
}
.navbar__back svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .navbar__inner {
    height: 60px;
  }
  .navbar__logo {
    font-size: 1.2rem;
  }
  .navbar__logo small {
    font-size: 0.9rem;
  }
  .navbar__back {
    padding: 7px 14px;
    font-size: 0.78rem;
  }
}

/* PROGRESS */
.progress-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 98;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent-light));
  transition: width 0.5s var(--ease);
}

/* HERO CONTRATACIÓN */
.hero-contratar {
  position: relative;
  background: linear-gradient(
    135deg,
    var(--dark-1) 0%,
    var(--dark-2) 40%,
    #1f1a2e 100%
  );
  padding: 64px 24px 72px;
  overflow: hidden;
}
.hero-contratar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 60% 50%,
    rgba(95, 75, 139, 0.12) 0%,
    transparent 60%
  );
  pointer-events: none;
}
.hero-contratar__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 5;
}
.hero-contratar__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(95, 75, 139, 0.18);
  border: 1px solid rgba(95, 75, 139, 0.4);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 20px;
}
.hero-contratar__title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.hero-contratar__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-contratar__sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.hero-contratar__pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-contratar__pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
}

/* MAIN */
main {
  padding: 0 24px 80px;
  background: linear-gradient(180deg, #1f1a2e 0%, var(--dark-1) 120px);
}
.container {
  max-width: 960px;
  margin: 0 auto;
  padding-top: 48px;
}

/* TITLES */
.section-title {
  font-family: "Playfair Display", serif;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.5px;
}
.section-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* STEPS */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.3s;
}
.step.active {
  color: var(--white);
}
.step.done {
  color: var(--accent-light);
}
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
  flex-shrink: 0;
}
.step.active .step-num {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
}
.step.done .step-num {
  background: var(--accent-dark);
  border-color: var(--accent);
  color: var(--accent-light);
}
.step-sep {
  width: 32px;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0 4px;
}

/* DISTRIBUIDOR */
.dist-bar {
  background: rgba(95, 75, 139, 0.12);
  border: 1px solid rgba(95, 75, 139, 0.3);
  border-radius: 14px;
  padding: 14px 20px;
  margin: 0 auto 24px;
  max-width: 860px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.dist-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}
.dist-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #5f4b8b;
  cursor: pointer;
  flex-shrink: 0;
}
.dist-code {
  display: none;
  flex: 1;
  min-width: 180px;
}
.dist-code.visible {
  display: block;
}
.dist-code input {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  padding: 9px 14px;
  width: 100%;
  outline: none;
  transition: border 0.2s;
}
.dist-code input:focus {
  border-color: #5f4b8b;
}
.dist-code input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

/* FORM SECTIONS */
.form-section {
  display: none;
  animation: fadeUp 0.4s var(--ease);
}
.form-section.active {
  display: block;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sec-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800;
  margin-bottom: 8px;
}
.sec-sub {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 32px;
  line-height: 1.6;
}

.bloque-titulo {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  margin-top: 40px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* FORM BLOCK TITLE */
.form-block-title {
  font-family: "DM Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin: 28px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(95, 75, 139, 0.3);
}

/* TARIFF CARDS */
.tariff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 8px;
}
.tariff-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 22px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  position: relative;
  display: flex;
  flex-direction: column;
}
.tariff-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--accent);
}
.tariff-card.selected {
  border-color: var(--accent);
  background: rgba(95, 75, 139, 0.14);
  box-shadow: 0 8px 32px var(--accent-glow);
}
.tariff-check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.tariff-card.selected .tariff-check {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}
.tariff-card.selected .tariff-check::after {
  content: "✓";
  font-size: 11px;
  color: white;
  font-weight: 700;
}
.tariff-badge {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
  color: #fff;
  text-align: left;
}
.tariff-badge.top {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
}
.tariff-badge.energy {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
}
.tariff-badge.alarm {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
}
.tariff-badge.tv {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
}
.tariff-badge.movil {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
}
.tariff-badge.fibra {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
}
.tariff-badge.pack {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
}
.tariff-name {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.35;
  padding-right: 28px;
  color: var(--accent-light);
}
.tariff-desc {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.48);
  margin-bottom: 14px;
  line-height: 1.55;
  flex-grow: 1;
}
.tariff-price {
  font-family: "Playfair Display", serif;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
}
.tariff-price sup {
  font-size: 0.82rem;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
}
.tariff-price span {
  font-size: 0.78rem;
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}

/* SELECTED BAR */
.selected-bar {
  background: rgba(95, 75, 139, 0.13);
  border: 1px solid rgba(95, 75, 139, 0.3);
  border-radius: 14px;
  padding: 14px 20px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.selected-bar.hidden {
  display: none;
}
.selected-bar-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 3px;
}
.selected-bar-name {
  font-weight: 700;
  font-size: 0.92rem;
}
.selected-bar-price {
  font-family: "Playfair Display", serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--accent-light);
}

/* FORM GRID */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-full {
  grid-column: 1/-1;
}

/* FIELDS */
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}
.field label span {
  color: #f87171;
  margin-left: 2px;
}
.field input,
.field select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 13px 15px;
  color: var(--white);
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  transition: all 0.2s;
  outline: none;
  width: 100%;
}
.field input::placeholder {
  color: rgba(255, 255, 255, 0.22);
}
.field input:focus,
.field select:focus {
  border-color: var(--accent);
  background: rgba(95, 75, 139, 0.08);
  box-shadow: 0 0 0 3px rgba(95, 75, 139, 0.15);
}
.field input.error {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}
.field select option {
  background: var(--dark-2);
  color: var(--white);
}

/* ── POPUP UPSELL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.visible {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: linear-gradient(135deg, #1f1a2e, var(--dark-2));
  border: 1px solid rgba(95, 75, 139, 0.4);
  border-radius: 24px;
  padding: 36px 32px;
  width: 100%;
  max-width: 520px;
  position: relative;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  animation: modalIn 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.modal__close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: rgba(255, 255, 255, 0.5);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.modal__close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.modal__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(95, 75, 139, 0.18);
  border: 1px solid rgba(95, 75, 139, 0.4);
  border-radius: 16px;
  padding: 5px 12px;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 14px;
}
.modal__title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 8px;
}
.modal__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.modal__sub {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
  margin-bottom: 18px;
}
.modal__tag {
  display: inline-block;
  background: rgba(95, 75, 139, 0.15);
  border: 1px solid rgba(95, 75, 139, 0.3);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.77rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 20px;
}
.upsell-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}
.upsell-options--3col {
  grid-template-columns: repeat(3, 1fr);
}
.upsell-opt {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px 12px;
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
  user-select: none;
}
.upsell-opt:hover {
  border-color: rgba(95, 75, 139, 0.5);
  background: rgba(95, 75, 139, 0.1);
  transform: translateY(-2px);
}
.upsell-opt.checked {
  border-color: var(--accent);
  background: rgba(95, 75, 139, 0.18);
  box-shadow: 0 4px 16px var(--accent-glow);
}
.upsell-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  color: #fff;
  font-weight: 700;
  margin: 0 auto 8px;
  transition: all 0.2s;
}
.upsell-opt.checked .upsell-check {
  background: var(--accent);
  border-color: var(--accent);
}
.upsell-opt__icon {
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.upsell-opt__label {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 3px;
}
.upsell-opt__sub {
  font-size: 0.69rem;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.4;
}
.modal__btns {
  display: flex;
  gap: 10px;
}
.modal__btn-yes {
  flex: 1;
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
  color: #fff;
  border: none;
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.modal__btn-yes:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(95, 75, 139, 0.55);
}
.modal__btn-yes:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.modal__btn-no {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  font-family: "DM Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 14px 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.modal__btn-no:hover {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}
@media (max-width: 440px) {
  .modal {
    padding: 26px 18px;
  }
  .upsell-options {
    gap: 8px;
  }
  .upsell-options--3col {
    grid-template-columns: 1fr;
  }
  .modal__btns {
    flex-direction: column;
  }
}
.upsell-opt--single {
  text-align: left;
  padding: 14px 16px;
}
.upsell-opt--single .upsell-check {
  margin: 0 0 0 0;
  display: inline-flex;
  vertical-align: middle;
  margin-right: 8px;
}
.upsell-opt--single .upsell-opt__label {
  display: inline;
}
.field-hint {
  font-size: 0.73rem;
  color: rgba(255, 255, 255, 0.32);
  margin-top: -3px;
}
.field-error {
  font-size: 0.73rem;
  color: #f87171;
  display: none;
  margin-top: -3px;
}
.field input.error ~ .field-error {
  display: block;
}

/* UPLOAD BOX */
.upload-box {
  background: rgba(255, 255, 255, 0.04);
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
}
.upload-box:hover {
  border-color: var(--accent);
  background: rgba(95, 75, 139, 0.08);
}
.upload-box.uploaded {
  border-color: var(--green);
  border-style: solid;
  background: rgba(72, 187, 120, 0.07);
}
.upload-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.upload-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
}
.upload-hint {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
}
.upload-preview {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--green);
  font-weight: 600;
}
.upload-preview.hidden {
  display: none;
}
.upload-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.upload-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 10px;
  border-radius: 9px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.upload-btn:hover {
  border-color: var(--accent);
  background: rgba(95, 75, 139, 0.15);
  color: var(--white);
}
.upload-btn--cam {
  border-color: rgba(95, 75, 139, 0.4);
  background: rgba(95, 75, 139, 0.1);
  display: none;
}
.upload-btn--cam:hover {
  background: rgba(95, 75, 139, 0.25);
  border-color: var(--accent);
}
.upload-box.uploaded .upload-actions {
  opacity: 0.7;
}
body.is-mobile .upload-btn--cam {
  display: flex;
}

/* OPTION CARDS (porta/alta/cambio) */
.option-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.option-card {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
}
.option-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.option-card.active {
  border-color: var(--accent);
  background: rgba(95, 75, 139, 0.14);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.option-card-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.option-card-label {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.option-card-sub {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.4;
}

/* TOGGLE CHECK */
.check-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}
.toggle-label input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}

/* IBAN NOTE */
.iban-note {
  background: rgba(95, 75, 139, 0.1);
  border: 1px solid rgba(95, 75, 139, 0.25);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 8px;
  line-height: 1.65;
}

/* INCOFISA */
.incofisa-check {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 36px;
  text-align: center;
  margin-bottom: 24px;
}
.check-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.check-icon.loading {
  background: rgba(95, 75, 139, 0.14);
  border: 2px solid var(--accent);
  animation: spin 1s linear infinite;
}
.check-icon.ok {
  background: rgba(72, 187, 120, 0.14);
  border: 2px solid var(--green);
}
.check-icon.risk {
  background: rgba(251, 146, 60, 0.14);
  border: 2px solid #fb923c;
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.check-title {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.check-sub {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.55);
}
.check-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 14px;
}
.check-badge.ok {
  background: rgba(72, 187, 120, 0.14);
  color: var(--green);
  border: 1px solid rgba(72, 187, 120, 0.28);
}
.check-badge.risk {
  background: rgba(251, 146, 60, 0.14);
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.28);
}

/* RISK INFO */
.risk-info {
  background: rgba(251, 146, 60, 0.07);
  border: 1px solid rgba(251, 146, 60, 0.2);
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 20px;
  text-align: left;
}
.risk-info h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fb923c;
  margin-bottom: 8px;
}
.risk-info p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
}

/* SELFIE SECTION */
.selfie-box {
  background: rgba(95, 75, 139, 0.08);
  border: 2px dashed rgba(95, 75, 139, 0.35);
  border-radius: 16px;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  margin-bottom: 20px;
}
.selfie-box:hover {
  border-color: var(--accent);
  background: rgba(95, 75, 139, 0.12);
}
.selfie-box.uploaded {
  border-color: var(--green);
  border-style: solid;
  background: rgba(72, 187, 120, 0.07);
}
.selfie-icon {
  font-size: 2.4rem;
  margin-bottom: 10px;
}
.selfie-label {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.selfie-hint {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
  max-width: 360px;
  margin: 0 auto;
}
.field select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 13px 15px;
  color: var(--white);
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  transition: all 0.2s;
  outline: none;
  width: 100%;
  cursor: pointer;
}
.field select:focus {
  border-color: var(--accent);
  background: rgba(95, 75, 139, 0.08);
  box-shadow: 0 0 0 3px rgba(95, 75, 139, 0.15);
}
.field select option {
  background: var(--dark-2);
  color: var(--white);
}
@media (max-width: 520px) {
  #selfie-opts {
    grid-template-columns: 1fr !important;
  }
}

/* RESUMEN */
.resumen-card {
  background: var(--card-bg);
  border: 2px solid var(--accent);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
.resumen-header {
  background: rgba(95, 75, 139, 0.18);
  border-bottom: 1px solid rgba(95, 75, 139, 0.2);
  padding: 16px 24px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-light);
  display: flex;
  align-items: center;
  gap: 8px;
}
.resumen-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.resumen-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
}
.resumen-row .label {
  color: rgba(255, 255, 255, 0.5);
}
.resumen-row .value {
  font-weight: 600;
}
.resumen-row.total .label {
  font-size: 0.98rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
}
.resumen-row.total .value {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-light);
}
.resumen-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
}

/* LEGAL */
.legal-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 12px;
}
.legal-check:hover {
  background: rgba(95, 75, 139, 0.08);
  border-color: rgba(95, 75, 139, 0.25);
}
.legal-check input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}
.legal-check label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.55;
  cursor: pointer;
}
.legal-check label a {
  color: var(--accent-light);
  text-decoration: underline;
}

/* BUTTONS */
.btn-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-next-only {
  display: flex;
  justify-content: flex-end;
  margin-top: 36px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
  color: white;
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 13px;
  border: none;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  box-shadow: 0 6px 22px var(--accent-glow);
  flex: 1;
  justify-content: center;
  max-width: 260px;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 34px rgba(95, 75, 139, 0.55);
}
.btn-primary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: var(--white);
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 13px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* SUCCESS */
.success-screen {
  text-align: center;
  padding: 48px 24px;
}
.success-icon {
  width: 84px;
  height: 84px;
  background: rgba(72, 187, 120, 0.14);
  border: 2px solid var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 24px;
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 36px rgba(72, 187, 120, 0.18);
}
@keyframes popIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.success-screen h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 14px;
}
.success-screen p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 460px;
  margin: 0 auto 8px;
  line-height: 1.7;
}
.success-risk {
  background: rgba(251, 146, 60, 0.08);
  border: 1px solid rgba(251, 146, 60, 0.2);
  border-radius: 14px;
  padding: 20px;
  margin: 24px auto;
  max-width: 480px;
  text-align: left;
}
.success-risk h4 {
  font-weight: 700;
  color: #fb923c;
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.success-risk p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
}
.btn-home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
  color: white;
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 13px;
  border: none;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  box-shadow: 0 6px 22px var(--accent-glow);
  margin-top: 28px;
}
.btn-home:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 34px rgba(95, 75, 139, 0.55);
}

/* FOOTER */
footer {
  background: linear-gradient(180deg, var(--dark-1) 0%, #0d0d14 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0;
  color: var(--white);
}
.footer__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
/* TOP: 4 columnas centradas */
.footer-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 56px 0 48px;
  border-bottom: 1px solid rgba(95, 75, 139, 0.15);
  text-align: center;
}
.footer-col h3 {
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 14px;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 9px;
}
.footer-col ul li a {
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  font-size: 0.83rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover {
  color: var(--white);
}
/* MID: 3 columnas centradas */
.footer-mid {
  display: grid;
  grid-template-columns: repeat(3, 2fr);
  gap: 32px 40px;
  padding: 40px 0;
  border-bottom: 1px solid rgba(95, 75, 139, 0.15);
  text-align: center;
  justify-items: center;
}
/* LOGOS: fila centrada */
.footer-logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  padding: 44px 0;
  border-bottom: 1px solid rgba(95, 75, 139, 0.15);
}
.footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-logos img {
  height: 50px;
  width: auto;
  object-fit: contain;
  opacity: 0.82;
  transition: opacity 0.3s;
}
.footer-logos img:hover {
  opacity: 1;
}
.footer-logos--aje img {
  height: 58px;
}
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.footer-right__text {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}
.footer-right img {
  height: 40px;
  width: auto;
  object-fit: contain;
  opacity: 0.82;
  transition: opacity 0.3s;
}
.footer-right img:hover {
  opacity: 1;
}
/* BOTTOM */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 0 36px;
  text-align: center;
}
.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.42);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--white);
}
.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}
.footer-copy b {
  color: var(--accent-light);
  font-weight: 700;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
/* RESPONSIVE */
@media (max-width: 968px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    padding: 40px 0 36px;
  }
  .footer-mid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 32px 0;
  }
  .footer-logos-row {
    gap: 28px;
    padding: 36px 0;
  }
  .tariff-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .option-cards {
    grid-template-columns: 1fr;
  }
  .topbar__inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    text-align: center;
  }
  .topbar__promo {
    font-size: 0.7rem;
    white-space: normal;
  }
  .topbar__contact {
    font-size: 0.7rem;
  }
}
@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .tariff-grid {
    grid-template-columns: 1fr;
  }
  main {
    padding: 40px 20px 60px;
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 32px 0 28px;
  }
  .footer-mid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 28px 0;
  }
}
@media (max-width: 480px) {
  .topbar__social {
    display: none;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 28px 0 24px;
  }
  .footer-mid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 0;
  }
  .footer-logos-row {
    flex-direction: column;
    gap: 20px;
    padding: 28px 0;
  }
  .footer-links {
    gap: 16px;
  }
  .footer-bottom {
    padding: 20px 0 28px;
  }
  .step-sep {
    width: 14px;
  }
  .step span {
    display: none;
  }
}