/* Paleta ByKerly: rosado, negro, blanco y dorado (estilo boutique de lencería). */
:root {
  --black: #0b0a0b;
  --ink: #1c171a;
  --muted: #7a6b72;
  --pink: #e8579b;
  --pink-deep: #c93a7e;
  --pink-soft: #fde6f0;
  --pink-pale: #fff5f9;
  --gold: #c8a45a;
  --gold-light: #e6cf98;
  --line: #ecd8e1;
  --error: #c62828;
  --serif: "Didot", "Bodoni 72", "Playfair Display", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  font: 16px/1.45 var(--sans);
  /* Rayas verticales rosadas, muy suaves */
  background:
    repeating-linear-gradient(90deg, var(--pink-pale) 0 26px, #fdeef5 26px 52px);
  background-attachment: fixed;
}

/* ── Encabezado negro con brillo rosado y detalle dorado ── */
.hero {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(232, 87, 155, .32) 0%, rgba(232, 87, 155, 0) 60%),
    var(--black);
  color: #fff;
  text-align: center;
  padding: max(26px, env(safe-area-inset-top)) 16px 64px;
  border-bottom: 1px solid var(--gold);
}
.hero .logo {
  width: 132px; height: 132px; border-radius: 50%; display: block; margin: 0 auto 14px;
  box-shadow: 0 0 0 1px rgba(200, 164, 90, .55), 0 10px 40px rgba(232, 87, 155, .35);
}
.hero h1 {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: 1.55rem; letter-spacing: .14em; text-transform: uppercase;
}
.hero p { margin: 0 auto; max-width: 30em; color: #f6cfe1; font-size: .95rem; }

.divider { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 12px auto 12px; max-width: 220px; color: var(--gold); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.divider span { font-size: .8rem; color: var(--pink); }

/* ── Tarjeta ── */
.card {
  max-width: 520px;
  margin: -40px auto 0;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(200, 164, 90, .45);
  box-shadow: 0 14px 40px rgba(60, 15, 35, .14);
  padding: 24px 18px 20px;
  position: relative;
}
.card::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--pink), var(--gold-light), var(--pink));
}
@media (max-width: 552px) { .card { margin-left: 16px; margin-right: 16px; } }

.step { display: flex; flex-direction: column; gap: 15px; }
.step[hidden], [hidden] { display: none !important; }
.step h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; text-align: center; }
.step > p { margin: 0; }

/* ── Pasos del formulario de datos ── */
.progress {
  list-style: none; margin: 0 0 2px; padding: 0;
  display: flex; justify-content: center; gap: 0; counter-reset: none;
}
.progress li {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px;
  position: relative; color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
}
.progress li + li::before {
  content: ""; position: absolute; top: 15px; right: 50%; width: 100%; height: 1px;
  background: var(--line); z-index: 0;
}
.progress li.on + li::before, .progress li.done + li::before { background: var(--gold); }
.progress b {
  position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); color: var(--muted);
  font-family: var(--serif); font-weight: 400; font-size: .95rem;
}
.progress li.on { color: var(--ink); font-weight: 600; }
.progress li.on b { background: var(--black); color: #fff; border-color: var(--gold); box-shadow: 0 0 0 3px var(--pink-soft); }
.progress li.done b { background: var(--pink-soft); color: var(--pink-deep); border-color: var(--gold); }

.sec { display: flex; flex-direction: column; gap: 13px; }
.sec h3 {
  margin: 4px 0 2px; font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 1.3rem; color: var(--pink-deep);
}
.sub { display: flex; flex-direction: column; gap: 13px; }

/* Ciudades principales de la provincia: un toque y listo */
.tips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: -5px; }
.tip {
  font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer;
  padding: 7px 13px; border-radius: 99px;
  border: 1px solid var(--gold); background: #fff; color: var(--ink);
}
.tip.on { background: var(--black); color: #fff; box-shadow: inset 0 -2px 0 var(--pink); }

.nav { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 4px; }
.nav [data-back][hidden] + [data-next] { grid-column: 1 / -1; }

label {
  display: flex; flex-direction: column; gap: 6px;
  font-weight: 600; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
}
.opt {
  font-style: normal; font-weight: 400; color: var(--muted); font-size: .72rem;
  letter-spacing: .02em; text-transform: none; margin-left: 6px;
}

input, select {
  font: inherit;
  font-size: 16px; /* 16px evita el zoom automático de iOS */
  letter-spacing: normal;
  text-transform: none;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 400;
  appearance: none;
  -webkit-appearance: none;
}
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
input::placeholder { color: #b9a9b1; }
input:focus, select:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); }
input.invalid, select.invalid { border-color: var(--error); box-shadow: 0 0 0 3px #fde4e4; }

.pin { text-align: center; font-size: 26px; letter-spacing: 12px; font-weight: 600; padding: 10px; }
#step-pin .pin { max-width: 200px; align-self: center; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row > label { justify-content: space-between; } /* campos alineados aunque una etiqueta ocupe 2 líneas */
@media (max-width: 380px) { .row { grid-template-columns: 1fr; } }

/* ── Domicilio / oficina ── */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg-opt { position: relative; letter-spacing: normal; text-transform: none; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 60px; padding: 8px; border: 1px solid var(--line); border-radius: 12px;
  font-weight: 600; font-size: .88rem; cursor: pointer; background: #fff;
}
.seg-opt input:checked + span { background: var(--black); color: #fff; border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.seg-opt input:focus-visible + span { box-shadow: 0 0 0 3px var(--pink-soft); }

.check {
  flex-direction: row; align-items: flex-start; gap: 10px;
  font-weight: 400; font-size: .9rem; letter-spacing: normal; text-transform: none;
}
.check input { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 1px; appearance: auto; -webkit-appearance: checkbox; accent-color: var(--pink); }

/* ── Botones ── */
.btn {
  display: block; width: 100%; text-align: center; text-decoration: none;
  font: inherit; font-weight: 600; font-size: .92rem; letter-spacing: .16em; text-transform: uppercase;
  padding: 16px; border: 0; border-radius: 10px;
  background: var(--black); color: #fff; cursor: pointer;
  box-shadow: inset 0 -2px 0 var(--pink);
}
.btn:active { background: var(--pink-deep); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:active { background: var(--pink-soft); }

.link { background: none; border: 0; color: var(--muted); font: inherit; font-size: .9rem; padding: 6px; cursor: pointer; }
a { color: var(--pink-deep); font-weight: 600; }

.muted { color: var(--muted); font-size: .9rem; margin: 0; }
.center { text-align: center; }

.chip {
  align-self: flex-start; margin: 0; padding: 5px 12px; border-radius: 99px;
  background: var(--pink-soft); color: var(--pink-deep); font-weight: 600; font-size: .82rem;
  border: 1px solid rgba(200, 164, 90, .5);
}

.alert {
  margin-bottom: 14px; padding: 11px 13px; border-radius: 10px;
  background: #fdecec; color: var(--error); font-weight: 600; font-size: .93rem;
}

.done { text-align: center; align-items: center; }
.done .big { font-size: 2.6rem; line-height: 1; color: var(--pink); }
.done p { color: var(--muted); }

.turnstile:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.foot {
  text-align: center; color: var(--muted); font-size: .8rem; letter-spacing: .04em;
  padding: 20px 16px max(24px, env(safe-area-inset-bottom));
}
