/* Reset y estilos base */
* {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
}

html,
body {
        height: 100%;
        width: 100%;
        overflow: hidden;
        position: fixed;
}

body {
        display: flex;
        flex-direction: column;
}

/* Estructura principal */
#t-main {
        display: flex;
        flex-direction: column;
        height: 100vh;
        width: 100%;
}

/* Header */
#t-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 1rem;
        height: var(--header-height);
        z-index: 10;
}

#t-header-home {
        display: flex;
        align-items: center;
        gap: 0.5rem;
}

.icon-container {
        display: flex;
        align-items: center;
        height: var(--icon-size);
        width: var(--icon-size);
}

.icon-container svg {
        width: 100%;
        height: 100%;
}

.app-name {
        font-weight: bold;
        /* font-size: 1.1rem; */
        line-height: 1;
}

/* Menú de navegación */
#t-header-menu {
        position: relative;
}

.menu-items {
        display: flex;
        list-style: none;
        gap: 1rem;
}

/* Para pantallas más pequeñas, el menú se vuelve hamburguesa */
.hamburger-button {
        display: none;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        background: transparent;
        border: none;
        cursor: pointer;
}

.hamburger-button span {
        display: block;
        height: 2px;
        width: 100%;
        border-radius: 2px;
}

/* App principal */
#t-app {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
}

#t-app-content {
        height: 100%;
        width: 100%;
        padding: 1rem;
        display: flex;
        flex-direction: column;
}

/* Footer */
#t-footer {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0.5rem 1rem;
        height: var(--footer-height);
        z-index: 5;
}

/* Modo fullscreen */
#t-app.full-screen {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 20;
}

/* Media queries para dispositivos móviles */
/* Media queries para dispositivos móviles */
@media (max-width: 768px) {
        .hamburger-button {
                display: flex;
        }

        .menu-items {
                position: absolute;
                top: var(--header-height);
                right: -1px; /* Ajustado para evitar el borde visible */
                flex-direction: column;
                background-color: var(--menu-bg-color);
                padding: 1rem;
                width: 200px;
                transform: translateX(101%); /* Aumentado ligeramente para asegurar que esté completamente fuera */
                transition: transform 0.3s ease;
                z-index: 15;
                box-shadow: -3px 0 5px rgba(0, 0, 0, 0.1); /* Sombra solo al lado izquierdo */
        }

        .menu-items.active {
                transform: translateX(0);
        }

        .menu-items li {
                width: 100%;
                padding: 0.5rem 0;
        }
}