/* Estilos mejorados para el menú móvil */

/* Botón de hamburguesa */
.mobile-menu-toggle {
    display: none; /* Por defecto oculto, se mostrará con media queries */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1010; /* Mayor que el menú para estar por encima */
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-blue);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Animación del botón en estado activo */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--color-magenta);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--color-magenta);
}

/* Menú móvil overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 10, 20, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1005;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.mobile-menu-container {
    width: 100%;
    padding: 30px;
    text-align: center;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mobile-nav-list a {
    font-family: var(--font-title);
    color: var(--color-text);
    font-size: 1.5rem;
    font-weight: 700;
    padding: 10px;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    display: inline-block;
}

.mobile-nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-blue), var(--color-magenta));
    transition: width 0.3s ease;
}

.mobile-nav-list a:hover,
.mobile-nav-list a.active {
    color: var(--color-blue);
}

.mobile-nav-list a:hover::after,
.mobile-nav-list a.active::after {
    width: 100%;
}

/* Clase para evitar scroll cuando el menú está abierto */
body.no-scroll {
    overflow: hidden;
}

/* Destacar el botón de calculadora de riesgo en móvil */
.mobile-nav-list .btn-nav-highlight {
    background-color: rgba(237, 38, 122, 0.1);
    border: 1px solid var(--color-magenta);
    padding: 10px 20px !important;
    border-radius: 30px;
    color: var(--color-magenta) !important;
}

.mobile-nav-list .btn-nav-highlight:hover {
    background-color: var(--color-magenta);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(237, 38, 122, 0.3);
}