
.bg-main {
    background-image: url(../cinepolis/Fondo1.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 100vh;
}
.bg-dash {
    background-image: url(../cinepolis/Fondo3.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 100vh;
}

/* Boton cerrar sesion */
.btn-cerrar-sesion {
    width: 10rem;
    height: 5rem;
    background-color: #38d8a8;
    border-radius: 5px;
    color: #fff;
    font-size: x-large;
}
.btn-cerrar-sesion:hover {
    background-color: #2ece36;
}

/* arbol */
#arbol {
    max-width: 100vw;
    max-height: 100vh;
    overflow-x: auto;
    overflow-y: auto;
    position: relative;
    padding: 32px 0;
    box-sizing: border-box;
    background: transparent;
}

/* =====================
   Estructura escalonada
   ===================== */


.tree-root {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 64px;
    position: relative;
}

.tree-node-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}


.tree-toggle {
    display: none;
}


.tree-node {
    background: #fff;
    border: 2px solid #9b78aa;
    border-radius: 16px;
    /* font-weight: bold; */
    color: #674d74;
    width: 20rem;
    height: 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 16px;
    position: relative;
    z-index: 1;
    cursor: pointer;
    font-size: 1.5rem;
    text-align: center;
    box-sizing: border-box;
}

/* Flecha expandir */
.tree-node::before {
    content: "▶";
    position: absolute;
    left: -24px;
    font-size: 2rem;
    color: #674d74;
    transition: transform 0.3s ease;
    display: none;
}
.tree-toggle + .tree-node::before {
    display: block;
}
.tree-toggle:checked + .tree-node::before {
    transform: rotate(90deg);
}

.tree-children {
    display: flex;
    flex-direction: row;
    gap: 15rem; 
    position: relative;
    margin-left: 5rem;
    max-height: 100rem;
    opacity: 1;
    overflow: hidden;
    transition: all 0.3s ease;
}


.tree-toggle:not(:checked) + .tree-node + .tree-children {
    max-height: 0;
    opacity: 0;
    margin-left: 0;
    pointer-events: none;
}


.tree-node-wrap > .tree-node::after {
    display: none;
    content: "";
    position: absolute;
    left: 50%;
    bottom: -32px;
    width: 2px;
    height: 32px;
    background: #8d44ad;
    transform: translateX(-50%);
}


.tree-node-wrap:last-child > .tree-node::after {
    display: none;
}


.tree-children::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -64px; 
    width: 64px;
    height: 2px;
    background: #8d44ad;
}


.tree-children::after {
    content: "";
    position: absolute;
    top: 0;
    left: -64px;
    width: 2px;
    height: 100%;
    background: #8d44ad;
}


.tree-children:only-child::after {
    display: none;
}


a {
    text-decoration: none;
    cursor: pointer;
    color: #000;
}



a.btn-zip {
    display: flex;
    align-items: center;
    gap: 1rem;

}
