 /* Estilos generales para el treeview3 */
/* Estilos generales */
.treeview3 {
    list-style: none;
    padding: 0;
    font-family: sans-serif;
}

.treeview3 ul {
    list-style: none;
    padding-left: 20px;
    display: none; /* Oculto por defecto */
}

/* Ocultar checkbox */
.treeview3 input[type="checkbox"] {
    display: none;
}

/* Estilo de carpeta */
.treeview3-folder {
    cursor: pointer;
    display: block;
    padding: 5px;
    user-select: none;
    margin-left: 15px;
}

.treeview3-folder::before {
    content: "▶";
    display: inline-block;
    margin-right: 8px;
    margin-left: -15px;
    transition: transform 0.2s;
    font-size: 10px;
}
.treeview3-folder:hover {
    background-color: #ccc;
    border-radius: 5px;
}

/* Lógica de apertura: Corregido el selector */
.treeview3 input[type="checkbox"]:checked ~ ul {
    display: block;
}

/* Rotar la flecha */
.treeview3 input[type="checkbox"]:checked + .treeview3-folder::before {
    transform: rotate(90deg);
}

.treeview3-file {
    padding: 5px;
    color: #555;
    cursor: pointer;
}
.treeview3-file:hover {
    background-color: dodgerblue;
    color:white;
    border-radius: 5px;
}
        