*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  background: #000;
  color: #222;
  font-display: swap;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  font-size: 16px;
}

.logo {
    width: 100px !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: #fff;
    font-weight: 700;
}

li.nav-item {
    padding: 0 20px;
    font-size: 9pt;
}

.navbar .nav-item {
    padding: 2px 6px !important;
}

.btn-color {
    background: #02a6e0;
    background: linear-gradient(to right, #02a6e0 20%, #6e2fd4 55%, #fa2ac4 86%);
    padding: 14px 30px;
    border: none;
}

.navbar .nav-item, a.nav-link, nav.navbar {
    transition-duration: .25s;
}

.btn, .btn-color, .eroxon .left, .eroxon .right {
    border-radius: 30px;
}
.navbar {
    background-color: rgba(0, 0, 0, 0);
}
.container-test {
  width: 100%;
  max-width: 1230px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
  padding: 40px 20px; /* asegúrate que el padding se incluya en la altura */
}

.contenedor-edad {
    width: 100%;
    margin: 0 auto;
    padding: 40px 60px;
    box-sizing: border-box;
    box-shadow: -7px 0px 15px 5px #FF26C2, 1px -8px 15px 5px #8C00FF, 5px 5px 15px 5px #5ABAFF;
    margin-top: 4%;
    margin-bottom: 2%;
}

.img-edad {
    width: 175px;
    max-width: 175px;
    transition: filter .3s;
    display: block;
    object-fit: cover;
    height: 175px;
    aspect-ratio: 1 / 1;
}

.age-selector{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.title-anser {
    color: #FFF;
    text-align: center;
    font-size: 40px;
    font-style: normal;
    font-weight: 900;
    min-height: 60px;
  line-height: 1.2;
  overflow-wrap: break-word;
}

.edad-txt {
    font-size: 31px;
    font-weight: 900;
    text-align: center;
    background: linear-gradient(90deg, #5ABAFF 33.34%, #8C00FF 51.51%, #FF26C2 67.34%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    min-height: 35px;
  line-height: 1.2;
}

.age-selector button {
    border-radius: 30px;
    padding: 5px 15px;
    cursor: pointer;
    transition: .3s;
    border: thick double #fff;
    box-shadow: 0 0 4px 4px #9a1c80;
    background: #9a1c80;
    color: #fff;
    text-align: center;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    position: relative;
    width: 175px;
}

.age-option.activo {
    transform: scale(1.05);
}

.age-option.activo {
    filter: drop-shadow(rgb(255, 38, 194) 0px 0px 6px);
}

.age-selector button.selected {
    border: thick double #ff26c2;
    background-color: #fff;
    color: #4840c6;
    font-size: 22px;
    box-shadow: 0 0 4px 4px #ff26c2;
}

button.button_two {
    border: thick double #fff;
    box-shadow: 0 0 4px 4px #0094ff;
    background: #27247b;
}

#nextBtn, #startBtn {
  margin: 4rem auto 1rem;
  padding: 10px 30px;
  cursor: not-allowed;
  color: #fff;
  font-size: 17px;
  background-color: transparent;
  opacity: .5;
  width: 250px; 
  height: 60px; 
  box-shadow: -1px 0px 4px 2px #FF26C2, 0px -5px 4px 2px #8C00FF, 2px 2px 4px 2px #5ABAFF;
  border-radius: 8px;
  border: thick double #ff26c282;
}

.an_o {
    font-size: 34px;
    background: linear-gradient(90deg, #5ABAFF 33.34%, #8C00FF 51.51%, #FF26C2 67.34%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    text-align: center;
    font-style: normal;
    line-height: inherit;
}

.sub {
    color: #fff;
    text-align: center;
    font-size: 17.5px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.q_o, .respu {
    color: #FFF;
    text-align: center;
    text-shadow: 0px 0px 15.4px #FF26C2;
    font-size: 25px;
    font-style: normal;
    font-weight: 900;
    line-height: normal;
}

.progress-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 590px;
    margin: 50px auto;
}

.progress-line::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #ff26c2, #5abaff);
    transform: translateY(-50%);
    z-index: 1;
}

.step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    z-index: 2;
    border: 4px solid #fff;
    box-shadow: 0 0 6px 3px #ff26c2;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.step.completed {
    background: #ff26c2;
}

.step.current{
    background: #06f;
    box-shadow: 0 0 6px 3px #0094ff;
}

.step.completed .check, .step.completed i {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.step.completed {
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-icon {
    width: 60px;
    background-color: #200081;
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 0 15.4px #ff26c2;
}

.answers {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.answers .answer {
    padding: .5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: space-between;
}

.answer.selected .img-icon {
    background-color: #fff;
}

.q_o, .respu, .sub {
    text-shadow: 0 0 15.4px #ff26c2;
}

.regresar-btn, .siguiente-btn {
    box-shadow: 0px 0px 0px 2px #FF26C2, -1px -1px 4px 2px #8C00FF, 1px 2px 4px 2px #5ABAFF;
    background: transparent;
    font-size: 17px;
    height: 45px;
    width: 215px;
    color: #fff;
    border-radius: 8px;
}

.botones {
    gap: 60px;
}

.siguiente-btn {
    border: none;
    border-radius: 0;
    opacity: .5;
    border-radius: 8px;

}

.bullets .bullet {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin: 5px;
  border-radius: 50%;
  background-color: #fff;
  opacity: 0.4;
  transition: opacity 0.3s;
}

.bullets .bullet.active {
  opacity: 1;
  background-color: #00f; 
}

.ecom-section h3 {
    background: linear-gradient(90deg, #5ABAFF 33.34%, #8C00FF 51.51%, #FF26C2 67.34%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    font-size: 34px;
    font-style: normal;
    font-weight: 900;
    line-height: 60px;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.ecom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    justify-items: center;
}

.resultado-box strong {
    display: block;
    color: #fff;
    font-size: 35px;
    text-align: center;
}

span.txt-sub {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}

.resultado-footer {
    text-align: center;
    padding: 40px 20px;
    min-height: 250px; 
}

.resultado-box {
    margin-bottom: 2rem;
    padding: 50px 45px;
    height: 100%;
    display: grid;
    align-items: center;
    justify-content: normal;
    box-shadow: -7px 0px 15px 5px #FF26C2, 1px -8px 15px 5px #8C00FF, 5px 5px 15px 5px #5ABAFF;
}

.ecom-grid img {
    background: #f1f1f1;
    border-radius: 15px;
    padding: 10px;
    width: 100%;
    max-width: 165px;
    height: auto;
}

.marging {
    margin-bottom: 25px;
}

#contenedor-preguntas {
  min-height: 0px;
}

@media (max-width: 575.98px) {
   
    .container-test {
        width: 100%;
        height: 100%;
        overflow: hidden;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        margin: 40px auto;
    }

    .contenedor-edad {
        padding: 30px 15px;
        border: thick double #9a1c80;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        box-sizing: border-box;
    }

    .edad-movil {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        justify-items: center;
        min-height: 690px;
        visibility: visible;
        opacity: 1;
        transition: opacity 0.3s ease-in;
        height: 690px;
    }

    .edad-card {
        width: 175px;
        height: 210px;
        text-align: center;
        max-width: 175px;
        margin: auto;
        aspect-ratio: 1 / 1;
    }

    .edad-card.activo {
        filter: drop-shadow(rgb(255, 38, 194) 0px 0px 6px);
    }

    .edad-card img {
        width: 155px;
        height: 155px;
        display: block;
        margin: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    .edad-card button.movil {
        margin-top: 0;
        width: 155px;
    }

    button.movil.selected {
        background-color: #fff;
        color: #4840c6;
        font-size: 20px;
        box-shadow: 0 0 4px 4px #ff26c2;
        border: thick double #ff26c2;
    }

    .title-anser {
        color: #fff;
        font-size: 27px;
        line-height: normal;
        height: 100px;
    }
    .edad-txt {
        font-size: 30px !important;
        height: 108px;
    }
    .resultado-box strong {
        font-size: 28px;
        line-height: 40px;
    }

    .q_o {
        font-size: 18px;
    }

    span.txt-sub{
        font-size: 18px;
        margin-top: 15px;
    }

    .respu {
        font-size: 18px;
        margin: 0;
    }

    .ecom-section h3 {
        font-size: 28px;
    }

    .ecom-grid {
        gap: 10px;
    }

    .movil {
        border-radius: 30px;
        padding: 5px 15px;
        cursor: pointer;
        transition: .3s;
        border: 2px solid #fff;
        box-shadow: 0 0 4px 4px #9a1c80;
        background: #9a1c80;
        color: #fff;
        font-size: 15px;
        font-style: normal;
        font-weight: 500;
        position: relative;
        width: 100%;
        border: thick double #fff;
    }

    .an_o {
        font-size: 30px;
        line-height: normal;
    }

    .answers .answer {
        border-radius: 8px;
        background: rgba(32, 0, 129, .8);
        justify-content: normal;
        height: 55px;
    }

    .img-icon {
        width: 40px;
        box-shadow: 0 0 15.4px transparent;
    }

    .answers {
        display: grid;
        justify-content: normal;
    }

    .answer.selected {
        background-color: #fff;
    }

    .botones {
        gap: 30px;
        flex-direction: column-reverse !important;
    }

    .answer.selected .respu {
        color: #4543dc;
        text-shadow: none;
    }

    .resultado-box {
        padding: 30px 15px;
        border: thick double #c419d3;
        border-radius: 8px;
        display: grid;
    }

    #startBtn {
        display: none !important;
    }

    .movil.seleccionado.efecto-click {
        background: #fff !important;
        color: #2b50d7 !important;
        font-weight: 900;
        font-size: 21px;
        border: thick double #9a1c80;
    }

    #pantallaEdad {
        min-height: 100vh;
        height: 930px;
    }

    .q_o, .sub {
      text-shadow: 0 0 15.4px #ff26c2;
      margin-top: 15px;
      margin-bottom: 25px !important;
    }
    .respu {
      margin: 0;
    }

    .age-selector button {
      margin-top: 0; /* Evita saltos */
    }

    .movil {
      margin-top: 0; /* Igual para móviles */
    }

    .img-edad {
      width: 155px;
      height: 155px;
      aspect-ratio: 1/1;
      display: block;
      object-fit: cover;
    }
    

}

/* Tablets (entre 577px y 991px) */
@media (min-width: 577px) and (max-width: 991px) {
  .container-test {
    max-width: 1260px;
    margin: auto;
    width: auto;
  }

  .age-option {
    display: grid;
    text-align: center;
    transition: transform .3s;
    cursor: pointer;
  }

  .age-selector {
    display: none !important;
  }

  .contenedor-edad {
    padding: 40px 15px;
    border: thick double #9a1c80;
    box-sizing: border-box;
  }

  .q_o, .respu, .sub {
    margin-top: 0;
  }

  .an_o {
    font-size: 32px;
  }

  .q_o, .respu {
    font-size: 23px;
  }

  .resultado-box {
    padding: 50px 15px;
    height: auto;
    border: thick double #bc10e5;
    border-radius: 8px;
  }
}