:root {
    --primario: #17a2b8;
    --gris-claro: #b8b8b8;
    --sombra: 0 0 13px 0 rgba(185, 185, 185, 0.25);
}



#miniPage {
    position: absolute;
    top: 100px;
    left: 55%;
    background-color: #f2f2f2;
    padding: 10px;
    border: 1px solid #ccc;
    height: 50%;
    width: 43%;
    overflow-y: scroll;
    z-index: 5;
    display: none;
    border: 3px solid var(--primario);
}
.preguntas-nav {
    z-index: 1;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {
    background: #f8fafb;
    font-family: "Roboto", sans-serif;
}

main {
    max-width: 1000px;
    width: 90%;
    margin: 40px auto;
}

.titulo {
    color: #3a3a3a;
    font-weight: 700;
    text-align: center;
    margin: 60px 0;
}

/*! =================================================*/
/*! ============= Categorias ============= */
/*! =================================================*/
.categorias {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.categoria {
    cursor: pointer;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background: #fff;
    font-weight: 700;
    color: var(--gris-claro);
    border: 2px solid transparent;
    transition: 0.3s ease all;
}

.categoria:hover {
    box-shadow: var(--sombra);
    color: #000;
}

.categoria:hover path {
    fill: var(--primario);
}

.categoria svg {
    width: 64px;
    margin-bottom: 10px;
}

.categoria path {
    fill: var(--gris-claro);
    transition: 0.3s ease all;
}

.categoria.activa {
    border: 2px solid var(--primario);
    color: #000;
}

.categoria.activa path {
    fill: var(--primario);
}

/*! =================================================*/
/*! ============= Contenedor Preguntas ============= */
/*! =================================================*/
.contenedor-preguntas {
    display: none;
    grid-template-columns: 1fr;
    gap: 40px;
}

.contenedor-preguntas.activo {
    display: grid;
}

.contenedor-pregunta {
    background: #fff;
    padding: 40px;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s ease all;
    cursor: pointer;
}

.contenedor-pregunta:hover {
    box-shadow: var(--sombra);
}

.contenedor-pregunta.activa {
    border: 2px solid var(--primario);
}

/*! =================================================*/
/*! ============= Preguntas ============= */
/*! =================================================*/
.pregunta {
    font-weight: 700;
    font-size: 20px;
    line-height: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pregunta img {
    width: 14px;
}

.respuesta {
    color: #808080;
    line-height: 30px;
    max-height: 0;
    opacity: 0;
    transition: 0.3s ease all;
}

.contenedor-pregunta.activa .respuesta {
    opacity: 1;
    margin-top: 20px;
}

.contenedor-pregunta.activa img {
    transform: rotate(45deg);
}

li {
    color: black;
}

.respuesta ul {
    color: black;
}

.respuesta ol {
    color: black;
}

.respuesta p {
    color: black;
}

#cierra-modulo {
    display: inline-block;
    padding: 5px 10px;
    background-color: #17a2b8;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-left: 90%;
}

/* Estilo cuando el botón se coloca sobre él */
#cierra-modulo:hover {
    background-color: #c0392b;
}

/* Estilo cuando se presiona el botón */
#cierra-modulo:active {
    background-color: #d35400;
}

/* Estilo cuando el botón tiene el foco */
#cierra-modulo:focus {
    outline: none;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #3498db;
}

#miniPage a {
    text-decoration: none;
}

.categoria {
    height: 100%;
}
/*! =================================================*/
/*! ============= Responsive Design ============= */
/*! =================================================*/
@media screen and (max-width: 820px) {
    .categorias {
        grid-template-columns: 1fr 1fr;
    }

    .categoria {
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 5px;
    }

    .categoria svg {
        width: 30px;
        margin-right: 10px;
        margin-bottom: 0;
    }

    #miniPage {
        position: absolute;
        top: 10%px;
        left: 10%;
        background-color: #f2f2f2;
        padding: 10px;
        border: 1px solid #ccc;
        height: 30%;
        width: 83%;
        overflow-y: scroll;
        z-index: 5;
        display: none;
        border: 3px solid var(--primario);
    }
}

@media screen and (max-width: 500px) {
    .categorias {
        grid-template-columns: 1fr;
    }
    #miniPage {
        position: fixed;
        top: 10%;
        left: 10%;
        background-color: #f2f2f2;
        padding: 10px;
        border: 1px solid #ccc;
        height: 40%;
        width: 83%;
        overflow-y: scroll;
        z-index: 2;
        display: none;
        border: 3px solid var(--primario);
    }
}
