/** {*/
/*    margin: 0;*/
/*    padding: 0;*/
/*    box-sizing: border-box;*/
/*    font-family: Arial, sans-serif;*/
/*}*/

/* Una sola medida para header y panel: evita que el sidebar quede debajo del header en pantallas grandes */
:root {
    --utb-navbar-height: max(5.25rem, 11vh);
}

.nav-btn {
    background-color: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: 0px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
    width: auto; /* importante */
    font-size: 18px; /* tamaño del ícono */
}

.subtle-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    
    color: rgba(255, 255, 255, 0.5); /* baja visibilidad */
    font-size: 16px;

    opacity: 0.6;
    transition: all 0.3s ease;
}

/* efecto solo cuando el usuario interactúa */
.subtle-icon:hover {
    opacity: 1;
    color: white;
    transform: scale(1.1);
}

.navbar {
    width: 100%;
    height: var(--utb-navbar-height);
    min-height: var(--utb-navbar-height);
    background: rgb(0 0 0);
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10001;
    font-style: italic;
    box-sizing: border-box;
}

.logo {
    height: 100%;
    width: auto;
    margin-right: 20px;
}

.navbar-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: rgb(0, 0, 0);
    font-size: 20px;
    white-space: nowrap; /* Evita que el texto se divida */
}

 .floating-web-window {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 60%;
        height: 70vh;
        background: white;
        box-shadow: 0 0 20px rgba(0,0,0,0.2);
        border-radius: 10px;
        overflow: hidden;
        z-index: 1000;
    }
    .floating-web-header {
        padding: 10px;
        background: #f8f9fa;
        border-bottom: 1px solid #ddd;
    }
    .floating-web-content {
        height: calc(100% - 40px);
    }

/* Ocultar el título en pantallas pequeñas */
@media (max-width: 700px) {
    .navbar-title {
        display: none;
    }
}


/*body {*/
/*    display: flex;*/
/*    justify-content: flex-end;*/
/*    height: 100vh;*/
/*    background: #ecf0f1;*/
/*}*/

/* Barra lateral: empieza justo debajo del header (no usa padding ficticio que en pantallas altas queda corto) */
.sidebar {
    --sidebar-width: min(280px, 88vw);
    width: var(--sidebar-width);
    top: var(--utb-navbar-height);
    height: calc(100vh - var(--utb-navbar-height));
    height: calc(100dvh - var(--utb-navbar-height));
    overflow-y: auto;
    overflow-x: hidden;
    position: fixed;
    right: calc(-1 * var(--sidebar-width));
    background: rgb(13 18 27 / 94%);
    transition: right 0.3s ease;
    padding: 12px 0 24px;
    z-index: 10000;
    box-sizing: border-box;
    box-shadow: -6px 0 20px rgba(0, 0, 0, 0.25);
    -webkit-overflow-scrolling: touch;
}

.sidebar a {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 14px 16px;
    text-decoration: none;
    color: white;
    transition: 0.3s;
    cursor: pointer;
    font-size: clamp(0.88rem, 2.4vw, 1rem);
    line-height: 1.35;
    word-wrap: break-word;
}

.sidebar a:hover {
    /* background: #1a252f; */
    background: rgb(13 18 27 / 91%);
}

/* Submenús */
.submenu {
    display: none;
    background: rgba(188, 197, 206, 0.5);
    padding-left: 20px;
}

.submenu a {
    font-size: 14px;
    padding: 10px;
}

/* Botón para abrir la barra */
.toggle-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    line-height: 1;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 5px;
    z-index: 10002;
}

.toggle-btn:hover {
    background: #494949;
}

/* Mostrar la barra cuando se agrega la clase 'active' */
.sidebar.active {
    right: 0;
}

/* Encabezado del menú */
.sidebar-header {
    text-align: center;
    padding: 15px;
    background: #1a252f;
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.sidebar-header button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

/* Flecha para indicar desplegable */
.dropdown-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .logo {
        width: 70%;
        height: 70%;
    }
    .nav-right{
        display: none;
    }
}
