/* PALETA DE COLORES APLICADA:
   #0D1B2A (Fondo oscuro principal)
   #1B263B (Fondo de tarjetas y contenedores)
   #E63946 (Rojo/Coral para botones y resaltados)
   #F1FAEE (Texto principal y tonos claros)
   #A8DADC (Azul celeste para detalles y bordes)
*/

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #0D1B2A;
  color: #F1FAEE;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
}

.main-card {
  background: #1B263B;
  border-radius: 12px;
  max-width: 650px;
  width: 100%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  border: 1px solid rgba(168, 218, 220, 0.2);
}

.card-header {
  background: #E63946;
  padding: 20px;
}

.header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lock-icon {
  font-size: 1.8rem;
}

.card-header h2 {
  margin: 0;
  font-size: 1.25rem;
  color: #F1FAEE;
}

.card-header span {
  font-size: 0.85rem;
  color: #F1FAEE;
  opacity: 0.9;
}

/* Stepper horizontal */
.stepper-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  background: #0D1B2A;
  border-bottom: 1px solid rgba(168, 218, 220, 0.15);
}

.step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #A8DADC;
  opacity: 0.6;
}

.step-node.active {
  color: #F1FAEE;
  font-weight: bold;
  opacity: 1;
}

.node-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1B263B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 1px solid #A8DADC;
}

.step-node.active .node-icon {
  background: #E63946;
  color: #F1FAEE;
  border-color: #E63946;
}

.step-line {
  flex: 1;
  height: 2px;
  background: rgba(168, 218, 220, 0.2);
  margin: 0 10px;
}

/* Formulario */
form {
  padding: 25px 30px;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.form-group {
  margin-bottom: 18px;
}

.form-row {
  display: flex;
  gap: 15px;
}

.form-row .form-group {
  flex: 1;
}

label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #A8DADC;
  font-weight: 500;
}

input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  background: #0D1B2A;
  border: 1px solid rgba(168, 218, 220, 0.3);
  border-radius: 6px;
  color: #F1FAEE;
  font-size: 0.95rem;
  box-sizing: border-box;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #E63946;
}

.char-counter {
  display: block;
  font-size: 0.75rem;
  color: #E63946;
  margin-top: 4px;
}

.btn-group {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.btn-next, .btn-submit {
  width: 100%;
  background: #E63946;
  color: #F1FAEE;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s ease;
}

.btn-next:hover, .btn-submit:hover {
  background: #d62839;
}

.btn-back {
  width: 30%;
  background: #0D1B2A;
  color: #A8DADC;
  border: 1px solid #A8DADC;
  padding: 12px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s ease;
}

.btn-back:hover {
  background: rgba(168, 218, 220, 0.1);
}

/* Resultado */
.result-box {
  padding: 25px;
  text-align: center;
}

.status-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.status-favorable { 
  background: rgba(168, 218, 220, 0.2); 
  color: #A8DADC; 
  border: 1px solid #A8DADC;
}

.status-desfavorable { 
  background: rgba(230, 57, 70, 0.2); 
  color: #E63946; 
  border: 1px solid #E63946;
}

.btn-whatsapp {
  width: 90%;
  margin: 0 auto 25px auto;
  display: block;
  background: #25D366; /* Verde característico de WhatsApp */
  color: #ffffff;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-whatsapp:hover {
  background: #1ebc57;
}