:root {
  --yellow: #ffd100;
  --yellow-soft: #ffe766;
  --dark: #050608;
  --text-main: #f9fafb;
  --text-muted: #a1a1aa;
  --accent-blue: #3b82f6;
}

/* ===========================================
   RESET GENERAL
=========================================== */
html, body {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
}

body {
  font-family: system-ui, sans-serif;
  background: radial-gradient(circle at top left, #111827 0, #020617 45%, #000 100%);
  color: var(--text-main);
  line-height: 1.2 !important;
}

/* ===========================================
   PARTICLES
=========================================== */
#particles {
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0 !important;
  pointer-events: none;
}

/* ===========================================
   LOGO ARRIBA IZQUIERDA
=========================================== */
.logo-top {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
}

.logo-top img {
  width: 180px;
  display: block;
  filter: drop-shadow(0 0 10px rgba(255,209,0,0.8));
}

@media (max-width: 768px) {
  .logo-top { display: none !important; }
}

/* ===========================================
   CONTENEDOR
=========================================== */
.container {
  max-width: 560px;
  margin: 50px auto;
  padding: 0 20px;
  z-index: 5 !important;
  position: relative;
}

/* ===========================================
   HEADER IMAGE
=========================================== */
.header-img-box {
  width: 100%;
  margin-bottom: 22px;
}

.header-img-box img {
  width: 100%;
  border-radius: 18px;
  border: 4px solid var(--yellow);
  height: 230px;
  object-fit: cover;
  box-shadow: 
    0 0 25px rgba(255,209,0,0.95), 
    0 0 45px rgba(255,209,0,0.35);
}

/* ===========================================
   TITULOS
=========================================== */
h1 {
  margin-bottom: 5px;
  font-size: 2rem;
  font-weight: bold;
}

p {
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ===========================================
   PROGRESS BAR
=========================================== */
#progress {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.13);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 16px;
}

#progress-fill {
  width: 5%;
  height: 100%;
  background: linear-gradient(90deg, var(--yellow), var(--accent-blue));
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%   { opacity: 0.9; }
  50%  { opacity: 1; }
  100% { opacity: 0.9; }
}

/* ===========================================
   TABS
=========================================== */
.tabs {
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
}

.step-label {
  color: var(--text-muted);
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.step-label.active {
  color: var(--yellow);
  font-weight: bold;
}

/* ===========================================
   STEPS
=========================================== */
.step {
  display: none;
  animation: slideIn .35s ease;
}

.step.active { display: block; }

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

/* ===========================================
   PREGUNTAS ESPACIADAS + TEXTO GRANDE
=========================================== */
.question-block {
  margin-top: 38px !important;
  margin-bottom: 42px !important;
}

.question-block label,
.question-block-title {
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  color: var(--text-main);
  margin-bottom: 18px !important;
  display: block;
}

.step h2,
.step h3,
.step label {
  margin-top: 35px !important;
  margin-bottom: 16px !important;
  font-size: 1.28rem !important;
  font-weight: 600 !important;
}

/* ===========================================
   INPUTS
=========================================== */
input,
textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.13);
  padding: 12px;
  border-radius: 10px;
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: 15px;
  transition: .2s;
}

input::placeholder,
textarea::placeholder {
  color: rgba(249,250,251,0.45);
}

input:focus,
textarea:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 6px rgba(255,209,0,0.5);
  outline: none;
}

/* ===========================================
   PILLS
=========================================== */
.pill-options {
  display: flex;
  gap: 14px !important;
  margin-top: 10px !important;
  margin-bottom: 26px !important;
}

.pill-options button {
  padding: 12px 22px !important;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-main);
  cursor: pointer;
  transition: .25s;
  font-size: 1.05rem !important;
  font-weight: 500 !important;
}

.pill-options button:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.12);
}

.pill-options button.active {
  background: linear-gradient(90deg,var(--yellow),var(--yellow-soft));
  color: #222;
  border-color: transparent;
}

/* ===========================================
   RADIO CARDS PREMIUM
=========================================== */
.radio-long-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px !important;
  margin-bottom: 40px !important;
}

.radio-long-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  cursor: pointer;
  transition: .25s ease;
}

.radio-long-card input[type="radio"] { display: none; }

.check-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid white;
  margin-top: 3px;
  box-shadow: 0 0 4px rgba(255,255,255,0.5);
  transition: .25s ease;
}

.radio-long-card.active {
  border-color: var(--yellow);
  background: rgba(255,209,0,0.1);
  box-shadow: 0 0 12px rgba(255,209,0,0.27);
}

.radio-long-card.active .check-circle {
  background: var(--yellow);
  border-color: var(--yellow);
  box-shadow: 0 0 9px rgba(255,209,0,0.8);
}

.radio-long-card .text {
  font-size: 1.12rem !important;
  line-height: 1.55rem !important;
}

/* ===========================================
   BOTONES
=========================================== */
.buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  gap: 16px;
}

button {
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all .22s ease;
}

/* BTN PREV */
#btn-prev {
  background: rgba(255,255,255,0.06);
  color: white;
  border: 1px solid rgba(255,255,255,0.18);
}

#btn-prev:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-2px);
}

/* BTN NEXT & SUBMIT */
#btn-next,
#btn-submit {
  background: linear-gradient(90deg,var(--yellow),var(--yellow-soft));
  color: #222;
  box-shadow: 0 0 12px rgba(255,209,0,0.45);
}

#btn-next:hover,
#btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(255,209,0,0.75);
}

/* ===========================================
   TOAST
=========================================== */
#toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(20,20,20,0.85);
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--yellow);
  display: none;
  color: var(--text-main);
  z-index: 50;
}

/* ===========================================
   FOOTER
=========================================== */
.powered {
  margin-top: 30px;
  color: var(--yellow-soft);
  text-align: center;
  font-size: .85rem;
}

/* ===========================================
   RESPONSIVE
=========================================== */
@media (max-width: 550px) {
  h1 { 
    font-size: 1.55rem;
    text-align: center;
  }

  .header-img-box img {
    height: 190px;
  }

  p {
    text-align: center;
    font-size: .95rem;
  }

  .tabs {
    font-size: .78rem;
  }

  .buttons {
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}
