/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    height: 100vh;
    background: #f5f6f8;
}

/* Barra lateral */
.sidebar {
    width: 240px;
    background: #1e1e1e;
    color: white;
    padding-top: 20px;
}

/* Lista principal */
.sidebar ul {
    list-style: none;
}

/* Grupo desplegable */
.grupo > span {
    display: block;
    padding: 14px 20px;
    cursor: pointer;
    background: #1e1e1e;
    transition: background 0.3s;
}

.grupo > span:hover {
    background: #333;
}

/* Submenú oculto */
.submenu {
    display: none;
    background: #2a2a2a;
}

.submenu li a {
    display: block;
    padding: 12px 35px;
    text-decoration: none;
    color: #ddd;
    font-size: 14px;
}

.submenu li a:hover {
    background: #444;
    color: white;
}

/* Mostrar al pasar el ratón */
.grupo:hover .submenu {
    display: block;
}

/* Contenido */
.contenido {
    flex: 1;
}
