/* ==========================================================================
   UNIVERSITY PRIVATE CLUB — Hoja de estilos
   Identidad: fondo profundo turquesa-negro, acento turquesa vivo y velas de
   trading (verde, rojo y blanco) como elemento gráfico.
   Índice:
   1. Tokens y reset
   2. Utilidades
   3. Estructura general, marca y fondo de velas
   4. Bienvenida
   5. Progreso (velas) y pasos
   6. Campos, selector de país y contadores
   7. Tarjetas y casillas
   8. Etapa exclusiva
   9. Botones y navegación
   10. Procesamiento
   11. Páginas de resultado y calendario
   12. Responsive y movimiento reducido
   ========================================================================== */

/* 1. TOKENS Y RESET ------------------------------------------------------- */
:root {
  --bg-0: #070b16;
  --bg-1: #0b1426;
  --bg-2: #111d36;

  --white: #ffffff;
  --text: #f3faf9;
  --muted: #9eb0c9;

  --accent: #2ee6c3;        /* turquesa vivo: iluminación y acciones */
  --accent-deep: #0f5f5c;   /* turquesa del manual de marca */
  --accent-soft: rgba(46, 230, 195, 0.14);
  --accent-glow: rgba(46, 230, 195, 0.32);

  --up: #2fe08a;            /* vela verde */
  --down: #ff5a6e;          /* vela roja */

  --surface: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.26);

  /* Títulos y textos: Plus Jakarta Sans. Cinzel (afín a Trajan Pro) solo para el encabezado de marca. */
  --font-serif: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-brand: "Cinzel", "Trajan Pro", "Trajan Pro 3", Georgia, "Times New Roman", serif;

  --r: 0.8rem;
  --r-lg: 1rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --gutter: clamp(1.5rem, 7vw, 3rem);
  color-scheme: dark;
}

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

html {
  font-size: 93.75%; /* 15 px base: textos más compactos */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg-0);
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  background:
    radial-gradient(ellipse 60% 45% at 50% -8%, rgba(46, 230, 195, 0.13), transparent 70%),
    radial-gradient(ellipse 55% 40% at 100% 105%, rgba(88, 112, 255, 0.14), transparent 70%),
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[hidden] {
  display: none !important;
}

h1, h2, h3, p {
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: var(--accent);
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* 2. UTILIDADES ----------------------------------------------------------- */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--bg-0);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
  color: var(--bg-0);
}

.rule {
  display: block;
  width: 4rem;
  height: 2px;
  margin: 2rem auto;
  background: linear-gradient(90deg, var(--accent), var(--up));
  border: 0;
  border-radius: 2px;
}

/* 3. ESTRUCTURA, MARCA Y FONDO DE VELAS ----------------------------------- */
.demo-bar {
  position: relative;
  z-index: 2;
  padding: 0.55rem var(--gutter);
  background: var(--accent);
  color: var(--bg-0);
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-header,
.app,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  justify-content: center;
  padding: clamp(1.75rem, 5vw, 3rem) var(--gutter) 0;
}

/*
  Encabezado tipográfico PROVISIONAL.
  Para usar el logo oficial: reemplazar el contenido de <div class="brand"> por
  <img src="assets/logo.svg" alt="University Private Club" width="260">
*/
.brand {
  --brand-size: 1rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  max-width: 100%;
  font-size: var(--brand-size);
  color: var(--white);
  text-align: center;
  line-height: 1.1;
}

.brand__sup {
  font-family: var(--font-brand);
  font-size: 0.5em;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  padding-left: 0.42em;
  color: var(--muted);
}

.brand__main {
  margin-top: 0.3em;
  font-family: var(--font-brand);
  font-size: 1.8em;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.brand__rule {
  display: flex;
  align-items: center;
  gap: 0.8em;
  width: 100%;
  margin-top: 0.7em;
  color: var(--accent);
}

.brand__rule i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

.brand__rule i:last-child {
  background: linear-gradient(270deg, transparent, var(--accent));
}

.brand__rule svg {
  width: 0.95em;
  height: 0.95em;
  flex: none;
  filter: drop-shadow(0 0 6px var(--accent-glow));
}

body[data-screen="welcome"] .brand {
  --brand-size: clamp(1.15rem, 4.5vw, 1.5rem);
}

.app {
  flex: 1;
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 3rem) var(--gutter) 3rem;
  /* evita desplazamiento horizontal durante la transición lateral entre etapas */
  overflow-x: clip;
}

.app:focus {
  outline: none;
}

.screen {
  animation: fadeUp 0.6s var(--ease) both;
}

.site-footer {
  padding: 1.5rem var(--gutter) 2rem;
  border-top: 1px solid var(--line);
  background: rgba(7, 11, 22, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--muted);
}

.site-footer p {
  max-width: 44rem;
  margin: 0 auto;
}

/* 4. BIENVENIDA ----------------------------------------------------------- */
.welcome {
  text-align: center;
}

.welcome__title {
  margin-top: 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.25;
  text-transform: uppercase;
}

.welcome__lead {
  margin-top: 1.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--accent);
}

.welcome__text {
  max-width: 36rem;
  margin: 1.25rem auto 0;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.95rem;
}

.welcome__text strong {
  color: var(--white);
  font-weight: 600;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.features li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.1rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background-color 0.3s var(--ease);
}

.features li:hover {
  border-color: rgba(46, 230, 195, 0.55);
  background: var(--accent-soft);
  transform: translateY(-3px);
}

.features svg {
  width: 1.7rem;
  height: 1.7rem;
  color: var(--accent);
}

.welcome__free {
  margin-top: 1.6rem;
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.welcome__free strong {
  font-weight: 700;
}

.welcome__seats {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2rem;
  padding: 1rem 1.6rem;
  border: 1px solid rgba(46, 230, 195, 0.4);
  border-radius: var(--r-lg);
  background: var(--accent-soft);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.seats {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  height: 1.6rem;
}

.seat {
  position: relative;
  width: 0.55rem;
  height: var(--h, 70%);
  border-radius: 2px;
  background: var(--up);
  box-shadow: 0 0 10px rgba(47, 224, 138, 0.5);
  animation: seatPulse 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 140ms);
}

.seat.is-red {
  background: var(--down);
  box-shadow: 0 0 10px rgba(255, 90, 110, 0.45);
}

.seat.is-white {
  background: var(--white);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.welcome__cta {
  margin-top: 2.5rem;
}

.welcome__time {
  margin-top: 1.1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* 5. PROGRESO (VELAS) Y PASOS -------------------------------------------- */
.progress-wrap {
  margin-bottom: clamp(2rem, 6vw, 3rem);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1.5rem;
  margin-bottom: 0.9rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.meta span:last-child {
  color: var(--accent);
}

.progress__candles {
  display: flex;
  align-items: flex-end;
  gap: 0.3rem;
  height: 2.7rem;
}

.pc {
  position: relative;
  flex: 1 1 0;
  max-width: 1.3rem;
  height: var(--h, 60%);
  color: rgba(255, 255, 255, 0.2);
  transition: color 0.4s var(--ease), filter 0.4s var(--ease), transform 0.4s var(--ease);
}

.pc.is-stage-start {
  margin-left: 0.7rem;
}

.pc::before,
.pc::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.pc::before { /* mecha */
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  border-radius: 1px;
}

.pc::after { /* cuerpo */
  left: 15%;
  right: 15%;
  top: 24%;
  bottom: 20%;
  border-radius: 2px;
}

.pc.is-done {
  color: var(--up);
}

.pc.is-current {
  color: var(--white);
  filter: drop-shadow(0 0 7px var(--accent));
  transform: scaleY(1.12);
  transform-origin: bottom;
  animation: pcPulse 1.8s ease-in-out infinite;
}

.progress__track {
  height: 3px;
  margin-top: 0.7rem;
  overflow: hidden;
  border-radius: 3px;
  background: var(--line);
}

.progress__track i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--up));
  box-shadow: 0 0 12px var(--accent-glow);
  transform: scaleX(var(--fill, 0));
  transform-origin: left center;
  transition: transform 0.6s var(--ease);
}

.step {
  animation: stepIn 0.5s var(--ease) both;
}

.step.is-back {
  animation-name: stepInBack;
}

.step.is-leaving {
  animation: stepOut 0.18s ease both;
}

.step__title {
  margin-bottom: 1.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 3.4vw, 1.45rem);
  font-weight: 700;
  line-height: 1.35;
}

.step__title:focus {
  outline: none;
}

.form-error {
  margin-top: 1.5rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--down);
  border-radius: var(--r);
  background: rgba(255, 90, 110, 0.1);
  font-size: 0.88rem;
}

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

/* 6. CAMPOS, SELECTOR DE PAÍS Y CONTADORES -------------------------------- */
.field {
  margin-bottom: 2.25rem;
}

.field__label {
  display: block;
  margin-bottom: 0.9rem;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 3vw, 1.25rem);
  font-weight: 700;
  line-height: 1.35;
  transition: color 0.3s var(--ease);
}

/* El campo en uso se "enciende" */
.field:focus-within > .field__label {
  color: var(--accent);
}

.field--sub {
  margin: 1.25rem 0 0;
  padding: 1.1rem 1.2rem 1.3rem;
  border: 1px dashed rgba(46, 230, 195, 0.45);
  border-radius: var(--r-lg);
  background: var(--accent-soft);
  animation: fadeUp 0.4s var(--ease) both;
}

.field--sub .field__label {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.input,
.combo__btn {
  display: block;
  width: 100%;
  min-height: 3.4rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--white);
  font-size: 16px; /* ≥16px evita zoom automático en iOS */
  font-weight: 400;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}

.input::placeholder {
  color: #6b7a93;
}

.input:hover,
.combo__btn:hover {
  border-color: rgba(46, 230, 195, 0.55);
}

.input:focus,
.combo__btn:focus-visible,
.combo.is-open .combo__btn {
  outline: none;
  border-color: var(--accent);
  background: rgba(46, 230, 195, 0.08);
  box-shadow: 0 0 0 4px rgba(46, 230, 195, 0.16), 0 0 28px var(--accent-glow);
}

textarea.input {
  min-height: 8.5rem;
  line-height: 1.6;
  resize: vertical;
}

.phone {
  display: grid;
  grid-template-columns: minmax(8.5rem, 9.5rem) minmax(0, 1fr);
  gap: 0.9rem;
}

.phone > * {
  min-width: 0;
}

/* Selector con banderas (country / dial) */
.combo {
  position: relative;
}

.combo__btn {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-align: left;
  cursor: pointer;
}

.combo__value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.combo__value.is-placeholder {
  color: #6b7a93;
}

.combo__chev {
  flex: none;
  width: 0.8rem;
  height: 0.8rem;
  color: var(--muted);
  transition: transform 0.3s var(--ease);
}

.combo.is-open .combo__chev {
  transform: rotate(180deg);
}

.combo__list {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 0.5rem);
  max-height: 17rem;
  margin: 0;
  padding: 0.35rem;
  overflow-y: auto;
  list-style: none;
  border: 1px solid rgba(46, 230, 195, 0.45);
  border-radius: var(--r);
  background: #0f1a30;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55), 0 0 24px rgba(46, 230, 195, 0.12);
  animation: fadeUp 0.2s var(--ease) both;
}

.combo__list:focus {
  outline: none;
}

.combo--dial .combo__list {
  right: auto;
  width: min(21rem, calc(100vw - 2.5rem));
}

.combo__opt {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.7rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  cursor: pointer;
}

.combo__opt.is-active {
  background: var(--accent-soft);
}

.combo__opt[aria-selected="true"] {
  color: var(--accent);
  font-weight: 600;
}

.combo__opt-name {
  flex: 1;
  min-width: 0;
}

.combo__opt-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.flag {
  flex: none;
  width: 1.5rem;
  height: 1.125rem;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.flag--fallback,
.flag--globe {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.125rem;
  flex: none;
  border-radius: 3px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.flag--globe svg {
  width: 0.85rem;
  height: 0.85rem;
}

.counter {
  margin-top: 0.5rem;
  text-align: right;
  font-size: 0.75rem;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}

.counter.is-ok {
  color: var(--up);
}

/* Estados de validación */
.field__error {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.7rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: #ff9aa7;
}

.field__error:empty {
  display: none;
}

.field__error::before {
  content: "!";
  flex: none;
  display: grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.1rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.7rem;
  line-height: 1;
}

.field.is-valid .input,
.field.is-valid .combo__btn {
  border-color: rgba(47, 224, 138, 0.65);
}

.field.has-error .input,
.field.has-error .combo__btn {
  border-color: var(--down);
  box-shadow: 0 0 0 3px rgba(255, 90, 110, 0.16);
}

.field.has-error .card__body,
.field.has-error .check__mark {
  border-color: rgba(255, 90, 110, 0.7);
}

/* Honeypot anti-bots */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 7. TARJETAS Y CASILLAS -------------------------------------------------- */
.cards {
  display: grid;
  gap: 0.75rem;
}

.card {
  position: relative;
  display: block;
  cursor: pointer;
}

.card input,
.check input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.card__body {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 0.95rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease),
    transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card__mark,
.check__mark {
  position: relative;
  flex: none;
  width: 1.3rem;
  height: 1.3rem;
  border: 1.5px solid var(--muted);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.card__mark {
  border-radius: 50%;
}

.check__mark {
  margin-top: 0.15rem;
  border-radius: 0.35rem;
}

.card__mark::after,
.check__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 0.3rem;
  height: 0.6rem;
  border: solid var(--bg-0);
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -50%) rotate(45deg) scale(0);
  transition: transform 0.25s var(--ease);
}

.card__text {
  font-size: 0.97rem;
  font-weight: 400;
  line-height: 1.45;
}

.card:hover .card__body {
  border-color: rgba(46, 230, 195, 0.6);
  background: rgba(46, 230, 195, 0.07);
  transform: translateY(-2px);
}

.card input:checked ~ .card__body {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(46, 230, 195, 0.2), rgba(46, 230, 195, 0.06));
  box-shadow: 0 0 0 1px var(--accent), 0 10px 30px rgba(46, 230, 195, 0.2);
}

.card input:checked ~ .card__body .card__mark,
.check input:checked ~ .check__mark {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.card input:checked ~ .card__body .card__mark::after,
.check input:checked ~ .check__mark::after {
  transform: translate(-50%, -50%) rotate(45deg) scale(1);
}

.card input:checked ~ .card__body .card__text {
  font-weight: 600;
}

.card.is-picked .card__body {
  animation: pick 0.45s var(--ease);
}

.card input:focus-visible ~ .card__body,
.check input:focus-visible ~ .check__mark {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.cards--2 {
  grid-template-columns: 1fr 1fr;
}

.check {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.check:hover,
.check:has(input:checked) {
  border-color: rgba(46, 230, 195, 0.6);
}

.check:has(input:checked) {
  background: var(--accent-soft);
}

.check__text {
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
}

.check__text a {
  position: relative;
  z-index: 1;
}

/* 8. ETAPA EXCLUSIVA ------------------------------------------------------ */
.step--exclusive {
  position: relative;
  padding: clamp(1.75rem, 6vw, 3.25rem) clamp(1.25rem, 5vw, 3rem);
  border: 1px solid transparent;
  border-radius: 1.4rem;
  background:
    linear-gradient(var(--bg-2), #0c1730) padding-box,
    linear-gradient(135deg, var(--accent), rgba(46, 230, 195, 0.1) 40%, var(--up)) border-box;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 50px rgba(46, 230, 195, 0.1);
}

.exclusive__lock {
  display: block;
  box-sizing: content-box;
  width: 1.7rem;
  height: 1.7rem;
  margin: 0 auto 1.25rem;
  padding: 0.9rem;
  border: 1px solid rgba(46, 230, 195, 0.5);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: 0 0 26px var(--accent-glow);
}

.step--exclusive .step__title {
  margin-bottom: 1.25rem;
  text-align: center;
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.exclusive__text {
  max-width: 36rem;
  margin: 0 auto 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--muted);
}

.exclusive__text strong {
  color: var(--white);
  font-weight: 600;
}

.consents {
  display: grid;
  gap: 1rem;
  padding-top: 0.5rem;
}

.consents .field {
  margin: 0;
}

/* 9. BOTONES Y NAVEGACIÓN ------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 3.3rem;
  padding: 0.9rem 2rem;
  border: 1px solid var(--accent);
  border-radius: var(--r);
  background: transparent;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn svg {
  width: 1rem;
  height: 1rem;
  flex: none;
  transition: transform 0.3s var(--ease);
}

.btn--primary {
  border-color: transparent;
  background: linear-gradient(135deg, #2ee6c3, #17b894);
  color: #02221d;
  box-shadow: 0 10px 28px rgba(46, 230, 195, 0.28);
}

.btn--primary:hover {
  color: #02221d;
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(46, 230, 195, 0.45);
}

.btn--primary:hover svg {
  transform: translateX(4px);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: rgba(7, 11, 22, 0.6);
  color: var(--muted);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--white);
}

.btn--ghost:hover svg {
  transform: translateX(-4px);
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn--lg {
  padding: 1.15rem 2.8rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.nav .btn--ghost[hidden] {
  display: block !important;
  visibility: hidden;
}

/* 10. PROCESAMIENTO ------------------------------------------------------- */
.processing {
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.processing__chart {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  height: 3.6rem;
  margin-bottom: 1.75rem;
}

.processing__chart span {
  width: 0.7rem;
  height: var(--h, 60%);
  border-radius: 2px;
  background: var(--up);
  box-shadow: 0 0 12px rgba(47, 224, 138, 0.5);
  transform-origin: bottom;
  animation: bounceBar 1.3s ease-in-out infinite;
  animation-delay: calc(var(--i) * 110ms);
}

/* Altura y retardo de cada vela (sin estilos en línea por la CSP) */
.processing__chart span:nth-child(1) { --i: 0; --h: 40%; }
.processing__chart span:nth-child(2) { --i: 1; --h: 30%; }
.processing__chart span:nth-child(3) { --i: 2; --h: 55%; }
.processing__chart span:nth-child(4) { --i: 3; --h: 48%; }
.processing__chart span:nth-child(5) { --i: 4; --h: 72%; }
.processing__chart span:nth-child(6) { --i: 5; --h: 60%; }
.processing__chart span:nth-child(7) { --i: 6; --h: 90%; }

.processing__chart span.is-red {
  background: var(--down);
  box-shadow: 0 0 12px rgba(255, 90, 110, 0.5);
}

.processing__chart span.is-white {
  background: var(--white);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.processing__title {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 3.4vw, 1.3rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.processing__title:focus {
  outline: none;
}

.processing__text {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.processing__line {
  position: relative;
  width: min(16rem, 70%);
  height: 2px;
  margin-top: 2.25rem;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line);
}

.processing__line::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 35%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--up));
  animation: sweep 1.8s var(--ease) infinite;
}

.processing__demo {
  max-width: 30rem;
  margin-top: 2rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(46, 230, 195, 0.5);
  border-radius: var(--r);
  background: var(--accent-soft);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text);
}

.processing__demo strong {
  color: var(--accent);
}

/* 11. PÁGINAS DE RESULTADO Y CALENDARIO ----------------------------------- */
.result {
  text-align: center;
}

.badge {
  display: grid;
  place-items: center;
  width: 4.2rem;
  height: 4.2rem;
  margin: 0 auto 1.25rem;
  border: 2px solid var(--up);
  border-radius: 50%;
  background: rgba(47, 224, 138, 0.12);
  color: var(--up);
  box-shadow: 0 0 40px rgba(47, 224, 138, 0.35);
  animation: pop 0.7s var(--ease) both;
}

.badge svg {
  width: 1.9rem;
  height: 1.9rem;
}

.badge .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 0.8s var(--ease) 0.4s forwards;
}

.badge--info {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
}

.badge--soft {
  border-color: rgba(255, 90, 110, 0.7);
  background: rgba(255, 90, 110, 0.1);
  color: #ff9aa7;
  box-shadow: 0 0 40px rgba(255, 90, 110, 0.25);
}

.result__eyebrow {
  margin-bottom: 1rem;
}

.result__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 5.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.result__lead {
  margin-top: 1.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--accent);
}

.result__text {
  max-width: 36rem;
  margin: 1.25rem auto 0;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--muted);
}

.result__text strong {
  color: var(--white);
  font-weight: 600;
}

.result__note {
  max-width: 36rem;
  margin: 2rem auto 0;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  font-size: 0.82rem;
  color: var(--muted);
}

.result__thanks {
  margin-top: 2.5rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Mini velas decorativas bajo la insignia */
.mini-candles {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.4rem;
  height: 2.4rem;
  margin: 1.5rem auto 0;
}

.mini-candles span {
  width: 0.5rem;
  height: var(--h, 50%);
  border-radius: 2px;
  background: var(--up);
  box-shadow: 0 0 10px rgba(47, 224, 138, 0.45);
  transform-origin: bottom;
  animation: candleIn 0.7s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}

.mini-candles span.is-red {
  background: var(--down);
  box-shadow: 0 0 10px rgba(255, 90, 110, 0.45);
}

.mini-candles span.is-white {
  background: var(--white);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
}

/* Altura y retardo de cada vela (sin estilos en línea por la CSP) */
.mini-candles span:nth-child(1) { --i: 0; --h: 30%; }
.mini-candles span:nth-child(2) { --i: 1; --h: 42%; }
.mini-candles span:nth-child(3) { --i: 2; --h: 36%; }
.mini-candles span:nth-child(4) { --i: 3; --h: 55%; }
.mini-candles span:nth-child(5) { --i: 4; --h: 48%; }
.mini-candles span:nth-child(6) { --i: 5; --h: 68%; }
.mini-candles span:nth-child(7) { --i: 6; --h: 60%; }
.mini-candles span:nth-child(8) { --i: 7; --h: 82%; }
.mini-candles span:nth-child(9) { --i: 8; --h: 100%; }

/* Tendencia bajista: velas en orden inverso de altura */
.mini-candles--down span:nth-child(1) { --h: 100%; }
.mini-candles--down span:nth-child(2) { --h: 82%; }
.mini-candles--down span:nth-child(3) { --h: 90%; }
.mini-candles--down span:nth-child(4) { --h: 62%; }
.mini-candles--down span:nth-child(5) { --h: 70%; }
.mini-candles--down span:nth-child(6) { --h: 48%; }
.mini-candles--down span:nth-child(7) { --h: 52%; }
.mini-candles--down span:nth-child(8) { --h: 36%; }
.mini-candles--down span:nth-child(9) { --h: 30%; }

/* Lateral */
.mini-candles--flat span:nth-child(odd) { --h: 55%; }
.mini-candles--flat span:nth-child(even) { --h: 40%; }

/* Recorrido de admisión (felicitaciones) */
.journey {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  max-width: 36rem;
  margin: 2.25rem auto 0;
  padding: 0;
  list-style: none;
}

.journey li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--muted);
}

.journey__dot {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
}

.journey li.is-done {
  border-color: rgba(47, 224, 138, 0.5);
  color: var(--text);
}

.journey li.is-done .journey__dot {
  border-color: var(--up);
  background: var(--up);
  color: var(--bg-0);
}

.journey li.is-now {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 28px var(--accent-glow);
  color: var(--white);
  font-weight: 600;
}

.journey li.is-now .journey__dot {
  border-color: var(--accent);
  color: var(--accent);
  animation: pcPulse 1.8s ease-in-out infinite;
}

.agenda {
  margin-top: 3.5rem;
}

.agenda__title {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 3.2vw, 1.2rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Agenda de llamadas (agenda.js) */
.agenda__sub {
  max-width: 30rem;
  margin: 0.9rem auto 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.booking {
  margin-top: 1.75rem;
  padding: 1.4rem;
  border: 1px solid rgba(46, 230, 195, 0.4);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--bg-2), #0c1730);
  box-shadow: 0 0 40px rgba(46, 230, 195, 0.1);
  text-align: left;
}

.booking__demo {
  margin: 0 0 1.25rem;
  padding: 0.8rem 1rem;
  border: 1px dashed rgba(46, 230, 195, 0.55);
  border-radius: var(--r);
  background: var(--accent-soft);
  font-size: 0.82rem;
  line-height: 1.55;
}

.booking__demo strong {
  color: var(--accent);
}

.booking__status {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.booking__status:empty {
  display: none;
}

.booking__status--error {
  color: #ff9aa7;
}

.booking__retry {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.booking__step + .booking__step {
  margin-top: 1.75rem;
}

.booking__step {
  animation: fadeUp 0.4s var(--ease) both;
}

.booking__step-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.booking__num {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--accent);
  color: #02221d;
  font-size: 0.78rem;
  font-weight: 800;
}

.booking__hint {
  margin-bottom: 0.8rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Calendario mensual */
.cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.cal__title {
  font-size: 0.95rem;
  font-weight: 700;
}

.cal__nav {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.cal__nav svg {
  width: 0.8rem;
  height: 0.55rem;
  transform: rotate(90deg);
}

.cal__nav--next svg {
  transform: rotate(-90deg);
}

.cal__nav:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.cal__nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.cal__weekdays,
.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.3rem;
}

.cal__weekdays span {
  padding: 0.3rem 0;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.cal__day {
  aspect-ratio: 1;
  min-height: 2.3rem;
  border: 1px solid transparent;
  border-radius: 0.6rem;
  background: transparent;
  color: #4d5d78;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: default;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.cal__day.is-available {
  border-color: var(--line);
  background: var(--surface);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
}

.cal__day.is-available:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.cal__day.is-today {
  box-shadow: inset 0 0 0 1px var(--muted);
}

.cal__day.is-selected,
.slot.is-selected {
  border-color: transparent;
  background: linear-gradient(135deg, #2ee6c3, #17b894);
  color: #02221d;
  box-shadow: 0 6px 18px rgba(46, 230, 195, 0.35);
}

/* Horarios */
.slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.slot {
  min-height: 2.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.6rem;
  background: var(--surface);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.slot:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.slot.is-selected:hover {
  background: linear-gradient(135deg, #2ee6c3, #17b894);
}

/* Datos y confirmación */
.booking__summary {
  margin-bottom: 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(46, 230, 195, 0.4);
  border-radius: var(--r);
  background: var(--accent-soft);
  font-size: 0.85rem;
  line-height: 1.6;
}

.booking__summary strong {
  font-size: 0.95rem;
}

.field--compact {
  margin-bottom: 1.1rem;
}

.field--compact .field__label {
  margin-bottom: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
}

.booking__notice {
  margin: 0 0 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  font-size: 0.85rem;
  line-height: 1.55;
}

.booking__notice:empty {
  display: none;
}

.booking__notice--error {
  border-color: var(--down);
  background: rgba(255, 90, 110, 0.1);
}

.booking__notice--info {
  border-color: rgba(46, 230, 195, 0.55);
  background: var(--accent-soft);
}

.booking__submit {
  width: 100%;
  margin-top: 0.25rem;
}

.booking__done {
  padding: 1rem 0.25rem;
  text-align: center;
}

.booking__done:focus {
  outline: none;
}

.badge--sm {
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: 1rem;
}

.badge--sm svg {
  width: 1.5rem;
  height: 1.5rem;
}

.booking__done-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.booking__done .booking__summary {
  margin: 1.1rem 0;
}

.booking__done-text {
  font-size: 0.9rem;
  color: var(--muted);
}

/* 12. RESPONSIVE Y MOVIMIENTO REDUCIDO ------------------------------------ */
@media (max-width: 40rem) {
  .cards--2 {
    grid-template-columns: 1fr;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .features li {
    flex-direction: row;
    text-align: left;
  }

  .phone {
    grid-template-columns: 8.25rem minmax(0, 1fr);
    gap: 0.7rem;
  }

  .nav {
    gap: 0.75rem;
  }

  .nav .btn {
    padding-inline: 1.1rem;
    letter-spacing: 0.16em;
  }

  .nav .btn--primary {
    flex: 1;
  }

  .booking {
    padding: 1.1rem;
  }

  .progress__candles {
    gap: 0.2rem;
  }

  .pc.is-stage-start {
    margin-left: 0.4rem;
  }
}

@media (max-width: 24rem) {
  .slots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav .btn--ghost span {
    display: none;
  }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

@keyframes stepIn {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: none; }
}

@keyframes stepInBack {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: none; }
}

@keyframes stepOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

@keyframes sweep {
  from { transform: translateX(-100%); }
  to   { transform: translateX(300%); }
}

@keyframes candleIn {
  from { opacity: 0; transform: scaleY(0.05); }
  to   { opacity: 1; transform: scaleY(1); }
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@keyframes pick {
  0%   { transform: scale(1); }
  40%  { transform: scale(0.985); box-shadow: 0 0 0 1px var(--accent), 0 0 40px var(--accent-glow); }
  100% { transform: scale(1); }
}

@keyframes pop {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes pcPulse {
  0%, 100% { filter: drop-shadow(0 0 4px var(--accent)); }
  50%      { filter: drop-shadow(0 0 12px var(--accent)); }
}

@keyframes seatPulse {
  0%, 100% { opacity: 0.55; transform: scaleY(0.88); }
  50%      { opacity: 1; transform: scaleY(1); }
}

@keyframes bounceBar {
  0%, 100% { transform: scaleY(0.45); }
  50%      { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .chart-line,
  .badge .draw {
    stroke-dashoffset: 0;
  }
}

.booking__meet {
  margin-top: 1.25rem;
}

/* ---------------------------------------------------------------------------
   Páginas de texto largo (política de privacidad)
   --------------------------------------------------------------------------- */
.legal {
  text-align: left;
  padding-bottom: 2rem;
}

.legal .eyebrow {
  text-align: center;
  margin-bottom: 1rem;
}

.legal__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 5.5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
}

.legal__updated {
  margin: 0.75rem 0 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.legal p,
.legal li {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--muted);
}

.legal p {
  margin-top: 0.9rem;
}

.legal strong {
  color: var(--text);
  font-weight: 600;
}

.legal h2 {
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.legal h3 {
  margin-top: 1.1rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.legal ul {
  margin: 0.7rem 0 0;
  padding-left: 1.25rem;
}

.legal li {
  margin-top: 0.45rem;
}

.legal li::marker {
  color: var(--accent);
}

.legal a:not(.btn) {
  color: var(--accent);
  text-underline-offset: 3px;
}

.legal__note {
  margin-top: 2.2rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 0.82rem;
}

.legal__back {
  margin-top: 2rem;
  text-align: center;
}
