/* Estilo para el contenedor principal */
ul {
    list-style-type: none; /* Eliminar los puntos de lista por defecto */
    padding: 0;
    margin: 0;
    display: flex; /* Los nodos estarán en fila */
    flex-direction: row; /* Dirección de las ramas hacia la derecha */
    justify-content: flex-start; /* Alinear al inicio */
}

/* Estilo para cada nodo del árbol */
li {
    padding: 10px;
    font-family: Arial, sans-serif;
    border: 2px solid #333; /* Bordes del nodo */
    background-color: #f0f0f0; /* Color de fondo */
    margin-right: 15px; /* Espacio entre los nodos */
    border-radius: 5px; /* Bordes redondeados */
    display: flex;
    flex-direction: column; /* Los subnodos estarán en columna dentro del nodo */
    align-items: center;
    min-width: 100px; /* Asegura que cada nodo tenga un tamaño mínimo */
}

/* Para los subnodos, debemos hacer que se acomoden horizontalmente a la derecha */
li > ul {
    display: flex;
    flex-direction: row; /* Los subnodos estarán en fila hacia la derecha */
    margin-top: 10px;
}

/* Los subnodos también tendrán su propio estilo */
li > ul > li {
    margin-left: 10px; /* Espacio entre los subnodos */
    font-size: 0.9em;
}

/* Estilo para los íconos */
li::before {
    content: "🔹"; /* Ícono para cada nodo */
    padding-right: 5px;
}

/* Estilo para los nodos flotantes (opcional) */
.fab-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}


/* Fondo oscuro detrás del modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Contenedor del modal */
.modal-box {
    background: white;
    width: 100%;
    max-width: 500px;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    text-align: center;
    font-family: sans-serif;
}

/* Botón cerrar (X) */
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 1.5rem;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
}

/* Logo */
.modal-logo {
    width: 80px;
    height: auto;
    margin: 1rem auto;
}

/* Titular */
.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e2e2e2;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

/* Bienvenida */
.modal-welcome {
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 1rem;
    color: #222;
}

.modal-subtext {
    color: #777;
    font-size: 0.9rem;
}

/* Formulario */
.modal-form label {
    display: block;
    text-align: left;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #333;
}

.modal-form input {
    width: 100%;
    padding: 0.6rem;
    margin-bottom: 1.2rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    background-color: #f9f9f9;
}

.modal-form .password-wrapper {
    position: relative;
}

.modal-form .toggle-password {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: #555;
}

/* Botones */
.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 1rem;
}

.modal-buttons button,
.modal-buttons a {
    flex: 1;
    padding: 0.6rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
}

.modal-buttons .login-btn {
    background-color: #1e3a8a;
    color: white;
    border: none;
}

.modal-buttons .register-btn {
    border: 1px solid #1e3a8a;
    color: #1e3a8a;
    background-color: white;
}
