/* ============================
   RESET Y VARIABLES
============================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-brand: #FFC107;
}

html, body {
  font-family: 'Montserrat', sans-serif !important;
  background-color: #fafafa;
  color: #212121;
  line-height: 1.6;
  scroll-behavior: smooth;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 100px;
}

* {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: none;
}

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

p {
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ============================
   HEADER Y NAVEGACIÓN
============================= */
.simulador-header {
 width: 100%;
  background-color: #fff;
  padding: 12px 40px;
  display: flex;
  align-items: center;
  position: fixed;
  justify-content: space-between;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  box-shadow: 0 1px 5px rgba(0,0,0,0.1);
  height: 80px;
}

.simulador-header .container {
display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 40px;
  
}

.simulador-header .logo {
  display: flex;
  align-items: center;
  height: 100%;
  position: relative;
   margin-left: -40px; 
}

.simulador-header .logo img {
  height: 110px;
  width: auto;
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
}

.nav-principal {
  flex: 1;
  display: flex;
  justify-content: center;
}



.contacto-header {
  flex-shrink: 0;
  white-space: nowrap;
  margin-right: 60px;
}

.logo img.logo-png {
  height: 110px;
  width: auto;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.nav-principal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.nav-principal ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-principal ul li a {
  display: inline-block;
  padding: 6px 10px;
  font-weight: 600;
  color: #212121;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.nav-principal ul li a:hover {
  color: var(--color-brand);
  transform: translateY(-2px);
}

.dropdown {
  position: relative;
}

.submenu {
  position: absolute;
  top: 120%;
  left: 0;
  background-color: #fff;
  list-style: none;
  padding: 5px 0;
  min-width: 120px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  border-radius: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

.submenu li a {
  all: unset;
  display: block;
  padding: 10px 16px;
  font-weight: 600;
  color: #212121;
  text-align: center;
  cursor: pointer;
}

.submenu li a:hover {
  background-color: #f5f5f5;
  color: var(--color-brand);
}

.dropdown:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.contacto-header {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #444;
  text-align: right;
  line-height: 1.4;
}

.contacto-header span {
  font-weight: 500;
  margin-right: 6px;
}

.contacto-header a {
  text-decoration: none;
  color: #e69500;
  font-weight: 600;
  transition: color 0.2s;
}

.contacto-header a:hover {
  color: #c77700;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-brand);
}

/* ============================
   CONTENIDO DEL SIMULADOR
============================= */
.barra-progreso {
  position: relative;
  width: 800px;
  margin: 40px auto 20px;
  height: 60px;
}

.linea-fondo {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background-color: #ccc;
  transform: translateY(-50%);
  z-index: 0;
  border-radius: 10px;
}

.sol-paso {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  background-color: #fff;
  border: 3px solid #ccc;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Arial;
  transition: all 0.3s ease;
  z-index: 1;
}

.sol-paso[data-step="1"] { left: 0; }
.sol-paso[data-step="2"] {
  left: 50%;
  /* desplaza el elemento la mitad de su propio ancho */
  transform: translate(-50%, -50%);
}
.sol-paso[data-step="3"] { right: 0; }

.sol-paso.activo {
  border-color: #FFC107;
  background-color: #fffbea;
  transform: translateY(-50%) scale(1.0);
}

.paso {
  max-width: 400px;
  margin: 40px auto;
  background-color: #fff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  position: relative;
  margin-bottom: 100px;
}

.paso h2 {
  font-size: 22px;
  margin-bottom: 16px;
  color: #e69500;
  text-align: center;
}

.paso p {
  margin-bottom: 24px;
  color: #555;
  font-size: 16px;
  text-align: center;
}

input[type="text"],
input[type="tel"],
input[type="email"] {
  width: 100%;
  padding: 12px;
  border: 2px solid #ccc;
  border-radius: 10px;
  font-size: 16px;
  margin-bottom: 20px;
}

.botones {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.btn {
  flex: 1;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  color: #212121;
 background: linear-gradient(to right, #ffeb3b, #ff9800);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  min-width: 160px;
  transition: 0.2s;
}

.btn:hover {
  background-color: #e6a806;
}

#mensajeFinal {
  text-align: center;
  margin-top: 60px;
  padding: 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

#mensajeFinal h3 {
  font-size: 24px;
  color: #28a745;
  margin-bottom: 10px;
}

#mensajeFinal p {
  font-size: 16px;
  color: #333;
}

footer {
  background-color: #fff;
  text-align: center;
  color: #999;
  font-size: 14px;
  padding: 30px;
  margin-top: 60px;
  box-shadow: 0 -1px 5px rgba(0,0,0,0.05);
}

.choices__list--dropdown {
  max-height: 400px !important;
  overflow-y: auto;
  background-color: #fff;
  border: 2px solid var(--color-brand);
  border-radius: 10px;
}

.choices__item--selectable.is-highlighted {
  background-color: #FFD700 !important;
  color: #212121;
}

.choices__inner {
  border: 2px solid var(--color-brand);
  border-radius: 1000px;
  padding: 10px 12px;
  text-align: center;
  cursor: pointer;
}

.choices__placeholder {
  color: #999;
}

.choices__list--single {
  text-align: center;
}

#formAhorro .choices {
  max-width: 300px;
  margin: 0 auto 24px;
}

.desktop-only { display: block; }
.solo-movil { display: none; }

/* RESPONSIVE: móvil específico */
@media (max-width: 768px) {
 .simulador-header .container {
     flex-direction: row !important;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 10px 20px;
    position: relative;
  }

  /* 2) Sacar el botón hamburguesa (tres barritas) fuera del flujo y ponerlo a la derecha */
  .simulador-header .menu-toggle {
     display: block !important;
        position: absolute;
        right: -20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 32px;
        color: var(--color-brand);
        z-index: 1001;
  }

  /* 3) Asegurar que el logo quede perfectamente centrado */
  .simulador-header .logo {
   margin: 0 auto !important;
  }
  .simulador-header .logo img {
    position: static !important;
    transform: none !important;
    height: 110px; /* ajusta a tu gusto */
    width: auto;
  }

 

  .nav-principal {
    display: none;                   /* se muestra sólo con .show-simulador */
    position: fixed;
    top: 80px;                       /* igual a la altura del header */
    left: 0;
    right: 0;
    width: 100%;
    background-color: #fff;
    z-index: 998;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    padding: 0;                      /* sin relleno extra */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  .nav-principal.show-simulador {
    display: flex;
    flex-direction: column;
  }

  /* 2) Lista de enlaces en columna y alineados a la izquierda */
    .nav-principal ul {
    display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0 20px 30px;
  width: 100%;
  }
  .nav-principal ul li {
    width: 100%;
  }
  .nav-principal ul li a {
    display: block;
    width: 100%;
    padding: 6px 0;                  /* sólo padding vertical */
    font-weight: 600;
    color: #212121;
    text-decoration: none;
  }
  .nav-principal ul li a:hover {
    color: var(--color-brand);
  }

  /* 3) Submenú anidado también a todo ancho y estático */
   .nav-principal .submenu {
    /* fuera del flujo, nada de espacio reservado */
    position: absolute;
    top: 100%;
    left: 0;
    display: none !important;
  }

  .nav-principal .submenu.show-submenu {
    /* al hacer clic, lo hacemos estático y visible */
   display: flex !important;
    flex-direction: column;
    width: 100%;
    padding-left: 15px;
    position: static !important;   /* 💥 También aquí */
    box-shadow: none !important;   /* 💥 También aquí */
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    margin-left: -7.5rem;
  }

  .solo-movil { display: block; }
  .desktop-only { display: none; }
  .telefono-movil {
    margin: 24px auto;
    text-align: center;
    font-size: 40px;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .barra-progreso {
    width: 100%;
    max-width: 320px;
    margin: 32px auto 16px;
  }

  .sol-paso[data-step="1"] {
    left: 0%;
    transform: translateY(-50%) translateX(-50%);
  }
  .sol-paso[data-step="2"] {
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
  }
  .sol-paso[data-step="3"] {
    left: 100%;
    transform: translateY(-50%) translateX(-50%);
  }

 

   .paso {
    width: calc(100% - 32px);
    margin: 20px auto;
    padding: 24px;
    max-width: none; 
  }

  .botones {
    flex-direction: column;
    gap: 10px;
  }

  footer {
    padding: 24px 12px;
    font-size: 13px;
  }
}