:root {
  --primary: #F2600C;
  --bg-dark: #0a0a0a;
  --card-bg: rgba(25, 25, 25, 0.95);
  --text-main: #FFFFFF;
  --text-secondary: #999999;
  --font-main: 'Outfit', sans-serif;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 40px;
  overflow-x: hidden;
}

/* ========== CONTENEDOR PRINCIPAL ========== */
.phone-frame {
  width: 100%;
  max-width: 440px; /* Un poco más ancho el frame */
  min-height: 680px;
  background: var(--card-bg);
  backdrop-filter: blur(30px);
  border-radius: 45px;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 80px 25px 35px; /* Padding lateral reducido de 35 a 25 */
  position: relative;
  box-shadow: 0 35px 70px rgba(0,0,0,0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ========== LOGO CIRCULAR SUPERIOR ========== */
.logo-header {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
  border-radius: 50%;
  border: 3px solid rgba(242, 96, 12, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.7), 0 0 0 8px rgba(10,10,10,0.5);
  z-index: 10;
}

.logo-header img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

/* ========== CONTADOR DE PASOS ========== */
.step-counter {
  text-align: center;
  font-size: 11px;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 25px;
  opacity: 0.9;
}

/* ========== ESTRUCTURA DE PASOS ========== */
.step {
  display: none;
  flex-direction: column;
  flex: 1;
  animation: fadeIn 0.5s ease;
}

.step.active { display: flex; }

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

/* Áreas del paso */
.step-header-area {
  text-align: center;
  margin-bottom: 25px;
}

.step-content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 20px;
}

.step-footer-area {
  margin-top: auto;
}

/* ========== TÍTULOS Y SUBTÍTULOS ========== */
h2 { 
  font-size: 26px; 
  font-weight: 800; 
  text-align: center; 
  margin-bottom: 12px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.subtitle { 
  color: var(--text-secondary); 
  text-align: center; 
  font-size: 14px;
  line-height: 1.5;
}

/* ========== INPUTS Y FORMULARIOS ========== */
input, select, textarea {
  width: 100%;
  padding: 18px 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  color: #fff;
  font-size: 16px;
  text-align: left;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-main);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 25px; /* Buen gap entre elementos */
  width: 100%;
}

.form-label {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  font-weight: 700;
  padding-left: 4px;
}

input:focus, select:focus, textarea:focus { 
  border-color: var(--primary); 
  background: rgba(242,96,12,0.04); 
  box-shadow: 0 0 0 4px rgba(242,96,12,0.1), inset 0 2px 4px rgba(0,0,0,0.1);
}

input::placeholder, textarea::placeholder {
  color: rgba(255,255,255,0.2);
}

/* Input de número mejorado */
input[type="number"] {
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 1px;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Input de archivo mejorado */
input[type="file"] {
  padding: 35px 20px;
  border: 2px dashed rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
}

input[type="file"]::file-selector-button {
  display: none;
}

textarea {
  text-align: left;
  resize: none;
  min-height: 100px;
  border-radius: 18px;
}

/* ========== BOTONES ========== */
.btn-primary {
  width: 100%;
  padding: 19px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 28px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 12px 28px rgba(242,96,12,0.35);
  transition: all 0.3s ease;
}

.btn-primary:hover { 
  transform: translateY(-3px); 
  background: #ff7020; 
  box-shadow: 0 16px 35px rgba(242,96,12,0.5);
}

.btn-secondary {
  width: 100%;
  padding: 18px;
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 28px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
  text-align: center;
}

.btn-secondary:hover { 
  background: rgba(255,255,255,0.08); 
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}

.button-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-back {
  padding: 18px;
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 28px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-back:hover { 
  background: rgba(255,255,255,0.08); 
  color: #fff; 
}

/* ========== TARJETAS DE OPCIONES (RADIO BUTTONS) ========== */
.option-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 15px;
}

.option-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.option-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.option-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}

.option-card.active {
  border-color: var(--primary);
  background: rgba(242,96,12,0.08);
  box-shadow: 0 8px 30px rgba(242,96,12,0.15);
}

.card-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.card-content .icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
}

.option-card.active .icon {
  background: var(--primary);
  transform: scale(1.1);
}

.card-content .label {
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  text-align: left;
}

.radio-indicator {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.option-card.active .radio-indicator {
  border-color: var(--primary);
  background: rgba(242,96,12,0.1);
}

.option-card.active .radio-indicator::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
}

/* Wide Options Tweak */
.step:not(.step-1) .option-list {
  margin-left: -10px;
  margin-right: -10px;
}

.step:not(.step-1) .option-card {
  border-radius: 20px;
}

/* ========== ERRORES INLINE DE VALIDACIÓN ========== */
.input-error {
  border-color: #ff4444 !important;
  background: rgba(255, 68, 68, 0.06) !important;
  box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.15), inset 0 2px 4px rgba(0,0,0,0.1) !important;
  animation: shakeError 0.4s ease;
}

@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}

.field-error-msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  padding: 14px 16px;
  background: rgba(255, 68, 68, 0.08);
  border: 1px solid rgba(255, 68, 68, 0.25);
  border-radius: 14px;
  font-size: 12.5px;
  color: #ff8a8a;
  line-height: 1.5;
  animation: fadeIn 0.3s ease;
  flex-wrap: wrap;
}

.field-error-msg .error-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: #ff4444;
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  margin-top: 1px;
}

.field-error-msg .error-link {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: auto;
  white-space: nowrap;
  transition: color 0.2s;
}

.field-error-msg .error-link:hover {
  color: #ff8c3a;
}

/* ========== BARRA DE PROGRESO ========== */
.progress-container {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), #ff8c3a);
  transition: width 0.5s ease;
  box-shadow: 0 0 15px rgba(242,96,12,0.5);
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========== PANTALLA DE BIENVENIDA ========== */
.welcome-step h2 { 
  font-size: 30px; 
  margin-bottom: 20px; 
}

.welcome-step .subtitle { 
  font-size: 15px; 
  line-height: 1.6;
}

/* ========== MODAL ========== */
.modal-overlay {
  position: fixed; 
  inset: 0; 
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(10px);
  display: none; 
  align-items: center; 
  justify-content: center; 
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.show { display: flex; }

/* ========== RESPONSIVE ========== */
@media (max-width: 480px) {
  body { padding: 70px 15px 30px; }
  
  .phone-frame {
    max-width: 100%;
    border-radius: 35px;
    padding: 70px 28px 28px;
    min-height: 650px;
  }
  
  .logo-header {
    width: 85px;
    height: 85px;
    top: -45px;
  }
  
  h2 { font-size: 23px; }
  .subtitle { font-size: 13px; }
  
  input, select, textarea { font-size: 15px; padding: 16px 18px; }
  input[type="number"] { font-size: 24px; }
  
  .btn-primary, .btn-secondary, .btn-back { font-size: 13px; padding: 16px; }
}