/* Formulario de perfilamiento · Agencia Digital JB */
html.flj-abierto, html.flj-abierto body { overflow: hidden; }
.flj-overlay, .flj-overlay * { box-sizing: border-box; }

.flj-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(6, 6, 8, .78);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.flj-overlay[hidden] { display: none; }

.flj-modal {
  width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--card, #18181c);
  border: 1px solid rgba(255, 138, 21, .35);
  border-radius: 22px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), 0 0 60px -20px rgba(255, 138, 21, .35);
  padding: 22px 26px 28px;
  color: var(--white, #f6f6f8);
  font-family: 'Inter', sans-serif;
}

.flj-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.flj-atras, .flj-cerrar {
  background: none; border: none; color: var(--muted, #a3a3ad); cursor: pointer;
  font: inherit; font-size: .88rem; padding: 6px 4px; border-radius: 8px;
}
.flj-atras:hover, .flj-cerrar:hover { color: var(--white, #f6f6f8); }
.flj-cerrar { font-size: 1.7rem; line-height: 1; padding: 0 6px; }
.flj-contador { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-2, #ffb443); }

.flj-progreso { height: 5px; background: rgba(255, 255, 255, .08); border-radius: 10px; margin: 14px 0 24px; overflow: hidden; }
.flj-progreso span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--orange, #ff8a15), var(--orange-2, #ffb443)); border-radius: 10px; transition: width .35s ease; }

.flj-cuerpo.flj-entra { animation: fljEntra .3s ease; }
@keyframes fljEntra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.flj-pregunta { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.28rem; line-height: 1.25; margin-bottom: 18px; }
.flj-nota { color: var(--muted, #a3a3ad); font-size: .92rem; margin: -8px 0 18px; }

.flj-opciones { display: flex; flex-direction: column; gap: 10px; }
.flj-opcion {
  display: flex; align-items: center; width: 100%; text-align: left;
  background: var(--card-2, #1f1f24); color: var(--white, #f6f6f8);
  border: 1.5px solid rgba(255, 255, 255, .1); border-radius: 14px;
  padding: 14px 16px; font: inherit; font-size: .95rem; font-weight: 500; cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .15s ease;
}
.flj-opcion:hover, .flj-opcion:focus-visible { border-color: rgba(255, 138, 21, .6); outline: none; }
.flj-opcion:active { transform: scale(.99); }
.flj-opcion.flj-sel { border-color: var(--orange, #ff8a15); background: rgba(255, 138, 21, .12); }

.flj-otro { display: flex; gap: 10px; margin-top: 12px; }
.flj-otro .flj-input { flex: 1; }

.flj-label { display: block; font-size: .85rem; font-weight: 600; color: var(--muted, #a3a3ad); margin-bottom: 14px; }
.flj-label .flj-input { margin-top: 6px; }
.flj-input {
  display: block; width: 100%;
  background: var(--card-2, #1f1f24); color: var(--white, #f6f6f8);
  border: 1.5px solid rgba(255, 255, 255, .12); border-radius: 12px;
  padding: 13px 14px; font: inherit; font-size: 1rem;
}
.flj-input:focus { outline: none; border-color: var(--orange, #ff8a15); }
.flj-input.flj-error { border-color: #ff5a4f; }
.flj-textarea { resize: vertical; min-height: 110px; }
.flj-msg { color: #ff7a70; font-size: .85rem; min-height: 1.2em; margin: -4px 0 10px; }

.flj-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(120deg, var(--orange, #ff8a15), var(--orange-2, #ffb443));
  color: #0a0a0c; border: none; border-radius: 100px;
  padding: 13px 22px; font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(255, 138, 21, .5);
  transition: transform .2s ease, box-shadow .2s ease;
  text-align: center; text-decoration: none;
}
.flj-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -8px rgba(255, 138, 21, .6); }
.flj-btn-full { width: 100%; margin-top: 16px; }

.flj-gracias { text-align: center; padding: 8px 0 4px; }
.flj-check {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(43, 214, 114, .14); color: #2bd672; font-size: 2rem; font-weight: 700;
}

@media (max-width: 480px) {
  .flj-overlay { padding: 0; align-items: flex-end; }
  .flj-modal { border-radius: 22px 22px 0 0; max-height: 92vh; padding: 18px 18px 24px; }
  .flj-pregunta { font-size: 1.15rem; }
  .flj-otro { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .flj-cuerpo.flj-entra { animation: none; }
  .flj-progreso span, .flj-opcion, .flj-btn { transition: none; }
}
