/* Estilos para el menú responsivo */
.apple-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: all 0.3s ease;
}

.apple-nav.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    max-width: 1400px;
    margin: 0 auto;
    transition: all 0.3s ease;
    background-color:#ffffffc9;
}

.scrolled .nav-container {
    padding: 15px 30px;
}

.nav-logo {
    text-decoration: none;
    z-index: 1001; /* Asegura que el logo esté por encima del menú móvil */
}

.logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 400;
    color: #000;
    letter-spacing: 1px;
}

/* Botón de menú hamburguesa */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001; /* Asegura que el botón esté por encima del menú móvil */
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #000;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.nav-toggle span:first-child {
    top: 0;
}

.nav-toggle span:last-child {
    bottom: 0;
}

.nav-toggle.active span:first-child {
    top: 9px;
    transform: rotate(45deg);
}

.nav-toggle.active span:last-child {
    bottom: 9px;
    transform: rotate(-45deg);
}

/* Menú de navegación */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0 15px;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #000;
    text-decoration: none;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #000;
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Botón de acción */
.nav-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #000;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s ease;
    margin-left: 20px;
}

.nav-button:hover {
    background-color: #333;
    transform: translateY(-2px);
}

/* Prevenir scroll cuando el menú está abierto */
body.menu-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 992px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: all 0.5s ease;
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-item {
        margin: 15px 0;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }
    
    .nav-menu.active .nav-item {
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-menu.active .nav-item:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active .nav-item:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active .nav-item:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active .nav-item:nth-child(4) { transition-delay: 0.4s; }
    .nav-menu.active .nav-item:nth-child(5) { transition-delay: 0.5s; }
    
    .nav-link {
        font-family: 'Cormorant Garamond', serif;
        font-size: 24px;
        display: inline-block;
    }
    
    .nav-link::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .nav-link:hover::after {
        width: 40px;
    }
    
    .nav-actions {
        position: absolute;
        bottom: 15%;
        left: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
        transition-delay: 0.6s;
    }
    
    .nav-menu.active .nav-actions {
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-button {
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    .nav-container {
        padding: 15px 20px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .nav-link {
        font-size: 22px;
    }
}

