/* File: menu-lateral.css */
/* Variables de color personalizadas */
:root {
    --ml-deep-orange: #f57b20;
    --ml-deep-orange-dark: rgb(242, 105, 0);
    --ml-deep-orange-light: #eca067;
    --text-gray: #5c5c5c;
    --border-light: #e0e0e0;
    --ml-color-alterno: #00643a;
    /* --ml-color-alterno: #f57b20; */
    --ml-green: #00643a;
}

body {
    font-family: 'Poppins', sans-serif;
}

/* Contenedor principal del menú */
.ml-navigation-container {
    position: sticky;
    padding: 10px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

/* Reseteo de estilos de navegación */
.ml-nav-tabs {
    border: none;
    background: transparent;
    flex-direction: column;
}

/* Estilos para encabezados de sección */
.ml-section-header {
    background: linear-gradient(90deg, var(--ml-deep-orange-dark) 00%, var(--ml-deep-orange-light) 100%);
    color: white;
    padding: 8px 12px;
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    position: relative;
    display: flex;
    align-items: center;
}

/* .ml-section-header::before {
            content: '';
            width: 4px;
            height: 100%;
            background: rgba(255,255,255,0.3);
            position: absolute;
            left: 0;
            top: 0;
        } */

.ml-section-header .section-number {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-weight: 700;
    font-size: 0.8rem;
}

/* Estilos para elementos de navegación */
.ml-nav-item {
    border: none;
    margin: 0;
}

.ml-nav-link,
.ml-menu-link {
    background: #fff;
    border: none;
    border-bottom: 1px solid var(--border-light);
    border-radius: 0;
    color: var(--text-gray);
    padding: 4px 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: block;
    position: relative;
    text-transform: none;
}

.ml-nav-link:hover,
.ml-menu-link:hover {
    background: #f8f9fa;
    color: var(--ml-deep-orange);
    border-left: 4px solid var(--ml-color-alterno);
    padding-left: 20px;
    /* transform: translateX(4px); */
}

.ml-nav-link.active,
.ml-menu-link.active {
    background: linear-gradient(90deg, rgba(236, 160, 103, 0.1) 0%, rgba(245, 123, 32, 0.4) 100%);
    color: var(--ml-deep-orange-dark);
    border-left: 4px solid var(--ml-deep-orange);
    font-weight: 500;
}

/* Iconos para diferentes tipos de enlaces */
.ml-nav-link::before,
.ml-menu-link::before {
    /* content: '\f0da'; */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 12px;
    color: var(--ml-color-alterno);
    font-size: 1.0rem;
    transition: all 0.3s ease;
}

/* Ícono para FAQs*/
.ml-menu-link.section-link::before {
    content: '\f059';
    color: var(--ml-color-alterno);
}

.ml-nav-link:hover::before,
.ml-menu-link:hover::before {
    color: var(--ml-deep-orange);
    transform: translateX(3px) scale(10.1);
}

/* Enlaces externos */
.ml-external-link {
    position: relative;
}

/* .ml-external-link::after {
    content: '\f35d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.10rem;
    color: var(--ml-color-alterno);
    transition: all 0.3s ease;
} */

.ml-external-link:hover::after {
    /* color: var(--ml-deep-orange); */
    color: var(--ml-color-alterno);
    transform: translateY(-50%) scale(1.1);
}

/* Espaciador personalizado */
.spacer-30 {
    height: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .ml-navigation-container {
        position: sticky;
        width: 100%;
    }

    .ml-section-header {
        padding: 14px 20px;
        font-size: 1rem;
    }

    .ml-nav-link,
    .ml-menu-link {
        padding: 14px 20px;
        font-size: 1rem;
    }

    .ml-section-header .section-number {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
        margin-right: 10px;
    }
}

/* Animaciones */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ml-nav-item,
.ml-section-header,
.ml-menu-link {
    animation: slideIn 0.3s ease forwards;
}

.ml-nav-item:nth-child(2) {
    animation-delay: 0.1s;
}

.ml-nav-item:nth-child(3) {
    animation-delay: 0.15s;
}

.ml-nav-item:nth-child(4) {
    animation-delay: 0.2s;
}

.ml-nav-item:nth-child(5) {
    animation-delay: 0.25s;
}

.floating-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--ml-green);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.floating-button.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}
