@import url(https://fonts.googleapis.com/css?family=Roboto:400,100,300);
nav.nav-lateral-container {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 1000;
    height: 100vh;
    background: linear-gradient(90deg, #c61c1c, #fff 5%, #fff 95%, #003d73);
    box-shadow: 10px 0 10px rgba(48, 48, 48, .19), 8px 0 10px rgba(0, 0, 0, 0.527);
    text-align: center;
    overflow: auto;
    transition: width 0.5s ease-out, background 0.5s ease-out;
}

nav.nav-lateral-container.expanded {
    width: 280px;
    background: linear-gradient(90deg, #c61c1c, #fff 5%, #fff 95%, #003d73);
    transition: width 0.5s ease-out, background 0.5s ease-out;
}

.nav-lateral-container .back-button {
    display: none;
    color: #FF2332;
    position: absolute;
    left: 10px;
    top: 10px;
    font-size: 36px;
    cursor: pointer;
    transition: color 0.3s, opacity 0.3s ease;
    background: transparent;
    border: none;
    padding: 0;
    z-index: 10;
    opacity: 0;
}

.nav-lateral-container.expanded .back-button {
    display: block;
    animation: fadeIn 0.3s ease 0.2s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.nav-lateral-container .back-button:hover {
    color: rgb(3, 78, 162);
    transition: color 0.3s;
}

.nav-lateral-container .logo-container {
    width: 100%;
    height: 70px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.menu-toggle-button {
    position: fixed;
    top: 50%;
    left: 120px;
    transform: translateY(-50%);
    color: #fff;
    background: linear-gradient(135deg, #FF2332, #c61c1c);
    font-size: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 35, 50, 0.4), 0 0 0 0 rgba(255, 35, 50, 0.7);
    animation: floatArrow 2s ease-in-out infinite, pulseRing 2s ease-in-out infinite;
    transition: all 0.3s ease;
    z-index: 1001;
    cursor: pointer;
}

.menu-toggle-button:hover {
    background: linear-gradient(135deg, #003d73, #034ea2);
    box-shadow: 0 6px 16px rgba(0, 61, 115, 0.5), 0 0 0 0 rgba(0, 61, 115, 0.7);
    animation: none;
}

.menu-toggle-button.expanded {
    left: 280px;
    background: linear-gradient(135deg, #003d73, #034ea2);
}

.menu-toggle-button.expanded:hover {
    background: linear-gradient(135deg, #FF2332, #c61c1c);
}

@media (max-width: 767px) {
    .menu-toggle-button {
        display: none;
    }
}

@keyframes floatArrow {
    0%,
    100% {
        transform: translateY(-50%) translateX(0);
    }
    50% {
        transform: translateY(-50%) translateX(5px);
    }
}

@keyframes pulseRing {
    0% {
        box-shadow: 0 4px 12px rgba(255, 35, 50, 0.4), 0 0 0 0 rgba(255, 35, 50, 0.7);
    }
    50% {
        box-shadow: 0 4px 12px rgba(255, 35, 50, 0.4), 0 0 0 10px rgba(255, 35, 50, 0);
    }
    100% {
        box-shadow: 0 4px 12px rgba(255, 35, 50, 0.4), 0 0 0 0 rgba(255, 35, 50, 0);
    }
}

.nav-lateral-container.expanded .logo-container {
    width: 80%;
    height: 70px;
    margin: auto;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-lateral-container.expanded .logo-container .logo-collapsed {
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-lateral-container.expanded .logo-container .logo-expanded {
    opacity: 1;
    display: block;
    animation: fadeIn 0.3s ease 0.2s forwards;
}

.nav-lateral-container .logo-container .logo-image {
    object-fit: contain;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.nav-lateral-container .logo-container .logo-collapsed {
    max-width: 60px;
    max-height: 60px;
    opacity: 1;
}

.nav-lateral-container .logo-container .logo-expanded {
    max-width: 200px;
    max-height: 190px;
    opacity: 0;
    display: none;
    margin-left: -5vmin;
}

.nav-lateral-container .logo-container:hover .logo-collapsed {
    transform: scale(1.1);
    transition: all 0.3s;
}

.nav-lateral-container .logo-container:hover .logo-expanded {
    transform: scale(1.05);
    transition: all 0.3s;
}

.nav-lateral-container .menu-label {
    margin: 0;
    text-align: center;
    color: rgb(0, 0, 0);
    font-size: 14px;
    font-weight: 300;
}

.nav-lateral-container hr {
    width: 75%;
    border: 1px solid rgb(3, 78, 162);
    margin: 10px auto;
}

.nav-lateral-container .menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.nav-lateral-container .menu-list li {
    padding: 15px;
    width: 70%;
    margin: auto;
    border-bottom: 1px solid #0000004f;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-lateral-container .menu-list li .menu-item-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
}

.nav-lateral-container .menu-list a {
    display: block;
    width: 100%;
}

.nav-lateral-container .menu-list li:last-child {
    border: none;
}

.nav-lateral-container .menu-list li:hover {
    background: transparent;
    border: 2px solid #2196f3;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.3);
    transition: all 0.4s ease;
}

.nav-lateral-container .menu-list li:hover svg,
.nav-lateral-container .menu-list li:hover i {
    color: #FF2332;
}

.nav-lateral-container .menu-list li:hover .menu-item-text {
    color: #FF2332 !important;
}

.nav-lateral-container .menu-list li svg,
.nav-lateral-container .menu-list li i,
.menu-item-text {
    color: #FF2332;
    width: 24px;
    height: 24px;
    fill: #FF2332;
    stroke: #FF2332;
}

.nav-lateral-container .menu-list li .menu-item-text {
    display: none;
    margin: 0;
    color: #000;
    font-size: 14px;
    font-weight: 700;
    padding-left: 12px;
    line-height: 24px;
    white-space: nowrap;
    opacity: 0;
    transition: color 0.4s ease, opacity 0.3s ease;
}

.nav-lateral-container.expanded .menu-list li {
    text-align: left;
    width: 70%;
    justify-content: flex-start;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
}

.nav-lateral-container.expanded .menu-list li .menu-item-content {
    justify-content: flex-start;
}

.nav-lateral-container.expanded .menu-list li:hover::after {
    content: "";
    display: block;
    position: absolute;
    background: rgba(33, 150, 243, 0.05);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 8px;
    transition: all 0.4s ease;
}

.nav-lateral-container.expanded .menu-list li:hover .menu-item-text {
    color: #FF2332 !important;
}

.nav-lateral-container.expanded .menu-list li .menu-item-text {
    display: block;
    animation: fadeIn 0.3s ease 0.2s forwards;
}

.nav-lateral-container .menu-list li.selected {
    background: transparent !important;
    border: 2px solid rgb(3, 78, 162) !important;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(3, 78, 162, 0.5), inset 0 0 10px rgba(3, 78, 162, 0.1);
    transition: all 0.4s ease;
}

.nav-lateral-container .menu-list li.selected svg,
.nav-lateral-container .menu-list li.selected i {
    color: #FF2332 !important;
    fill: #FF2332 !important;
    stroke: #FF2332 !important;
}

.nav-lateral-container .menu-list li.selected .menu-item-text {
    color: #FF2332 !important;
}

.nav-lateral-container.expanded .menu-list li.selected:hover::after {
    background: rgba(3, 78, 162, 0.08);
    transition: all 0.4s ease;
}

.nav-lateral-mobile-drawer .menu-list li.selected {
    background: transparent !important;
    border: 2px solid rgb(3, 78, 162) !important;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(3, 78, 162, 0.5);
    transition: all 0.4s ease;
}

.nav-lateral-mobile-drawer .menu-list li.selected svg,
.nav-lateral-mobile-drawer .menu-list li.selected i {
    color: #FF2332 !important;
    fill: #FF2332 !important;
    stroke: #FF2332 !important;
}

.nav-lateral-mobile-drawer .menu-list li.selected .menu-item-text {
    color: #FF2332 !important;
}

.nav-lateral-container .info-icon {
    color: #FF2332;
    position: absolute;
    margin: 0;
    bottom: 20px;
    left: 0;
    right: 0;
    font-size: 24px;
    z-index: 10;
}


/* Ondas animadas en la parte inferior del menú */

.nav-lateral-wave-container {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 80px;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.nav-lateral-wave,
.nav-lateral-wave * {
    pointer-events: none;
}

.nav-lateral-wave {
    width: 100%;
    height: 120px !important;
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 1;
    opacity: 0.5;
}

.nav-lateral-wave-invert {
    transform: scaleX(-1);
    z-index: 2;
    opacity: 0.95;
}

.nav-lateral-wave-front {
    z-index: 1;
    pointer-events: none;
    transform: translateY(10px);
    opacity: 0.8;
    height: 100px !important;
}

.nav-lateral-wave-invert-front {
    z-index: 2;
    pointer-events: none;
    transform: scaleX(-1) translateY(10px);
    opacity: 0.8;
    height: 80px !important;
}


/* Mobile styles */

@media (max-width: 768px) {
    .nav-lateral-container {
        display: none;
    }
    .nav-lateral-mobile {
        position: relative;
        z-index: 1200;
    }
    .nav-lateral-floating-button {
        position: fixed;
        top: 16px;
        left: 16px;
        width: 48px;
        height: 48px;
        border-radius: 8px;
        border: none;
        background: linear-gradient(130deg, #c61c1c, #ff6262);
        color: #fff;
        font-size: 1.3rem;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        z-index: 1202;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        cursor: pointer;
    }
    .nav-lateral-floating-button:focus-visible {
        outline: 3px solid rgba(255, 255, 255, 0.6);
        outline-offset: 3px;
    }
    .nav-lateral-floating-button.active {
        background: linear-gradient(130deg, #003d73, #2196f3);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    }
    .nav-lateral-mobile-drawer {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: 80%;
        max-width: 300px;
        background: #ffffff;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
        transform: translateX(-100%);
        transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        padding: 10px 16px 20px;
        z-index: 1201;
        display: flex;
        flex-direction: column;
        gap: 0;
        overflow-y: auto;
    }
    .nav-lateral-mobile-drawer.open {
        transform: translateX(0);
    }
    .nav-lateral-mobile-drawer-header {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 12px;
        padding: 0 0 12px;
        border-bottom: 2px solid rgba(0, 61, 115, 0.15);
    }
    .nav-lateral-mobile-drawer-header img {
        height: 185px;
        max-width: 100%;
        object-fit: contain;
    }
    .nav-lateral-mobile-drawer .menu-list {
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
        flex: 1;
        overflow-y: auto;
    }
    .nav-lateral-mobile-drawer .menu-list li {
        width: 100%;
        padding: 16px 12px;
        margin-bottom: 4px;
        border: none;
        display: flex;
        align-items: center;
        border-radius: 8px;
        transition: all 0.3s ease;
        cursor: pointer;
    }
    .nav-lateral-mobile-drawer .menu-list li .menu-item-content {
        display: flex;
        align-items: center;
        gap: 14px;
        width: 100%;
    }
    .nav-lateral-mobile-drawer .menu-list li.selected {
        padding: 10px 8px;
        transform: scale(0.96);
    }
    .nav-lateral-mobile-drawer .menu-list li:hover {
        background: rgba(0, 61, 115, 0.05);
    }
    .nav-lateral-mobile-drawer .menu-list li:last-child {
        border-bottom: none;
    }
    .nav-lateral-mobile-drawer .menu-list li .menu-item-text {
        display: block;
        padding-left: 0;
        margin: 0;
        color: #003d73;
        opacity: 1;
        font-size: 15px;
        font-weight: 500;
        flex: 1;
        line-height: 1.4;
    }
    .nav-lateral-mobile-drawer .menu-list li svg,
    .nav-lateral-mobile-drawer .menu-list li i {
        color: #003d73;
        fill: #003d73;
        stroke: #003d73;
        width: 22px;
        height: 22px;
        min-width: 22px;
        min-height: 22px;
        flex-shrink: 0;
    }
    .nav-lateral-mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1200;
        animation: fadeInOverlay 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    @keyframes fadeInOverlay {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
    /* Ondas animadas en la parte inferior del menú móvil */
    .nav-lateral-mobile-wave-container {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 70px;
        z-index: 1;
        pointer-events: none;
        overflow: hidden;
    }
    .nav-lateral-mobile-wave,
    .nav-lateral-mobile-wave * {
        pointer-events: none;
    }
    .nav-lateral-mobile-wave {
        width: 100%;
        height: 100px !important;
        display: block;
        position: absolute;
        left: 0;
        bottom: 0;
        z-index: 1;
        opacity: 0.5;
    }
    .nav-lateral-mobile-wave-invert {
        transform: scaleX(-1);
        z-index: 2;
        opacity: 0.95;
    }
    .nav-lateral-mobile-wave-front {
        z-index: 1;
        pointer-events: none;
        transform: translateY(10px);
        opacity: 0.8;
        height: 85px !important;
    }
    .nav-lateral-mobile-wave-invert-front {
        z-index: 2;
        pointer-events: none;
        transform: scaleX(-1) translateY(10px);
        opacity: 0.8;
        height: 70px !important;
    }
    /* Onda inferior en el contenido móvil */
    .layout-mobile-content {
        position: relative;
    }
    .layout-mobile-bottom-wave {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 60px;
        z-index: 5;
        pointer-events: none;
        overflow: visible;
    }
    .layout-mobile-wave-svg {
        width: 100%;
        height: 100%;
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
    }
    .layout-mobile-wave-red {
        z-index: 6;
    }
    .layout-mobile-wave-blue-front {
        z-index: 7;
    }
}