/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1080px;
    z-index: 1000;
    padding: 25px 0;
    background-color: rgba(10, 10, 10, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    will-change: transform;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
}

/* Línea del centro removida */

.header-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.logo {
    height: 90px;
    display: flex;
    align-items: center;
    text-decoration: none;
    position: absolute;
    left: 40px;
}

.logo-img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* Logo visibility control */
.logo-full {
    display: block;
}

.logo-simple {
    display: none;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
    white-space: nowrap;
}

.nav-link {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #00E5FF;
}

/* Button in header specific styles */
.header-container .btn {
    white-space: nowrap;
    font-size: 15px;
    padding: 14px 28px;
    line-height: 1.2;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hamburger Button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #FFFFFF;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger animation */
.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Styles */
@media (max-width: 768px) {
    header {
        padding: 15px 0;
    }
    
    .container {
        padding: 0 20px;
    }
    
    /* Línea del centro removida */
    
    .header-container {
        justify-content: space-between;
        align-items: center;
    }
    
    .logo {
        position: static;
        height: 50px;
        left: auto;
        margin: 0;
        padding: 0;
        margin-left: 0;
        margin-right: auto;
    }
    
    /* Show full logo on mobile */
    .logo-full {
        display: block;
        height: 50px;
        width: auto;
    }
    
    .logo-simple {
        display: none;
    }
    
    /* Show hamburger button */
    .hamburger-btn {
        display: flex !important;
        order: 2;
    }
    
    /* Hide nav menu by default on mobile */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.3s ease;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        padding: 80px 20px 20px;
    }
    
    /* Show nav menu when active */
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 18px;
        font-weight: 700;
        padding: 10px 20px;
        border-radius: 8px;
        transition: all 0.3s ease;
        width: 100%;
        text-align: center;
    }
    
    .nav-link:hover {
        background: rgba(0, 229, 255, 0.1);
        color: #00E5FF;
    }
    
    /* Animation for nav links */
    @keyframes slideInFromRight {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    .nav-link.animate-in {
        animation: slideInFromRight 0.3s ease forwards;
    }
    
    .header-container .btn {
        font-size: 16px;
        padding: 15px 30px;
        width: 100%;
        max-width: 200px;
        margin-top: 20px;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Línea del centro removida */
    
    .logo {
        height: 45px;
        padding: 0;
        margin-left: 0;
        margin-right: auto;
    }
    
    .logo-full {
        height: 45px;
        width: auto;
    }
    
    .nav-menu {
        width: 100%;
        right: -100%;
    }
    
    .nav-link {
        font-size: 16px;
    }
    
    .header-container .btn {
        font-size: 14px;
        padding: 12px 25px;
    }
}

/* Tablet Styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-menu {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 14px;
    }
    
    .header-container .btn {
        font-size: 13px;
        padding: 12px 20px;
    }
    
    .logo {
        height: 70px;
    }
}

/* Large Desktop Styles */
@media (max-width: 1200px) and (min-width: 1025px) {
    .nav-menu {
        gap: 25px;
    }
    
    .header-container .btn {
        font-size: 14px;
        padding: 12px 24px;
    }
    
    .logo {
        height: 80px;
    }
}

/* Extra Large Desktop Styles */
@media (min-width: 1201px) {
    .nav-menu {
        gap: 35px;
    }
    
    .nav-link {
        font-size: 16px;
    }
    
    .header-container .btn {
        font-size: 15px;
        padding: 14px 28px;
    }
    
    .logo {
        height: 90px;
    }
}