

#categorias {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* FILTRO */
.filtro_fecha {
    margin-bottom: 1rem;
    color: var(--color_p);
    padding: 1rem;
    background: transparent;
    border: var(--border);
    border-radius: 16px;
}

.filtro_fecha input[type="range"] {
    width: 100%;
    cursor: pointer;
}

.filtro_fecha p {
    font-size: 16px;
}

.categoria {
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    justify-content: space-between;
    display: flex;
    flex-direction: row;
    background: transparent;
    backdrop-filter: blur(16px);
    color: var(--color_p);
    position: relative;
    border-radius: 16px;
    padding: 1rem;
    border: var(--border);
    align-items: center;
}

.categoria .tipo {
    margin: 0;
}

.categoria:hover {
    background: var(--background_div);
}

.categoria.activo {
    background: var(--corporativo);
    color: black;
    border-color: var(--corporativo);
}




/* El contenedor actúa como ancla y recorta lo que sobresale */
#contenido {
    position: relative;
    overflow: hidden; /* <--- ESTO ELIMINA EL SCROLL HORIZONTAL */
    z-index: 1;
}


/* Animaciones de movimiento fluido */
@keyframes moveMota1 {
    0% { transform: translate(100px, 600px) scale(1.1) rotate(-45deg); }
    50% { transform: translate(-100px, -100px) scale(1) rotate(0deg); }
    100% { transform: translate(500px, 300px) scale(1.4) rotate(45deg); }
    
}

@keyframes moveMota2 {
    0% { transform: translate(-200px, -500px) scale(1.3) rotate(180deg); }
    50% { transform: translate(100px, 100px) scale(1.2) rotate(0deg); }
    100% { transform: translate(-600px, -200px) scale(0.8) rotate(-90deg); }
    
}


.tipo.nuevo {
    background: red;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.05em;
    animation: pulseNuevo 2s infinite;
}

@keyframes pulseNuevo {
    0%, 100% { box-shadow: 0 0 0 0 rgb(197 34 34); }
    50%       { box-shadow: 0 0 0 6px rgb(227 22 22 / 26%); }
}


/* --- ANIMACIONES DE ENTRADA (KEYFRAMES) --- */


@keyframes slideInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

#inicio {
    border-bottom: none;
}

/* Las tarjetas de examen aparecen de forma escalonada */
#seccion .examen {
    animation: slideInUp 0.6s ease-out both;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#seccion .examen:hover {
    transform: translateY(-5px);
    background: transparent;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}


#seccion {
	max-width: 1200px;
    margin: 0 auto;
}

#seccion hr {
    border: solid white 1px;
}

#seccion .examen {
    background: var(--background_div);
    box-sizing: border-box;
    padding: 1rem;
    position: relative;
    text-decoration: none;
    width: 100%;
    height: auto;
    color: var(--color_p);
    border-radius: 16px;
    border: var(--border);
}

#seccion .examen h2 {
    text-shadow: 0px 0px 6px rgba(255, 255, 255, 0.3);
    font-family: "GeistPixel";
    font-weight: 600;
}

#seccion .examen p {
    font-size: 16px;
    color: var(--color_p_dos);
}

.examen a {
    gap: 1rem;
    font-weight: 900;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #de9819;
    text-decoration: none;
    padding: 1rem;
    color: #ffffff;
    border-radius: 10px;
}

.examen a i {
    display: flex;
    justify-content: center;
    align-items: center;
}

#recomendacion_aesa {
    position: relative;
    padding: 1rem;
    border-radius: 16px;
    background: var(--background_div);
    border: var(--border);
    overflow: hidden;
    margin-bottom: 1rem;
}

#recomendacion_aesa h3 {
    font-size: 28px;
    z-index: 99;
    position: relative;
    color: white;
}

#recomendacion_aesa p {
    position: relative;
    color: white;
    z-index: 99;
    font-size: 16px;
    margin-bottom: 1rem;
}

#row_aesa {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}

#recomendacion_aesa a {
    text-decoration: none;
    border-radius: 10px;
    padding: 0.5rem;
    background: white;
    position: relative;
    color: black;
    z-index: 99;
    font-size: 16px;
}

#recomendacion_aesa img {
    z-index: 1;
    filter: blur(25px);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
}

/* FILTRO */
.filtro_fecha {
    margin-bottom: 1rem;
    color: var(--color_p);
    padding: 1rem;
    border: var(--border);
    border-radius: 16px;
}

.filtro_fecha p {
    font-size: 16px;
    margin-bottom: 0.6rem;
}

.filtro_fecha select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: var(--background_div);
    color: var(--color_p);
    border: var(--border);
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
}

/* ── Switcher Premium/Gratis/Todos ─────────────────────── */
.switch_premium {
    gap: 1rem;
    background: var(--background_div);
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: var(--border);
    border-radius: 10px;
    padding: 0 1rem;
}

.switch_premium input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch_premium label {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-align: center;
    padding: 0.65rem 0.3rem;
    font-size: 13px;
    font-weight: 700;
    color: var(--color_p);
    cursor: pointer;
    border-radius: 12px;
    transition: color 0.25s;
    white-space: nowrap;
}

.switch_premium_thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(33.333% - 4px);
    height: calc(100% - 8px);
    background: var(--corporativo);
    border-radius: 6px;
    transition: transform 0.25s ease;
    z-index: 1;
}

#radio_todos:checked ~ .switch_premium_thumb   { transform: translateX(0%); }
#radio_gratis:checked ~ .switch_premium_thumb  { transform: translateX(100%); }
#radio_premium:checked ~ .switch_premium_thumb { transform: translateX(200%); }

#radio_todos:checked   ~ label[for="radio_todos"],
#radio_gratis:checked  ~ label[for="radio_gratis"],
#radio_premium:checked ~ label[for="radio_premium"] {
    color: #fff;
}

/* Enlace de sugerencias como CTA en naranja */
.enlace_boton_secundario {
    background: var(--background_div);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--color_p);
    border: var(--border);
    border-radius: 16px;
    padding: 1rem;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.fi-sr-bulb {
    width: fit-content;
    margin-bottom: 1rem;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    color: #000000;
    border-radius: 16px;
    border: var(--border);
}



.row_tipo {
    gap: 1rem;
    display: flex;
    flex-direction: row;
}

.tipo {
    margin-bottom: 1rem;
    display: flex;
    right: 1rem;
    top: 1rem;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    padding: 0.3rem 0.5rem;
    border: solid grey 1px;
    font-size: 16px;
}

.premium {
    width: fit-content;
    background: #b484ff;
    color: #ffffff;
}

.a1a3 {
    width: fit-content;
    background: #ff6c67c4;
    color: #ffc9d2;
}

.a2 {
    width: fit-content;
    color: #ff859a;
    background: #9f005fe8;
}

.sts {
    width: fit-content;
    color: #ffff73;
    background: #fbbc39bd;
}

.radiofonista {
    width: fit-content;
    color: #eaeaea;
    background: #636363b5;
}

#row_preguntas {
    padding-bottom: 4rem;
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

#preguntas_izquierda {
    border-right: var(--border);
    padding-right: 1rem;
    top: 5rem;
    width: 25%;
    height: 90vh;
    position: sticky;
}

#preguntas {
    width: 75%;
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.info_test {
    margin-top: 1rem;
    color: var(--color_p_dos);
    gap: 0.5rem;
    margin-top: 1rem;
    width: 33%;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
}

.row_info {
    border-top: var(--border);
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    margin-top: 1rem;
}

h4 {
    color: var(--color_p);
}


/* RESPONSIVE */
@media (max-width: 800px) {
    .filtro_fecha {
        display: none;
    }
    
    h4 {
        display: none;
    }
    
    #recomendacion_aesa {
        display: none;
    }
    
    #preguntas_izquierda {
        height: auto;
        top: auto;
        position: relative;
    }
    
    #row_preguntas {
        flex-direction: column;
    }
    
    #preguntas {
        width: 100%;
    }
    
    #preguntas_izquierda {
        width: 100%;
    }

    
	#seccion {
	    padding: 1rem;
	}
	
	input, select, textarea {
	    font-size: 1rem;
	}

}
