* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Poppins, sans-serif;
  background: #d8f5ff;
  min-height: 100vh;
  color: #333;
}

/* Fondo absoluto */
.main-wrapper {
  min-height: 100vh;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Contenedor del formulario - sin fondo de card */
.form-container {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

/* Header principal */
.header {
  text-align: left;
  margin-bottom: 30px;
}

.header h1 {
  font-size: 38px;
  color: #121c47;
  line-height: 1.2;
  text-align: center;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.header h2 {
  font-size: 20px;
  color: #1a1f3a;
  text-align: center;
  font-weight: 500;
}

.header h1 span {
  color: #ffd700;
  display: block;
  font-size: 42px;
}

.header .subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  border-left: 4px solid #ffd700;
  padding-left: 20px;
  margin-top: 20px;
  font-weight: 500;
}

/* Progreso simplificado */
.progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 40px 0;
  position: relative;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 1;
}

.progress-dot {
  width: 14px;
  height: 14px;
  background: rgba(19, 143, 192, 0.3);
  border-radius: 50%;
  margin-bottom: 8px;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.progress-step.active .progress-dot {
  background: #ffd700;
  box-shadow: 0 0 0 4px rgba(255, 136, 0, 0.349);
  border-color: rgb(88, 88, 88);
}

.progress-step.completed .progress-dot {
  background: #4ade80;
  border-color: white;
}

.progress-label {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

.progress-step.active .progress-label {
  color: #da8300;
  font-weight: 600;
}

.progress-line {
  flex: 1;
  height: 2px;
  background: rgba(0, 0, 0, 0.2);
  margin: 0 10px;
  margin-bottom: 20px;
}

/* Pasos del formulario */
.step {
  display: none;
  background: white;
  background: transparent;
  max-width: 1000px;
  border-radius: 20px;
  padding: 35px;
  /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); */
  margin-bottom: 30px;
}

.step.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Títulos de pasos */
.step h2 {
  font-size: 24px;
  color: #1a1f3a;
  margin-bottom: 10px;
  font-weight: 700;
}

.step-description {
  color: #666;
  font-size: 15px;
  margin-bottom: 25px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 15px;
}

/* Campos del formulario */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #1a1f3a;
  font-size: 18px;
  font-weight: 600;
  /* text-transform: uppercase; */
  letter-spacing: 0.3px;
}

input,
select {
  width: 100%;
  padding: 15px 18px;
  border: 2px solid #e8e8e8;
  border-radius: 24px;
  font-size: 16px;
  transition: all 0.3s;
  background: #f8f8f8;
}

input:focus,
select:focus {
  outline: none;
  border-color: #1a1f3a;
  background: white;
  box-shadow: 0 2px 8px rgba(26, 31, 58, 0.1);
}

/* Opciones de actividad económica */
.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 25px 0;
}

.option-card {
  background: #f8f8f8;
  border: 2px solid #e8e8e8;
  border-radius: 16px;
  padding: 20px 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.option-card:hover {
  border-color: #1a1f3a;
  background: #f0f2ff;
  transform: translateY(-2px);
}

.option-card.selected {
  border-color: #1a1f3a;
  background: #e8ebff;
  box-shadow: 0 5px 15px rgba(26, 31, 58, 0.1);
}

.option-card .emoji {
  font-size: 32px;
  margin-bottom: 10px;
  display: block;
}

.option-card span {
  font-weight: 600;
  color: #1a1f3a;
}

/* Opciones de asesoría */
.asesoria-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 25px 0;
}

.asesoria-option {
  background: #f8f8f8;
  border: 2px solid #e8e8e8;
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.asesoria-option:hover {
  border-color: #1a1f3a;
  background: #f0f2ff;
}

.asesoria-option.selected {
  border-color: #1a1f3a;
  background: #e8ebff;
}

.asesoria-option input[type="radio"] {
  width: auto;
  margin-right: 15px;
  accent-color: #1a1f3a;
}

.asesoria-option label {
  display: inline;
  font-size: 16px;
  font-weight: 500;
  text-transform: none;
  color: #1a1f3a;
  cursor: pointer;
}

/* Botones */
.btn-container {
  margin-top: 30px;
}

.btn,
.final-buttons button {
  width: 100%;
  width: fit-content;
  max-width: 220px;
  padding: 18px;
  background: #1a1f3a;
  background: linear-gradient(135deg, #1779bd, #02ccf0, #008fb1);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  /* text-transform: uppercase; */
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto;
}

.btn:hover, .final-buttons button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

button img {
  width: 40px;
  height: 40px;
  /* max-width: 20px; */
  /* max-height: 20px  ; */
}

.btn i {
  font-size: 20px;
}

.back-link {
  text-align: center;
  margin-top: 15px;
}

.back-link button {
  background: none;
  border: none;
  color: rgba(0, 33, 83, 0.6);
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
  padding: 5px;
}

.back-link button:hover {
  color: white;
  color: #121c47;
}

/* Autorización */
.autorizacion {
  margin: 20px 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  color: black;
  text-align: center;
  line-height: 1.5;
}

/* Sección de información final */
.info-section {
  background: white;
  border-radius: 20px;
  padding: 35px;
  margin: 30px 0;
}

.info-section h3 {
  font-size: 28px;
  color: #1a1f3a;
  margin-bottom: 20px;
  font-weight: 700;
  text-align: center;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 30px 0;
}

.info-card {
  background: #f8f8f8;
  border-radius: 16px;
  padding: 25px;
  text-align: center;
}

.info-card .number {
  font-size: 36px;
  font-weight: 700;
  color: #1a1f3a;
  margin-bottom: 10px;
}

.info-card .title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1f3a;
  margin-bottom: 10px;
}

.info-card .description {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

.contact-phone {
  text-align: center;
  margin: 30px 0;
  padding: 20px;
  background: #f0f2ff;
  border-radius: 50px;
  font-size: 24px;
  font-weight: 700;
  color: #1a1f3a;
}

.final-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.btn-outline {
  padding: 15px;
  border: 2px solid #1a1f3a;
  border-radius: 50px;
  background: transparent;
  color: #1a1f3a;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-outline:hover {
  background: #1a1f3a;
  color: white;
}

.btn-whatsapp {
  background: #25d366;
  color: white;
  border: none;
  padding: 15px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

/* .btn-whatsapp:hover {
  background: #128c7e;
} */

/* Footer */
.footer-note {
  text-align: center;
  color: black;
  font-size: 12px;
  margin-top: 40px;
}
#step1.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#infoFinal {
  max-width: 800px;
  text-align: center;
  /* margin: 0 auto; */
}
#infoFinal p {
  font-size: 20px;
  line-height: 2;
}

/* ===== Responsive fixes (sin tocar estilos base) ===== */
html,
body {
  width: 100%;
  overflow-x: hidden;
}

.main-wrapper {
  /* mejor en móviles con barras del navegador */
  min-height: 100svh;
}

.step {
  width: 100%;
  margin: auto;
}

/* Evita que grids/botones se salgan en pantallas pequeñas */
@media (max-width: 640px) {
  .main-wrapper {
    padding: 24px 14px;
  }

  .step {
    padding: 22px 16px;
  }

  .header h1 {
    font-size: 26px;
    line-height: 1.15;
    text-wrap: balance;
  }

  .header h1 span {
    font-size: 30px;
  }

  .header h2 {
    font-size: 16px;
    line-height: 1.25;
    text-wrap: balance;
  }

  /* Progreso: que no reviente horizontal */
  .progress {
    flex-wrap: wrap;
    gap: 10px 6px;
    margin: 24px 0;
  }

  .progress-line {
    display: none; /* evita overflow en mobile */
  }

  .progress-label {
    font-size: 11px;
    letter-spacing: 0.2px;
  }

  /* Opciones en 1 columna */
  .options-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Info final en 1 columna */
  .info-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Botones finales: apilados y sin desbordar */
  .final-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .final-buttons button {
    width: 100%;
    max-width: 100%;
  }

  /* Inputs un poco más compactos (sin cambiar estética) */
  input,
  select {
    padding: 14px 16px;
    font-size: 16px; /* evita zoom en iOS */
  }

  #infoFinal p {
    font-size: 16px;
    line-height: 1.8;
  }

  .contact-phone {
    font-size: 18px;
    padding: 16px;
    border-radius: 24px;
  }
}

/* Ajuste extra para pantallas muy pequeñas */
@media (max-width: 380px) {
  .header h1 {
    font-size: 22px;
  }
  .btn,
  .final-buttons button {
    font-size: 16px;
    padding: 16px;
  }
}


.mecodex-logo {
  max-width: 65%;
  width: 150px;
  height: auto;
  z-index: 1;
  cursor: pointer;
}
