/* ==========================================================================
   Formulario de pre-registro — estilos propios

   Copiados del `Index.html` de Apps Script. Lo único que cambia es la
   tipografía: Poppins venía de Google Fonts; aquí se usa Outfit, servida
   desde el propio dominio, como todo lo demás.
   ========================================================================== */

[v-cloak] { display: none; }

::-webkit-scrollbar { display: none; }

body {
  background-color: #F8FAFC;
  font-family: 'Outfit', 'Inter', system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  font-size: 14px;
}

/* El velo de arranque: se va cuando Vue monta. Si el arranque falla, se
   queda con su mensaje, que es mejor que una página en blanco. */
.velo-arranque {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #001ba0;
  font-weight: 600;
  text-align: center;
  padding: 24px;
}

/* El campo trampa: fuera de la vista y del teclado, pero en el formulario.
   Un robot lo rellena; una persona no llega a verlo. No se usa display:none:
   algunos robots saltan justo esos. */
.campo-trampa {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* SISTEMA DE CAPAS */
.system-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background-color: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
}

/* ANIMACIÓN MORPH NATIVA */
.morph-enter-active,
.morph-leave-active {
  transition: all 0.5s cubic-bezier(0.32, 1, 0.23, 1);
  transform-origin: top right;
}
.morph-enter-from,
.morph-leave-to {
  opacity: 0;
  transform: scale(0.1) translate(100px, -100px);
  filter: blur(10px);
}

.fade-enter-active, .fade-leave-active { transition: opacity 0.3s ease; }
.fade-enter-from, .fade-leave-to { opacity: 0; }

.fade-up-enter-active,
.fade-up-leave-active { transition: all 0.4s ease; }
.fade-up-enter-from,
.fade-up-leave-to { opacity: 0; transform: translateY(15px); }

/* INPUTS MOBILE FIRST */
.ios-input {
  height: 50px;
  background: #F1F5F9;
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
  font-size: 14px;
}
.ios-input:focus {
  background: white;
  border-color: #001ba0;
  box-shadow: 0 0 0 4px rgba(0, 27, 160, 0.05);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.1em;
}

/* ---------- FECHA DE NACIMIENTO ----------
   Tres desplegables dentro de UN solo campo: en tres cajas de un tercio no
   cabía «Septiembre». */
.grupo-fecha {
  display: flex;
  height: 50px;
  background: #F1F5F9;
  border: 1.5px solid transparent;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.2s ease;
}
.grupo-fecha:focus-within {
  background: #ffffff;
  border-color: #001ba0;
  box-shadow: 0 0 0 4px rgba(0, 27, 160, 0.05);
}
.grupo-fecha > select {
  min-width: 0;
  background-color: transparent;
  border: 0;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  text-align: center;
  text-align-last: center;
  padding: 0 1.1rem 0 0.4rem;
  background-position: right 0.35rem center;
  background-size: 0.8em;
  cursor: pointer;
}
.grupo-fecha > select.gf-vacio { color: #94a3b8; font-weight: 500; }
.grupo-fecha > select + select { border-left: 1.5px solid #E2E8F0; }
.gf-dia  { flex: 0.85 1 0; }
.gf-mes  { flex: 1.5 1 0; }
.gf-anio { flex: 1.1 1 0; }

/* ---------- COMPROBANTE DESCARGABLE ----------
   Se dibuja fuera de la pantalla y se convierte en imagen. Todo en píxeles
   fijos: la captura tiene que salir igual en cualquier teléfono. */
#comprobante {
  position: fixed;
  top: 0;
  left: -20000px;
  width: 640px;
  background: #ffffff;
  font-family: 'Outfit', 'Inter', sans-serif;
  color: #0f172a;
}
.cmp-cabecera { display: flex; align-items: center; gap: 18px; padding: 28px 36px; background: #001ba0; }
.cmp-escudo {
  width: 56px; height: 56px; flex: 0 0 56px; border-radius: 16px;
  background: #ffffff; color: #001ba0; font-size: 18px; font-weight: 700; letter-spacing: 1px;
  display: flex; align-items: center; justify-content: center;
}
.cmp-titulo { margin: 0; color: #ffffff; font-size: 19px; font-weight: 700; }
.cmp-subtitulo { margin: 4px 0 0; color: #b8cbff; font-size: 12px; font-weight: 500; }
.cmp-cuerpo { padding: 32px 36px 28px; }
.cmp-etiqueta {
  margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: #94a3b8;
}
.cmp-folio {
  margin: 10px 0 26px; padding: 20px; border: 2px dashed #cbd5e1; border-radius: 16px;
  background: #f8fafc; text-align: center; font-family: 'Courier New', monospace;
  font-size: 30px; font-weight: 700; letter-spacing: 2px; color: #001ba0;
}
.cmp-datos { border-top: 1px solid #e2e8f0; }
.cmp-fila {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 12px 0; border-bottom: 1px solid #f1f5f9;
}
.cmp-clave {
  flex: 0 0 auto; font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; color: #94a3b8;
}
.cmp-valor { text-align: right; font-size: 14px; font-weight: 600; color: #0f172a; word-break: break-word; }
.cmp-nota {
  margin: 22px 0 0; padding: 14px 16px; border-left: 3px solid #f59e0b; border-radius: 8px;
  background: #fffbeb; font-size: 11px; line-height: 18px; color: #92400e;
}
.cmp-pie {
  padding: 14px 36px; background: #f8fafc; border-top: 1px solid #e2e8f0; text-align: center;
  font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #94a3b8;
}

@keyframes bounce-subtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.animate-bounce-subtle { animation: bounce-subtle 2s infinite; }
