/* ============================================================
   Luz — base.css
   Estilos GLOBALES: negro inmersivo (100dvh), header "soy luz" +
   subtítulo, fuentes/variables de color, escenario + paneles, inputs
   con destello, opciones de género, saludo/pregunta/readouts, resumen
   de confirmación, pantalla previa al pago y controles.
   Movido verbatim desde crear.html (sin renombrar nada).
   (El pulso vive en pulso.css y la rueda en rueda.css.)
   ============================================================ */
:root {
  --negro:      #000000;
  --negro-2:    #070409;
  --texto:      #F4F0FF;
  --texto-soft: rgba(244, 240, 255, 0.5);
  --violeta:    #B36CFF;
  --violeta-soft: rgba(179, 108, 255, 0.4);
  --amarillo:   #FFD600;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  background: var(--negro);
  min-height: 100%;
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(80% 50% at 50% 32%, rgba(120, 40, 200, 0.16) 0%, rgba(0,0,0,0) 60%),
    linear-gradient(180deg, var(--negro-2) 0%, var(--negro) 70%);
  color: var(--texto);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(6px, 1.1vh, 11px);
  padding: calc(env(safe-area-inset-top) + 12px)
           clamp(20px, 6vw, 32px)
           calc(env(safe-area-inset-bottom) + 14px);
}

/* ---------- Header ---------- */
.top { text-align: center; }
.logo {
  font-size: clamp(20px, 6vw, 24px);
  font-weight: 700;
  letter-spacing: 0.28em;
  padding-left: 0.28em;
  text-transform: lowercase;
  background: linear-gradient(120deg, var(--violeta) 0%, var(--amarillo) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.top-sub {
  margin-top: 6px;
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: none;
  color: var(--texto-soft); opacity: 0.85;
}

/* ---------- Frase que dice Luz ---------- */
.luz-dice {
  max-width: 460px;
  text-align: center;
  font-size: clamp(15px, 4.1vw, 18px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--texto);
  min-height: 1.5em;
}

/* ============================================================
   ESCENARIO + PANELES (un paso visible por vez)
   ============================================================ */
.escenario {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;   /* centra el selector en el espacio libre; la pregunta queda fija arriba */
  gap: 8px;
}
.panel { display: none; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.panel.activo { display: flex; animation: subir 0.5s cubic-bezier(0.22,1,0.36,1) both; }
@keyframes subir { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Input con destello de luz (nombre / ciudad) ---------- */
@property --ang-luz { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.campo-glow { position: relative; width: min(300px, 84vw); border-radius: 999px; }
.campo-glow::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--ang-luz),
              rgba(255,255,255,0) 0deg, rgba(255,255,255,0) 250deg,
              rgba(255,255,255,0.85) 322deg, rgba(255,255,255,0.15) 346deg,
              rgba(255,255,255,0) 360deg);
  -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, linear-gradient(#000 0 0);
          mask-composite: exclude;
  pointer-events: none; animation: girar-luz 6s linear infinite;
}
@keyframes girar-luz { to { --ang-luz: 360deg; } }
.campo {
  display: block; width: 100%;
  padding: 15px 22px;
  font-family: inherit; font-size: 17px; font-weight: 600;
  color: var(--texto); background: rgba(255,255,255,0.07);
  border: 1.5px solid var(--violeta-soft); border-radius: 999px; outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.campo::placeholder { color: rgba(244,240,255,0.35); font-weight: 500; }
.campo:focus { border-color: var(--violeta); background: rgba(255,255,255,0.1); box-shadow: 0 0 0 4px rgba(179,108,255,0.18); }
.aviso-error { font-size: 13px; font-weight: 600; color: #FF7AA8; min-height: 16px; text-align: center; }

/* Aclaración chica y tenue arriba del input de nombre */
.ayuda-nombre {
  width: min(300px, 84vw); text-align: center;
  font-size: 12.5px; font-weight: 500; line-height: 1.4;
  color: rgba(244, 240, 255, 0.55);
}

/* ---------- Opciones de género: estilo "celda central" de la rueda ---------- */
.opciones-genero { display: flex; flex-direction: column; gap: 12px; width: min(300px, 84vw); }
.opcion-genero {
  width: 100%;
  padding: 16px 24px;
  font-family: inherit; font-size: 22px; font-weight: 800;
  color: #fff; text-align: center;
  background: rgba(179,108,255,0.10);
  border: 1.5px solid var(--violeta);
  border-radius: 16px; cursor: pointer;
  transition: transform 0.16s cubic-bezier(0.34,1.56,0.64,1), background 0.18s ease;
}
.opcion-genero:hover { background: rgba(179,108,255,0.2); }
.opcion-genero:active { transform: scale(0.96); }
.opcion-genero.sel { background: rgba(179,108,255,0.28); box-shadow: 0 0 0 3px rgba(179,108,255,0.25); }

/* En la pantalla de hora compactamos para que TODO entre sin scroll */
#panelHora { gap: 4px; }
.nohora {
  margin-bottom: 4px; padding: 9px 18px;
  font-family: inherit; font-size: clamp(13px, 3.6vw, 15px); font-weight: 600;
  color: #C4A6FF;
  background: rgba(179, 108, 255, 0.08);
  border: 1.5px solid var(--violeta-soft);
  border-radius: 999px; cursor: pointer;
  transition: transform 0.16s cubic-bezier(0.34,1.56,0.64,1), background 0.18s ease, border-color 0.18s ease;
}
.nohora:hover { background: rgba(179, 108, 255, 0.16); border-color: var(--violeta); }
.nohora:active { transform: scale(0.95); }

/* Enganche del signo: texto funcional protagonista + voz (placeholder tenue) */
.enganche-func {
  width: min(360px, 90vw); text-align: center;
  font-size: clamp(16px, 4.6vw, 20px); font-weight: 700;
  color: var(--texto); line-height: 1.4;
}

/* Placeholder de cierre */
.placeholder-proximo {
  text-align: center; font-size: 15px; font-weight: 600;
  color: var(--texto-soft);
  background: rgba(255,255,255,0.04);
  border: 1px dashed var(--violeta-soft); border-radius: 16px;
  padding: 22px 18px; line-height: 1.5; max-width: 360px;
}

/* ---------- Saludo fijo + pregunta grande + dato armándose ---------- */
.saludo {
  font-size: clamp(16px, 4.4vw, 20px);
  font-weight: 600; color: var(--texto); text-align: center;
  min-height: 1.3em;   /* reserva el lugar aunque esté vacío → no baila */
}
.pregunta {
  margin-top: clamp(4px, 1.1vh, 10px);   /* el (espacio) antes de la pregunta */
  font-size: clamp(20px, 5.6vw, 26px);
  font-weight: 700; color: #fff; text-align: center; line-height: 1.2;
  padding: 0 6px;
  min-height: 2.2em;   /* reserva 2 líneas → posición SIEMPRE fija */
  display: flex; align-items: center; justify-content: center;
}
.paneles { width: 100%; display: flex; justify-content: center; }
.dato-armando {
  font-size: clamp(15px, 4.3vw, 18px); font-weight: 700; color: #CDB4FF;
  min-height: 1.4em; text-align: center;
}
/* Hora: lectura humana, grande, con color, pegada a las ruedas */
.hora-readout {
  font-size: clamp(16px, 4.5vw, 19px);
  font-weight: 700; color: #CDB4FF; text-align: center;
  min-height: 1em; margin-top: 2px; margin-bottom: -6px;
}

/* ---------- Confirmación: resumen editable + email ---------- */
.resumen {
  width: min(340px, 88vw);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--violeta-soft); border-radius: 16px;
  padding: 4px 14px;
}
.resumen-fila {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.resumen-fila:last-child { border-bottom: 0; }
.resumen-campo { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.resumen-label { font-size: 11px; font-weight: 600; color: var(--texto-soft); text-transform: uppercase; letter-spacing: 0.05em; }
.resumen-val { font-size: 15px; font-weight: 700; color: var(--texto); line-height: 1.3; }
.resumen-sub { font-size: 13px; font-weight: 600; color: var(--texto-soft); }
.corregir { flex: 0 0 auto; background: none; border: 0; padding: 4px 8px; font-family: inherit; font-size: 18px; line-height: 1; cursor: pointer; }
.corregir:hover { opacity: 0.7; }

.email-intro {
  width: min(340px, 88vw); text-align: center;
  font-size: 14px; font-weight: 500; color: var(--texto); line-height: 1.45; margin-top: 4px;
}
.btn-ver-carta {
  margin-top: 2px; padding: 14px 30px;
  font-family: inherit; font-size: 16px; font-weight: 800; color: #fff;
  background: rgba(179,108,255,0.22); border: 1.5px solid var(--violeta); border-radius: 999px; cursor: pointer;
  transition: transform 0.16s cubic-bezier(0.34,1.56,0.64,1), background 0.18s ease;
}
.btn-ver-carta:hover { background: rgba(179,108,255,0.32); }
.btn-ver-carta:active { transform: scale(0.96); }

/* ---------- Pantalla previa al pago ---------- */
.luz-audio-ph {
  width: min(360px, 90vw); text-align: center;
  font-size: 14px; font-style: italic; color: var(--texto-soft); line-height: 1.5;
}
.adelanto {
  width: min(360px, 90vw);
  background: rgba(255,255,255,0.04); border: 1px solid var(--violeta-soft);
  border-radius: 16px; padding: 16px;
}
.adelanto-label {
  display: block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--violeta); margin-bottom: 6px;
}
.adelanto-texto { font-size: 14px; color: var(--texto); line-height: 1.5; }
.incluye {
  width: min(360px, 90vw); list-style: none; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.incluye li { position: relative; padding-left: 22px; font-size: 14px; color: var(--texto); line-height: 1.4; }
.incluye li::before { content: '\2726'; position: absolute; left: 0; color: var(--violeta); }
.btn-ir-pago {
  margin-top: 4px; width: min(360px, 90vw); padding: 16px 28px;
  font-family: inherit; font-size: 17px; font-weight: 800; color: #1B0B2E;
  background: var(--amarillo); border: 0; border-radius: 999px; cursor: pointer;
  transition: transform 0.16s cubic-bezier(0.34,1.56,0.64,1), background 0.18s ease;
}
.btn-ir-pago:hover { background: #FFE34D; }
.btn-ir-pago:active { transform: scale(0.97); }
.pago-ph { font-size: 13px; color: var(--texto-soft); text-align: center; min-height: 16px; }

/* ============================================================
   CONTROLES (volver izq · Listo centrado)
   ============================================================ */
.controles-fila {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 8px; width: min(360px, 92vw);
}
.volver {
  justify-self: start;
  background: none; border: 0; padding: 6px 10px;
  font-family: inherit; font-size: 13px; font-weight: 500;
  color: rgba(244,240,255,0.4); cursor: pointer; transition: color 0.18s ease;
}
.volver:hover { color: rgba(244,240,255,0.7); }
.btn-listo {
  justify-self: center;
  padding: 13px 27px;
  font-family: inherit; font-size: 16px; font-weight: 700; color: #fff;
  background: rgba(179,108,255,0.18); border: 1.5px solid var(--violeta);
  border-radius: 999px; cursor: pointer;
  transition: transform 0.16s cubic-bezier(0.34,1.56,0.64,1), background 0.18s ease;
}
.btn-listo:hover { background: rgba(179,108,255,0.28); }
.btn-listo:active { transform: scale(0.95); }

/* Ocultar control sin romper la grilla (Listo sigue centrado) */
.oculto-vis { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  .panel.activo { animation: none; }
  .campo-glow::after { animation: none; opacity: 0.5; }
  .opcion-genero:active, .btn-listo:active, .btn-ver-carta:active, .btn-ir-pago:active, .nohora:active { transform: none; }
}

/* Respaldo de fondo: evita que asome el blanco del navegador abajo en mobile
   cuando la barra de direcciones se retrae (páginas cortas como crear.html). */
html { background-color: #000000; }
body { background-color: #000000; }

/* Latido del chip "Escuchar a Luz": brillo violeta que invita al click.
   Se enciende con .latiendo (lo agrega el JS) y se apaga al tocarlo. */
@keyframes latido-chip {
  0%, 100% { box-shadow: 0 0 0 0 rgba(179, 108, 255, 0.0); }
  50%      { box-shadow: 0 0 16px 4px rgba(179, 108, 255, 0.55); }
}
.chip-escuchar.latiendo {
  animation: latido-chip 1.8s ease-in-out infinite;
  border-color: rgba(179, 108, 255, 0.6) !important;
}
@media (prefers-reduced-motion: reduce) {
  .chip-escuchar.latiendo { animation: none; box-shadow: 0 0 12px 3px rgba(179, 108, 255, 0.45); }
}
