/* Páginas de compra (hosting.html y website.html): mismos tokens y vidrio que index.html;
   pasos a la izquierda, resumen fijo a la derecha */
:root {
  --bg: #eaf1f7;
  --fg: #0b2148;
  --fg-soft: rgba(11, 33, 72, .68);
  --fg-mute: rgba(11, 33, 72, .5);
  --navy: #0b2148;
  --teal: #12b5c1;
  --steel: #4a4f58;
  --danger: #c62f3a;
  --grad: linear-gradient(120deg, #10a9b8 0%, #1a8fd6 45%, #1e55d0 100%);
  --on-accent: #ffffff;
  --glass: rgba(255, 255, 255, .34);
  --glass-strong: rgba(255, 255, 255, .55);
  --glass-edge: rgba(255, 255, 255, .85);
  --glass-edge-dim: rgba(255, 255, 255, .25);
  --glass-shadow: rgba(16, 45, 95, .14);
  --sheen: rgba(255, 255, 255, .55);
  --hairline: rgba(11, 33, 72, .1);
  --blob-a: #3fd7e6;
  --blob-b: #2b7bea;
  --blob-c: #8be8e0;
  --blob-d: #1b3f8f;
  --field: rgba(255, 255, 255, .5);
  --font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 12px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #040b19;
    --fg: #e8f1fb;
    --fg-soft: rgba(232, 241, 251, .72);
    --fg-mute: rgba(232, 241, 251, .5);
    --navy: #e8f1fb;
    --steel: #a9b4c4;
    --danger: #ff7b84;
    --glass: rgba(255, 255, 255, .06);
    --glass-strong: rgba(255, 255, 255, .1);
    --glass-edge: rgba(255, 255, 255, .38);
    --glass-edge-dim: rgba(255, 255, 255, .06);
    --glass-shadow: rgba(0, 0, 0, .45);
    --sheen: rgba(120, 230, 255, .16);
    --hairline: rgba(232, 241, 251, .1);
    --blob-a: #0f8fa0;
    --blob-b: #1a4fc0;
    --blob-c: #0b5f73;
    --blob-d: #2a2f8f;
    --field: rgba(255, 255, 255, .06);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #040b19;
  --fg: #e8f1fb;
  --fg-soft: rgba(232, 241, 251, .72);
  --fg-mute: rgba(232, 241, 251, .5);
  --navy: #e8f1fb;
  --steel: #a9b4c4;
  --danger: #ff7b84;
  --glass: rgba(255, 255, 255, .06);
  --glass-strong: rgba(255, 255, 255, .1);
  --glass-edge: rgba(255, 255, 255, .38);
  --glass-edge-dim: rgba(255, 255, 255, .06);
  --glass-shadow: rgba(0, 0, 0, .45);
  --sheen: rgba(120, 230, 255, .16);
  --hairline: rgba(232, 241, 251, .1);
  --blob-a: #0f8fa0;
  --blob-b: #1a4fc0;
  --blob-c: #0b5f73;
  --blob-d: #2a2f8f;
  --field: rgba(255, 255, 255, .06);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

svg {
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0;
  text-wrap: balance;
  letter-spacing: -.02em;
  overflow-wrap: break-word;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Fondo vivo ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .75;
  animation: drift 26s ease-in-out infinite alternate;
}

.blob.a {
  width: 46vw;
  height: 46vw;
  left: -8vw;
  top: -10vw;
  background: var(--blob-a);
}

.blob.b {
  width: 40vw;
  height: 40vw;
  right: -10vw;
  top: 18vh;
  background: var(--blob-b);
  animation-duration: 32s;
  animation-delay: -8s;
}

.blob.c {
  width: 34vw;
  height: 34vw;
  left: 28vw;
  top: 70vh;
  background: var(--blob-c);
  animation-duration: 29s;
  animation-delay: -4s;
}

.blob.d {
  width: 30vw;
  height: 30vw;
  right: 12vw;
  bottom: -12vw;
  background: var(--blob-d);
  opacity: .45;
  animation-duration: 35s;
}

@keyframes drift {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(6vw, 4vh) scale(1.12);
  }

  100% {
    transform: translate(-4vw, 8vh) scale(.94);
  }
}

.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--hairline) 1px, transparent 1px), linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}

/* ---------- Vidrio líquido ---------- */
.glass {
  position: relative;
  isolation: isolate;
  background: linear-gradient(145deg, var(--glass-strong), var(--glass));
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border-radius: var(--r-lg);
  box-shadow:
    inset 0 1px 0 var(--glass-edge),
    inset 0 -1px 0 var(--glass-edge-dim),
    0 1px 2px var(--glass-shadow),
    0 24px 60px -20px var(--glass-shadow);
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 20%) var(--my, -10%), var(--sheen), transparent 45%);
}

.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: linear-gradient(135deg, var(--glass-edge), var(--glass-edge-dim) 38%, var(--glass-edge-dim) 62%, var(--glass-edge));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

.wrap {
  width: min(1180px, 100%);
  margin-inline: auto;
  padding-inline: 20px;
}

.eyebrow {
  font: 500 .75rem/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: 600 .98rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  padding: 15px 24px;
  border-radius: 999px;
  border: 0;
  transition: transform .2s ease, box-shadow .2s ease;
}

.btn-primary {
  background: var(--grad);
  color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 30px -8px rgba(30, 99, 216, .55);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--fg);
}

.btn-ghost.glass {
  border-radius: 999px;
}

.btn-ghost:hover {
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: .6;
  cursor: progress;
  transform: none;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--fg);
  background: var(--glass-strong);
  box-shadow: inset 0 1px 0 var(--glass-edge);
}

.icon-btn svg {
  width: 19px;
  height: 19px;
}

/* ---------- Nav ---------- */
.nav-shell {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  z-index: 50;
  padding-inline: 20px;
  margin-top: 14px;
}

.nav {
  width: min(1180px, 100%);
  margin-inline: auto;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}

.brand svg {
  width: 42px;
  height: 36px;
  flex: none;
}

.brand-word {
  display: grid;
  line-height: 1;
}

.brand-word b {
  font: 800 1.05rem/1 var(--font-display);
  letter-spacing: .06em;
  color: var(--navy);
}

.brand-word span {
  font: 600 .58rem/1 var(--font-display);
  letter-spacing: .32em;
  color: var(--steel);
  margin-top: 4px;
}

.nav .btn {
  padding: 12px 18px;
  font-size: .92rem;
}

/* ---------- Configurador ---------- */
.page {
  padding-block: clamp(36px, 6vw, 72px) 96px;
}

.page-head {
  display: grid;
  gap: 12px;
  max-width: 640px;
  margin-bottom: 32px;
}

.page-head h1 {
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  font-weight: 800;
  line-height: 1.08;
}

.page-head p {
  color: var(--fg-soft);
}

.banner {
  padding: 14px 18px;
  border-radius: var(--r-sm);
  border: 1px solid var(--hairline);
  background: var(--field);
  font-size: .95rem;
}

.config {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}

.steps-card {
  padding: clamp(22px, 4vw, 36px);
  display: grid;
  gap: 30px;
}

.stepper {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  counter-reset: step;
}

.stepper li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 3px solid var(--hairline);
  font: 600 .84rem/1.2 var(--font-body);
  color: var(--fg-mute);
  min-width: 0;
}

.stepper li::before {
  counter-increment: step;
  content: counter(step);
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 .74rem/1 var(--font-mono);
  background: var(--field);
  border: 1px solid var(--hairline);
}

.stepper li.is-current {
  color: var(--fg);
  border-top-color: var(--teal);
}

.stepper li.is-current::before {
  background: var(--grad);
  color: var(--on-accent);
  border-color: transparent;
}

.stepper li.is-done {
  color: var(--fg-soft);
  border-top-color: var(--teal);
}

.stepper li.is-done::before {
  content: "✓";
  color: var(--teal);
  border-color: var(--teal);
}

.step {
  display: grid;
  gap: 18px;
}

.step h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  font-weight: 800;
  outline: none;
}

.step-lede {
  color: var(--fg-soft);
}

.options {
  display: grid;
  gap: 12px;
  border: 0;
  margin: 0;
  padding: 0;
}

.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--field);
  border: 1px solid var(--hairline);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}

.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option:has(input:checked) {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(18, 181, 193, .18);
}

.option:has(input:focus-visible) {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.option-mark {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: var(--on-accent);
  font: 700 .8rem/1 var(--font-mono);
}

.option-mark svg {
  width: 24px;
  height: 24px;
}

.option b {
  display: block;
  font-weight: 700;
}

.option small {
  color: var(--fg-mute);
  font-size: .88rem;
}

.option-check {
  flex: none;
  margin-left: auto;
  width: 22px;
  height: 22px;
  color: var(--teal);
  opacity: 0;
}

.option:has(input:checked) .option-check {
  opacity: 1;
}

.hint {
  font-size: .88rem;
  color: var(--fg-mute);
}

.notice {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  border: 1px solid rgba(18, 181, 193, .4);
  background: rgba(18, 181, 193, .08);
}

.notice strong {
  font-weight: 700;
}

.notice p {
  color: var(--fg-soft);
  font-size: .96rem;
}

.notice .btn {
  justify-self: start;
  padding: 12px 20px;
  font-size: .92rem;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font: 500 .74rem/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--fg-soft);
}

.field label i {
  color: var(--danger);
  font-style: normal;
}

.field input,
.field select,
.field textarea {
  font: 400 1rem/1.4 var(--font-body);
  color: var(--fg);
  width: 100%;
  background: var(--field);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  padding: 13px 14px;
  transition: border-color .2s, box-shadow .2s;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--fg-mute);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(18, 181, 193, .18);
}

.field select option {
  background: var(--bg);
  color: var(--fg);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

/* Campos en dos columnas (website.html) */
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field-grid .full {
  grid-column: 1 / -1;
}

.options.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pw-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pw-input {
  position: relative;
  flex: 1 1 260px;
}

.field .pw-input input {
  font-family: var(--font-mono);
  padding-right: 52px;
}

.field .pw-input input[aria-invalid="true"] {
  border-color: var(--danger);
}

.pw-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--fg-soft);
  background: transparent;
}

.pw-eye:hover {
  color: var(--fg);
  background: var(--glass-strong);
}

.pw-eye svg {
  width: 19px;
  height: 19px;
}

.pw-row .btn {
  padding: 13px 20px;
  font-size: .92rem;
}

.rules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
  font-size: .88rem;
  color: var(--fg-mute);
}

.rules li {
  display: flex;
  gap: 8px;
  align-items: center;
}

.rules li::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
}

.rules li.ok {
  color: var(--fg);
}

.rules li.ok::before {
  background: var(--teal);
  border-color: var(--teal);
}

.review {
  margin: 0;
  display: grid;
  border-top: 1px solid var(--hairline);
}

.review>div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}

.review dt {
  font: 500 .74rem/1.4 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--fg-mute);
}

.review dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.review dd small {
  display: block;
  font-weight: 400;
  font-size: .9rem;
  color: var(--fg-soft);
}

.edit-link {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font: 600 .88rem/1 var(--font-body);
  color: var(--teal);
}

.edit-link:hover {
  text-decoration: underline;
}

.total {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 16px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(18, 181, 193, .16), rgba(30, 99, 216, .12));
}

.total span {
  color: var(--fg-soft);
}

.total b {
  font: 800 2rem/1 var(--font-display);
  color: var(--navy);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.total small {
  display: block;
  flex-basis: 100%;
  font: 500 .8rem/1.4 var(--font-mono);
  color: var(--fg-mute);
}

.terms {
  font-size: .88rem;
  color: var(--fg-mute);
}

.terms a {
  color: var(--teal);
}

.step-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
}

.step-nav .btn-primary {
  margin-left: auto;
}

.form-error {
  flex-basis: 100%;
  color: var(--danger);
  font-size: .92rem;
}

.form-error:empty {
  display: none;
}

/* ---------- Resumen ---------- */
.summary {
  position: sticky;
  top: 104px;
  padding: 26px;
  display: grid;
  gap: 18px;
}

.summary h2 {
  font-size: 1.1rem;
  font-weight: 800;
}

.summary-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.summary-price b {
  font: 800 2.2rem/1 var(--font-display);
  color: var(--navy);
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.summary-price small {
  font: 500 .8rem var(--font-mono);
  color: var(--fg-mute);
}

.specs {
  list-style: none;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--hairline);
  display: grid;
  gap: 8px;
  font-size: .93rem;
}

.specs li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.specs svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  color: var(--teal);
}

.picks {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  display: grid;
  gap: 8px;
  font-size: .93rem;
}

.picks div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.picks dt {
  color: var(--fg-soft);
}

.picks dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

/* ---------- Pago completado ---------- */
.done {
  max-width: 620px;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 48px);
  display: grid;
  gap: 16px;
  justify-items: start;
}

.done-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: var(--on-accent);
}

.done-mark svg {
  width: 28px;
  height: 28px;
}

.done h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
}

.done p {
  color: var(--fg-soft);
}

@media (max-width: 920px) {
  .config {
    grid-template-columns: minmax(0, 1fr);
  }

  .summary {
    position: static;
  }
}

@media (max-width: 640px) {
  .stepper li {
    font-size: 0;
    gap: 0;
  }

  .stepper li.is-current {
    font-size: .8rem;
    gap: 8px;
    grid-column: span 1;
  }

  .stepper {
    grid-template-columns: auto auto auto auto;
    justify-content: start;
  }

  .rules,
  .field-grid,
  .options.two {
    grid-template-columns: minmax(0, 1fr);
  }

  .review>div {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .review dd {
    grid-column: 1;
  }

  .review .edit-link {
    grid-row: 1;
    grid-column: 2;
  }

  .back-label {
    display: none;
  }

  .glass {
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
