body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background: #f5f5f5;
  color: #222;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  /* padding: 40px 20px; */
  /* background: url('../img/09.png') no-repeat center center; */
  background-size: cover;
  z-index: 2;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85); /* blanco con opacidad */
  z-index: -1;
}


.quiz-container {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  /* background: url('../img/09.png') no-repeat center center; */
  box-sizing: border-box;
}

.quiz-step .prev-btn,
.quiz-step .next-btn {
  margin: 10px 5px;
  padding: 12px 24px;
  /* font-size: 16px; */
}

.quiz-step .prev-btn {
  background-color: #6c757d;
}

.quiz-step .next-btn {
  background-color: #ff6f00;
}

.quiz-step {
  display: none;
  animation: fadeIn 0.5s ease;
}

.quiz-step.active {
  display: block;
}

h2 {
  font-size: 60px;
  margin-bottom: 15px;
}

p {
  font-size: 26px;
  margin-bottom: 40px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 15px 15px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
}

input[type="range"] {
  width: 100%;
  margin: 15px 0;
}

button,
#submit-btn {
  background: #222;
  color: #fff;
  padding: 12px 25px;
  border: none;
  border-radius: 6px;
  font-size: 26px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover,
#submit-btn:hover {
  background: #555;
}

label {
  font-size: 14px;
  display: block;
  margin-bottom: 20px;
}

label input[type="checkbox"] {
  margin-right: 8px;
}

a {
  color: #007BFF;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 600px) {
  .quiz-container {
    padding: 20px;
    margin: 20px;
  }

  h2 {
    font-size: 40px;
  }

  button,
  #submit-btn {
    width: 100%;
  }
}

.card-options {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
  justify-content: center;
}

.card-option {
  padding: 20px 30px;
  border: 2px solid #ccc;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8f8f8;
  font-weight: bold;
}

.card-option:hover {
  background: #eee;
}

.card-option.selected {
  border-color: #5a00d1;
  background: #e8dcff;
  color: #5a00d1;
}

.urgency-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 30px;
}

#urgency_level {
  width: 100%;
  appearance: none;
  height: 20px;
  border-radius: 40px;
  background: linear-gradient(to right, #ffbb33 44.4%, #ccc 44.4%);
  outline: none;
  transition: background 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

#urgency_level::-webkit-slider-thumb {
  appearance: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #444;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 0 2px rgba(0,0,0,0.4);
}

#urgency_level::-moz-range-thumb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #444;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 0 2px rgba(0,0,0,0.4);
}

/* No pongas background aquí */
#urgency_level::-moz-range-track {
  height: 20px;
  border-radius: 40px;
}



.urgency-indicator {
  position: absolute;
  top: -35px;
  width: 100%;
  height: 40px;
}

#urgency-label {
  position: absolute;
  background-color: #222;
  color: #fff;
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 13px;
  transform: translateX(-50%);
  transition: left 0.3s ease;
  white-space: nowrap;
}

.urgency-text {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  margin-top: 10px;
}

.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}



#urgency_val {
  font-size: 18px;
  font-weight: bold;
  display: inline-block;
  margin-top: 10px;
}

@media (max-width: 600px) {
  #urgency_val {
    font-size: 16px;
  }
}

/* Ajustes específicos para móviles */
@media (max-width: 600px) {
  .quiz-step .prev-btn,
  .quiz-step .next-btn {
    display: block;
    width: 100%;
    margin: 20px 0;
  }
}

/* Opcional: afina sombras/redondeos para que coincidan con tu admin */
.table-wrap { border-radius:14px; overflow:hidden; box-shadow:0 10px 25px rgba(0,0,0,.06); }
.card.shadow-sm { border-radius:14px; }

.action-row{
  display:flex;
  gap:.5rem;           /* espacio entre botones */
  width:100%;
}

.action-btn{
  display:flex;
  align-items:center;  /* icono y texto alineados verticalmente */
  justify-content:center; /* centrados horizontalmente */
  gap:.5rem;           /* espacio icono-texto */
  flex:1 1 0;          /* <- MISMO ANCHO para ambos */
  padding:.6rem 1rem;  /* altura consistente */
  border-radius:.5rem;
}

/* Admin shared look + responsive switch for dashboard */
body.admin { background:#f6f7fb; }

.recent-cards { display: none; }            /* default: show table */
@media (max-width: 768px){
  .recent-table { display: none !important; } /* hide table on mobile */
  .recent-cards { display: block !important; }/* show cards on mobile */
}

/* ===== Admin UI ===== */
.card-stat.admin-card {
  border: 0;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,.06);
}
.card-stat .stat-label {
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #6c757d;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: .85rem;
}
.card-stat .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: #111;
}

.admin-lead-card {
  border-radius: 14px;
}

.admin-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: .75rem;
}
@media (max-width: 768px) {
  .admin-meta {
    grid-template-columns: 1fr;
  }

  .final {
    width: 300px;
  }
}
.admin-meta-label {
  font-size: .8rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: .3px;
  margin-bottom: 2px;
}

/* (Ya tienes estos, pero los dejo aquí por si falta)
.action-row{ display:flex; gap:.5rem; width:100%; }
.action-btn{ display:flex; align-items:center; justify-content:center; gap:.5rem; flex:1 1 0; padding:.6rem 1rem; border-radius:.5rem; }
*/
.w600 {
  width: 600px;
}
