/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --negro:  #0a0b0e;
  --carbon: #14161c;
  --carbon2:#1c1f27;
  --linea:  #2a2e39;
  --texto:  #eef0f4;
  --tenue:  #9aa2b1;
  --rojo:   #e11d2a;
  --rojo-2: #ff3b48;
  --lima:   #c8f31d;
  --ok:     #22c55e;
  --radio:  14px;
  --sombra: 0 12px 32px rgb(0 0 0 / .45);
  color-scheme: dark;
  accent-color: var(--rojo);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--negro);
  color: var(--texto);
  font: 400 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lima); }

.wrap { width: min(100% - 2rem, 1060px); margin-inline: auto; }

h1, h2, h3, .num {
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-weight: 800;
  letter-spacing: .01em;
  margin: 0;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 9vw, 6rem) 0 clamp(2rem, 5vw, 3.5rem); }
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 15% 0%, rgb(225 29 42 / .30), transparent 55%),
    radial-gradient(90% 80% at 95% 15%, rgb(200 243 29 / .12), transparent 60%),
    repeating-linear-gradient(115deg, transparent 0 22px, rgb(255 255 255 / .022) 22px 24px);
}
.hero__inner { position: relative; text-align: center; }
.hero__kicker {
  margin: 0 0 .75rem; text-transform: uppercase; letter-spacing: .22em;
  font-size: .72rem; font-weight: 700; color: var(--lima);
}
.hero__title { font-size: clamp(2.9rem, 12vw, 6.5rem); line-height: .88; text-transform: uppercase; }
.hero__title em { font-style: normal; color: var(--rojo-2); }
.hero__title span { -webkit-text-stroke: 2px var(--texto); color: transparent; }
.hero__facts {
  list-style: none; display: flex; justify-content: center; flex-wrap: wrap;
  gap: clamp(1rem, 5vw, 3rem); margin: 1.75rem 0 0; padding: 0;
}
.hero__facts li { display: grid; }
.hero__facts b { font-family: "Barlow Condensed", sans-serif; font-size: 2.4rem; line-height: 1; }
.hero__facts span { font-size: .7rem; text-transform: uppercase; letter-spacing: .18em; color: var(--tenue); }
.hero__cta { margin-top: 2rem; }
.hero__nota { color: var(--tenue); font-size: .85rem; margin: 1.5rem auto 0; max-width: 46ch; }

/* Ya dentro del formulario, la portada se hace chica y el botón desaparece:
   no tiene caso ofrecer "inscribirme" si ya está inscribiéndose. */
.hero--compacto { padding: 2rem 0 1.25rem; }
.hero--compacto .hero__cta,
.hero--compacto .hero__nota,
.hero--compacto .hero__facts { display: none; }
.hero--compacto .hero__title { font-size: clamp(1.8rem, 6vw, 3rem); }
.hero--compacto .hero__kicker { font-size: .62rem; }

/* ── Botones ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 0; border-radius: 999px; cursor: pointer;
  font: 700 .95rem/1 Inter, sans-serif; padding: 1rem 1.9rem;
  text-decoration: none; transition: transform .12s ease, background .18s ease, opacity .18s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: var(--rojo); color: #fff; box-shadow: 0 6px 20px rgb(225 29 42 / .35); }
.btn--primary:hover { background: var(--rojo-2); }
.btn--primary:disabled { background: var(--linea); color: var(--tenue); box-shadow: none; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--tenue); border: 1px solid var(--linea); }
.btn--ghost:hover { color: var(--texto); border-color: var(--texto); }
.btn[hidden] { display: none; }

/* ── Stepper ────────────────────────────────────────────── */
.stepper {
  list-style: none; display: flex; gap: .5rem; padding: 0;
  margin: clamp(1.5rem, 5vw, 3rem) 0 2rem; overflow-x: auto; scrollbar-width: none;
}
.stepper::-webkit-scrollbar { display: none; }
.stepper li {
  flex: 1 1 0; min-width: 92px; padding-top: .7rem;
  border-top: 3px solid var(--linea);
  font-size: .74rem; text-transform: uppercase; letter-spacing: .12em;
  font-weight: 600; color: var(--tenue); transition: color .25s, border-color .25s;
}
.stepper li[data-estado="activo"] { color: var(--texto); border-top-color: var(--rojo); }
.stepper li[data-estado="hecho"]  { color: var(--lima); border-top-color: var(--lima); }
.stepper li[data-estado="hecho"]::after { content: " ✓"; }

/* ── Pasos ──────────────────────────────────────────────── */
.paso { animation: entra .3s ease both; padding-bottom: 7rem; }
@keyframes entra { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .paso { animation: none; } }
.paso__titulo { font-size: clamp(1.9rem, 6vw, 2.8rem); text-transform: uppercase; }
.paso__sub { color: var(--tenue); margin: .35rem 0 2rem; }
.sub-titulo {
  font-size: 1.25rem; text-transform: uppercase; letter-spacing: .06em;
  margin: 2.5rem 0 1rem; color: var(--lima);
}

/* ── Paquetes ───────────────────────────────────────────── */
.paquetes { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.paquete { position: relative; }
.paquete input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.paquete__card {
  display: flex; flex-direction: column; height: 100%; gap: .85rem;
  background: var(--carbon); border: 2px solid var(--linea); border-radius: var(--radio);
  padding: 1.4rem; cursor: pointer; transition: border-color .18s, background .18s, transform .18s;
}
.paquete:hover .paquete__card { border-color: #414757; transform: translateY(-3px); }
.paquete input:checked + .paquete__card { border-color: var(--rojo); background: var(--carbon2); }
.paquete input:focus-visible + .paquete__card { outline: 3px solid var(--lima); outline-offset: 3px; }
.paquete input:checked + .paquete__card::after {
  content: "✓"; position: absolute; top: -.7rem; right: -.7rem;
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--rojo); color: #fff; display: grid; place-items: center; font-size: .9rem; font-weight: 700;
}
.paquete__top { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.paquete__nombre { font-size: 1.4rem; text-transform: uppercase; }
.paquete__precio { font-family: "Barlow Condensed", sans-serif; font-size: 2rem; font-weight: 800; color: var(--lima); }
.paquete__tag {
  align-self: flex-start; font-size: .66rem; text-transform: uppercase; letter-spacing: .14em;
  font-weight: 700; color: var(--tenue);
}
.paquete__destacado {
  position: absolute; top: -.65rem; left: 1.1rem; z-index: 1;
  background: var(--lima); color: #0a0b0e; font-size: .62rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 999px;
}
.paquete__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; font-size: .88rem; }
.paquete__lista li { padding-left: 1.35rem; position: relative; color: #cfd4de; }
.paquete__lista li::before { content: "▸"; position: absolute; left: 0; color: var(--rojo); }

/* ── Formulario ─────────────────────────────────────────── */
.campos { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.campo { display: grid; gap: .4rem; }
.campo--ancho { grid-column: 1 / -1; }
.campo > span { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--tenue); }
.campo > span i { color: var(--rojo-2); font-style: normal; }
.campo small { font-size: .75rem; color: var(--tenue); }
.campo__aviso--malo { color: #ff9aa2; font-weight: 500; }
.campo input, .campo select {
  width: 100%; padding: .85rem .9rem; font: inherit; color: var(--texto);
  background: var(--carbon); border: 1px solid var(--linea); border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.campo input:focus, .campo select:focus {
  outline: 0; border-color: var(--rojo); box-shadow: 0 0 0 3px rgb(225 29 42 / .2);
}
/* feedback sólo después de que el usuario interactuó */
.campo input:user-invalid, .campo select:user-invalid { border-color: var(--rojo-2); }
.campo input:user-valid, .campo select:user-valid { border-color: rgb(34 197 94 / .55); }
.campo input:user-invalid + small::after,
.campo:has(input:user-invalid) > span::after { content: " — revisa este dato"; color: var(--rojo-2); letter-spacing: 0; text-transform: none; }

/* ── Foto para Facebook ─────────────────────────────────── */
.foto { display: flex; align-items: flex-start; gap: .75rem; flex-wrap: wrap; }
.foto__zona {
  display: grid; place-items: center; gap: .6rem; cursor: pointer;
  min-height: 130px; padding: 1.2rem; flex: 1 1 240px; max-width: 340px;
  background: var(--carbon); border: 2px dashed var(--linea); border-radius: var(--radio);
  transition: border-color .18s, background .18s;
}
.foto__zona:hover { border-color: #414757; background: var(--carbon2); }
.foto__zona:focus-within { border-color: var(--rojo); }
.foto__texto { color: var(--tenue); font-size: .85rem; text-align: center; }
.foto__texto--malo { color: #ff9aa2; }
.foto__previo { max-height: 190px; border-radius: 10px; object-fit: cover; }

/* ── Tallas ─────────────────────────────────────────────── */
.talla-bloque { margin-bottom: 2.5rem; }
.talla-bloque__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; margin-bottom: .9rem; }
.link-tabla {
  background: none; border: 1px solid var(--linea); color: var(--lima); border-radius: 999px;
  padding: .5rem 1rem; font: 600 .8rem Inter, sans-serif; cursor: pointer;
}
.link-tabla:hover { border-color: var(--lima); }
.tallas { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.talla { position: relative; }
.talla input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.talla span {
  display: grid; place-items: center; padding: .95rem .4rem; cursor: pointer;
  background: var(--carbon); border: 2px solid var(--linea); border-radius: 10px;
  font-weight: 700; font-size: .9rem; transition: .15s;
}
.talla input:checked + span { border-color: var(--rojo); background: var(--rojo); color: #fff; }
.talla input:focus-visible + span { outline: 3px solid var(--lima); outline-offset: 2px; }

/* ── Grupo (varios participantes en un mismo pago) ──────── */
.persona {
  display: grid; grid-template-columns: 1fr auto auto; gap: .75rem 1rem; align-items: center;
  background: var(--carbon); border: 1px solid var(--linea); border-radius: var(--radio);
  padding: 1rem 1.2rem; margin-bottom: .7rem;
}
.persona__quien b { display: block; font-size: 1.02rem; }
.persona__quien small { color: var(--tenue); font-size: .82rem; }
.persona__precio { font-family: "Barlow Condensed", sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--lima); }
.persona__acciones { display: flex; gap: .35rem; }
.mini {
  background: var(--carbon2); border: 1px solid var(--linea); color: var(--tenue);
  border-radius: 6px; padding: .35rem .7rem; font: 500 .78rem Inter, sans-serif; cursor: pointer;
}
.mini:hover { color: var(--texto); border-color: var(--texto); }
.btn--bloque { width: 100%; border-style: dashed; margin-top: .5rem; }
@media (max-width: 560px) {
  .persona { grid-template-columns: 1fr auto; }
  .persona__acciones { grid-column: 1 / -1; }
}

/* ── Resumen ────────────────────────────────────────────── */
.resumen__titulo {
  padding: .8rem 1.2rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em;
  font-weight: 700; color: var(--tenue); background: var(--carbon2); border-bottom: 1px solid var(--linea);
}
.resumen__persona {
  display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start;
  padding: .95rem 1.2rem; border-bottom: 1px solid var(--linea);
}
.resumen__persona b { display: block; }
.resumen__foto { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; flex: none; }
.resumen__persona small { display: block; color: var(--tenue); font-size: .8rem; }
.resumen__persona > span { font-weight: 700; white-space: nowrap; }

.resumen { background: var(--carbon); border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; }
.resumen__fila { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 1.2rem; border-bottom: 1px solid var(--linea); }
.resumen__fila dt, .resumen__fila > span:first-child {
  color: var(--tenue); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin: 0;
}
.resumen__fila dd { margin: 0; font-weight: 600; text-align: right; }
.resumen__total { background: var(--carbon2); border-bottom: 0; align-items: center; }
.resumen__total dd, .resumen__total > b {
  font-family: "Barlow Condensed", sans-serif; font-size: 2rem; font-weight: 800; color: var(--lima);
}
.resumen__incluye { padding: 1rem 1.2rem; font-size: .86rem; color: var(--tenue); border-bottom: 1px solid var(--linea); }

/* Lista informativa, NO seleccionable: nada de recuadros ni fondos que
   parezcan botones. Sólo texto con un guion y una línea tenue de separación. */
.metodos__lista { list-style: none; padding: 0; margin: 0; }
.metodos__lista li {
  padding: .55rem 0 .55rem 1.1rem; font-size: .92rem; position: relative;
  border-bottom: 1px solid rgb(42 46 57 / .55);
}
.metodos__lista li:last-child { border-bottom: 0; }
.metodos__lista li::before { content: "–"; position: absolute; left: 0; color: var(--rojo); }
.metodos__lista small { color: var(--tenue); }
.metodos__lista small::before { content: " · "; }

.acepto { display: flex; gap: .7rem; align-items: flex-start; margin: 2rem 0 0; font-size: .9rem; color: var(--tenue); }
.acepto input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; flex: none; }

.error {
  margin-top: 1.25rem; padding: .9rem 1.1rem; border-radius: 10px;
  background: rgb(225 29 42 / .12); border: 1px solid var(--rojo); color: #ffc9cd; font-size: .9rem;
}
.error[hidden] { display: none; }

/* ── Barra inferior ─────────────────────────────────────── */
.barra {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: rgb(10 11 14 / .92); backdrop-filter: blur(12px);
  border-top: 1px solid var(--linea); padding: .8rem 0 calc(.8rem + env(safe-area-inset-bottom));
}
.barra__inner { display: flex; align-items: center; gap: .75rem; }
.barra__total { flex: 1; text-align: right; font-size: .85rem; color: var(--tenue); line-height: 1.25; }
.barra__total b { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 1.55rem; color: var(--texto); }
@media (max-width: 480px) { .btn { padding: .95rem 1.25rem; } }

/* ── Diálogos ───────────────────────────────────────────── */
.dlg {
  border: 1px solid var(--linea); border-radius: var(--radio); background: var(--carbon);
  color: var(--texto); max-width: min(94vw, 900px); padding: 1.75rem; box-shadow: var(--sombra);
}
.dlg::backdrop { background: rgb(0 0 0 / .75); backdrop-filter: blur(3px); }
.dlg h3 { font-size: 1.5rem; text-transform: uppercase; margin-bottom: 1rem; padding-right: 2rem; }
.dlg img { border-radius: 10px; background: #fff; }
.dlg__x {
  position: absolute; top: .75rem; right: .75rem; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--carbon2); border: 1px solid var(--linea); color: var(--texto); cursor: pointer; font-size: .9rem;
}
.dlg__nota, .dlg p { color: var(--tenue); font-size: .88rem; }

/* ── Pie ────────────────────────────────────────────────── */
.pie { border-top: 1px solid var(--linea); margin-top: 4rem; padding: 2.5rem 0 8rem; text-align: center; color: var(--tenue); font-size: .85rem; }
.pie p { margin: .35rem 0; }

/* ── Gracias ────────────────────────────────────────────── */
.estado { text-align: center; padding: clamp(3rem, 10vw, 6rem) 0; }
.estado h1 { font-size: clamp(2.2rem, 8vw, 3.5rem); text-transform: uppercase; margin: 1rem 0 .5rem; }
.estado__folio {
  display: inline-block; margin: 1.5rem 0; padding: 1rem 2rem; border-radius: var(--radio);
  background: var(--carbon); border: 2px dashed var(--linea);
  font-family: "Barlow Condensed", sans-serif; font-size: 2.4rem; letter-spacing: .06em;
}
.estado__detalle { color: var(--tenue); max-width: 52ch; margin-inline: auto; }
.chip {
  display: inline-block; padding: .3rem .8rem; border-radius: 999px;
  font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}
.chip--pagado    { background: rgb(34 197 94 / .16);  color: #6ee7a0; }
.chip--pendiente { background: rgb(234 179 8 / .16);  color: #fcd34d; }
.chip--rechazado, .chip--cancelado { background: rgb(225 29 42 / .16); color: #ff9aa2; }
