/*AJUSTES MEDIA*/
html, body {
  height: 100%;
}

.hero {
  min-height: 100vh;
  padding: 20px 16px; /* 👈 margen lateral en móvil */
}

button {
  min-height: 50px; /* 👈 mejor para dedo */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #020617;
  color: white;
  overflow-x: hidden;
}

.background {

  position: fixed;
  inset: 0;

  overflow: hidden;

  background: #f8f8fa;

  z-index: -1;
}

/* GLOW 1 */
.background::before {

  content: "";

  position: absolute;

  width: 1400px;
  height: 1400px;

  top: -500px;
  left: -500px;

  background:
    radial-gradient(
      circle,
      rgba(255, 0, 0, 0.30) 0%,
      rgba(255, 80, 80, 0.18) 20%,
      rgba(255, 120, 120, 0.10) 40%,
      transparent 70%
    );

  filter: blur(140px);

  opacity: 1;

  animation: floatGlow1 12s ease-in-out infinite;
}

/* GLOW 2 */
.background::after {

  content: "";

  position: absolute;

  width: 1400px;
  height: 1400px;

  bottom: -600px;
  right: -500px;

  background:
    radial-gradient(
      circle,
      rgba(255, 120, 120, 0.28) 0%,
      rgba(255, 170, 170, 0.16) 25%,
      rgba(255, 210, 210, 0.10) 45%,
      transparent 70%
    );

  filter: blur(160px);

  opacity: 1;

  animation: floatGlow2 16s ease-in-out infinite;
}

/* ANIMACIONES */

@keyframes floatGlow1 {

  0% {
    transform: translate(0px, 0px);
  }

  50% {
    transform: translate(40px, 30px);
  }

  100% {
    transform: translate(0px, 0px);
  }
}

@keyframes floatGlow2 {

  0% {
    transform: translate(0px, 0px);
  }

  50% {
    transform: translate(-30px, -20px);
  }

  100% {
    transform: translate(0px, 0px);
  }
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

/* BADGE */
.badge {

  background: rgba(255,255,255,0.75);

  border: 1px solid rgba(230,0,0,0.15);

  color: #b91c1c;

  padding: 10px 18px;

  border-radius: 999px;

  font-size: 13px;

  font-weight: 600;

  margin-bottom: 24px;

  backdrop-filter: blur(10px);

  box-shadow:
    0 4px 20px rgba(230,0,0,0.06);
}

/* TITULO */
h1 {
  font-size: 2.8rem;
  max-width: 800px;
  line-height: 1.2;
  color: #111827;
}

h1 span {
  color: #e60000;
}

/* SUB */
.sub {
  margin-top: 20px;
  color: #9ca3af;
}

/* ALERT */
.alert {
  margin-top: 30px;
  padding: 14px 22px;
  border-radius: 14px;

  font-size: 15px;
  font-weight: 500;

  background: #fff5f5;

  border: 1px solid rgba(230,0,0,0.15);

  color: #991b1b;

  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

/* FORM CARD */
.form-card {
  margin-top: 40px;
  width: 100%;
  max-width: 520px;

  padding: 35px;

  border-radius: 24px;

  background: #ffffff;

  border: 1px solid #e5e7eb;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.06);
}

/* INPUTS */
.input-group {
  margin-bottom: 12px;
}

input {
  width: 100%;
  padding: 18px;
  border-radius: 14px;

  font-size: 15px;

  color: #111827;

  background: #ffffff;

  border: 1px solid #d1d5db;

  transition: all 0.25s ease;
}

input:hover {
  border-color: #9ca3af;
}

input:focus {
  outline: none;

  border-color: #e60000;

  box-shadow:
    0 0 0 4px rgba(230,0,0,0.08);
}

input::placeholder {
  color: #9ca3af;
}

/* CTA */
.cta {
  width: 100%;
  margin-top: 10px;
  padding: 15px;
  border: none;
  border-radius: 10px;

  background: linear-gradient(90deg, #7c3aed, #2563eb);
  color: white;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;

  transition: 0.3s;
}

.cta:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

/* TRUST */
.trust {
  margin-top: 15px;
  font-size: 12px;
  color: #6b7280;
}


.step.active {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Animación suave */
.step {
  display: none;
  animation: fade 0.3s ease;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.progress-container {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  margin-bottom: 25px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;

  background: linear-gradient(90deg, #3b82f6, #ff4d4d);

  transition: width 0.4s ease;
}

@media (max-width: 768px) {

  /* HERO */
  h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .sub {
    font-size: 14px;
  }

  .badge {
    font-size: 11px;
    padding: 6px 12px;
  }

  /* ALERT (bloque rojo) */
  .alert {
    font-size: 13px;
    padding: 12px;
    margin-top: 20px;
  }

  /* FORM CARD */
  .form-card {
    max-width: 100%;
    padding: 20px;
    border-radius: 16px;
  }

  /* INPUTS */
  input {
    padding: 16px;
    font-size: 16px; /* 👈 evita zoom automático en iPhone */
  }

  /* BOTONES */
  .btn-next,
  .cta {
    padding: 16px;
    font-size: 16px;
  }

  /* PROGRESS BAR */
  .progress-container {
    height: 5px;
    margin-bottom: 20px;
  }

  /* TRUST TEXT */
  .trust {
    font-size: 11px;
    line-height: 1.4;
  }

  .input-group {
    margin-bottom: 14px;
  }
  .hero {
    justify-content: flex-start;
    padding-top: 60px;
  }
}

.question-title {

  font-size: 32px;

  font-weight: 700;

  margin-bottom: 40px;

  text-align: center;

  color: #111827;

  line-height: 1.2;
}

.contact-title {

  font-size: 28px;

  font-weight: 700;

  margin-bottom: 32px;

  text-align: center;

  color: #111827;

  line-height: 1.2;
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}

.option-card {

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 18px;

  border: 1px solid rgba(0,0,0,0.08);

  border-radius: 18px;

  cursor: pointer;

  transition: all 0.25s ease;

  background: rgba(255,255,255,0.75);

  backdrop-filter: blur(10px);

  min-height: 72px;
}

.option-card:hover {

  transform: translateY(-2px);

  border-color: rgba(230,0,0,0.25);

  background: rgba(255,255,255,0.92);

  box-shadow:
    0 8px 25px rgba(0,0,0,0.06);
}

.option-card input {
  display: none;
}

.option-card span {

  font-size: 22px;

  font-weight: 600;

  color: #111827;
}

.option-card input:checked + span {
  color: #e60000;
}

.option-card:has(input:checked) {

  border: 2px solid #e60000;

  background: rgba(255,245,245,0.95);

  transform: translateY(-2px);

  box-shadow:
    0 10px 30px rgba(230,0,0,0.12);
}

/* =========================
   NAV BUTTONS
========================= */

.nav-buttons {

  display: flex;

  gap: 15px;

  margin-top: 10px;
}

.btn-back,
.btn-next {

  padding: 18px;

  border-radius: 18px;

  font-size: 18px;

  cursor: pointer;

  transition: all 0.25s ease;
}

/* ATRÁS */
.btn-back {

  flex: 1;

  background: rgba(255,255,255,0.9);

  border: 1px solid rgba(0,0,0,0.08);

  color: #111827;

  font-weight: 500;

  backdrop-filter: blur(10px);
}

.btn-back:hover {

  background: rgba(255,255,255,1);

  transform: translateY(-2px);

  box-shadow:
    0 6px 18px rgba(0,0,0,0.08);
}

/* SIGUIENTE */
.btn-next {

  flex: 1;

  border: none;

  background: #e60000;

  color: white;

  font-weight: 600;
}

.cta-submit {

  width: auto;

  margin-top: 0;

  background: #e60000;
}

/* =========================
   SUCCESS MODAL
========================= */

.success-modal {

  position: fixed;

  inset: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  background: rgba(2,6,23,0.75);

  backdrop-filter: blur(10px);

  z-index: 999;

  opacity: 0;

  pointer-events: none;

  transition: 0.3s ease;
}

.success-modal.active {

  opacity: 1;

  pointer-events: all;
}

.success-card {

  width: 90%;

  max-width: 500px;

  padding: 50px 40px;

  border-radius: 28px;

  text-align: center;

  background: rgba(15,23,42,0.95);

  border: 1px solid rgba(255,255,255,0.08);

  box-shadow:
    0 20px 60px rgba(0,0,0,0.45),
    0 0 50px rgba(59,130,246,0.15);

  transform: translateY(20px);

  transition: 0.3s ease;
}

.success-modal.active .success-card {

  transform: translateY(0);
}

.success-icon {

  width: 90px;

  height: 90px;

  margin: 0 auto 25px;

  border-radius: 999px;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 40px;

  font-weight: bold;

  color: white;

  background: linear-gradient(
    135deg,
    rgba(59,130,246,1),
    rgba(124,58,237,1)
  );

  box-shadow:
    0 10px 40px rgba(59,130,246,0.35);
}

.success-card h2 {

  font-size: 32px;

  margin-bottom: 15px;
}

.success-card p {

  color: #94a3b8;

  line-height: 1.6;

  margin-bottom: 30px;

  font-size: 17px;
}

.success-card button {

  width: 100%;

  padding: 18px;

  border: none;

  border-radius: 18px;

  cursor: pointer;

  font-size: 18px;

  font-weight: 600;

  color: white;

  background: linear-gradient(
    135deg,
    rgba(59,130,246,0.9),
    rgba(124,58,237,0.9)
  );

  transition: 0.25s ease;
}

.success-card button:hover {

  transform: translateY(-2px);

  filter: brightness(1.05);
}

/* =========================
   PROGRESS BAR
========================= */

.progress-container {

  width: 100%;

  height: 6px;

  margin-bottom: 30px;

  border-radius: 999px;

  overflow: hidden;

  background: rgba(255,255,255,0.05);
}

.progress-bar {

  width: 0%;

  height: 100%;

  border-radius: 999px;

  background: linear-gradient(
    90deg,
    #e60000,
    #ff6b6b
  );

  transition: width 0.35s ease;
}

/* =========================
   LOADING BUTTON
========================= */

.btn-loading {

  opacity: 0.7;

  pointer-events: none;

  position: relative;
}

.btn-loading::after {

  content: "";

  width: 18px;

  height: 18px;

  margin-left: 12px;

  border: 2px solid rgba(255,255,255,0.4);

  border-top-color: white;

  border-radius: 999px;

  display: inline-block;

  animation: spin 0.7s linear infinite;

  vertical-align: middle;
}

@keyframes spin {

  to {
    transform: rotate(360deg);
  }
}