.top-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #1c1c1b;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    height: 38px;
}

.menu-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1 2rem;
    max-width: 1200px;
    margin: 0.3rem   0.3rem;
    height: 80%;
}

.menu-logo {
    display: flex;
    align-items: center;
    color: #726e15;
    font-weight: bold;
    text-decoration: none;
    font-size: 0.8rem;
    gap: 10px;
}

.menu-logo-img {
    height: 30px;
    width: auto;
}

.menu-items {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.menu-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-color);
    text-decoration: none;
    text-align: center;
    padding: 0.1rem 1rem;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    font-size: 0.8rem;
    display: inline-block;
}

.menu-btn:hover {
    background: rgba(219, 211, 33, 0.1);
   
    border-color: rgba(219, 211, 33, 0.3);
}
.pthmenu-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-color);
    text-decoration: none;
    text-align: center;
    padding: 0.6rem 1rem;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    font-size: 1rem;
    display: inline-block;
}

.pthmenu-btn:hover {
    background: rgba(219, 211, 33, 0.1);
   
    border-color: rgba(219, 211, 33, 0.3);
}

.menu-items a.active {
    color: #000000;
    background-color: #726e15;
    border-color: #dbd321;
}

.dropdown-container {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background-color: #1c1c1b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
    display: none;
    z-index: 1001;
    margin-top: 0.5rem;
}

/* Eliminar esta regla que activa los submenús con hover
.dropdown-container:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}
*/

/* Añadir esta clase para controlar la visualización del menú por clic */
.dropdown-menu.show {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

.dropdown-container::after {
    content: '';
    position: absolute;
    height: 10px;
    width: 100%;
    left: 0;
    top: 100%;
    display: block;
    z-index: 1000;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    text-align: left;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #dbd321;
    border-left-color: #dbd321;
}

.dropdown-trigger {
    position: relative;
    padding-right: 1.75rem;
}

.dropdown-trigger::after {
    content: '▼';
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6rem;
    opacity: 0.7;
    transition: transform 0.2s;
}

/* Eliminar esta regla que gira la flecha con hover
.dropdown-container:hover .dropdown-trigger::after {
    transform: translateY(-50%) rotate(180deg);
}
*/

/* Añadir esta clase para girar la flecha cuando el submenú está abierto */
.dropdown-trigger.active::after {
    transform: translateY(-50%) rotate(180deg);
}

body {
    padding-top: 58px; /* Slightly more than menu height */
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    color: #726e15;
    font-size: 1.5rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(114, 110, 21, 0.3);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.hamburger-menu:hover {
    background: rgba(219, 211, 33, 0.1);
    border-color: rgba(219, 211, 33, 0.3);
}

.hamburger-icon {
    display: inline-block;
}

@media (max-width: 800px) {
    .top-menu {
        height: auto;
        min-height: 38px;
    }

    .menu-inner {
        flex-direction: column;
        padding: 0.3rem 0.5rem;
        margin: 0;
    }
    
    .menu-header {
        display: flex;
        align-items: center;
        width: 100%;
    }
    
    .hamburger-menu {
        display: block;
    }
    
    .menu-items {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0.2rem;
        padding-top: 0.5rem;
        align-items: flex-start;
    }
    
    .menu-items.show {
        display: flex;
        animation: fadeIn 0.2s ease-in-out;
    }
    
    .menu-btn, .pthmenu-btn {
        width: 100%;
        text-align: left;
        padding: 0.5rem;
        font-size: 0.8rem;
        border-radius: 3px;
    }
    
    .dropdown-container {
        width: 100%;
    }
    
    .dropdown-trigger::after {
        right: 1rem;
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        margin-top: 0.2rem;
        margin-bottom: 0.2rem;
        padding: 0 0 0 1rem;
        background: rgba(0, 0, 0, 0.2);
        border: none;
        border-radius: 3px;
    }
    
    .dropdown-item {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    body {
        padding-top: 45px;
    }
}

/* Ajustes adicionales para pantallas muy pequeñas */
@media (max-width: 480px) {
    .menu-btn, .pthmenu-btn {
        font-size: 0.7rem;
        padding: 0.4rem;
    }
    
    .dropdown-item {
        font-size: 0.65rem;
    }
    
    .menu-logo {
        font-size: 0.65rem;
    }
    
    .menu-logo-img {
        height: 20px;
    }
}