/* Estilos para el header personalizado de Trösten */

/* Header principal */
.pxl-header-trosten {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

/* Navegación principal */
.pxl-header-trosten .nav-tabs {
    border: none;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.pxl-header-trosten .nav-item {
    margin: 0;
}

.pxl-header-trosten .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 30px;
    text-decoration: none;
    border: none;
    border-radius: 0;
    transition: all 0.3s ease;
    position: relative;
    min-height: 80px;
}

/* Botón HOME (negro) */
.pxl-header-trosten .nav-link.bg-black {
    background: #000;
    color: white;
}

.pxl-header-trosten .nav-link.bg-black:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Botón EXPERIENCIAS (gris) */
.pxl-header-trosten .nav-link.bg-gray {
    background: #666;
    color: white;
}

.pxl-header-trosten .nav-link.bg-gray:hover {
    background: #888;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Logo y texto */
.pxl-header-trosten .nav-link img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

.pxl-header-trosten .logo-text {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

/* Estado activo */
.pxl-header-trosten .nav-link.active {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Menú móvil */
#pxl-nav-mobile {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.pxl-nav-mobile-button {
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #000;
    border-radius: 5px;
    padding: 5px;
}

.pxl-nav-mobile-button span {
    width: 20px;
    height: 2px;
    background: white;
    margin: 2px 0;
    transition: all 0.3s ease;
}

/* Menú móvil desplegable */
.pxl-header-menu-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.9);
    z-index: 1002;
    overflow-y: auto;
}

.pxl-header-menu-mobile.active {
    display: block;
}

.pxl-header-menu-scroll {
    padding: 60px 30px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pxl-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #000;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pxl-logo-mobile {
    text-align: center;
    margin-bottom: 40px;
}

.pxl-logo-mobile img {
    max-height: 60px;
    width: auto;
}

/* Navegación móvil */
.pxl-header-nav-mobile {
    flex: 1;
}

.pxl-menu-mobile {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pxl-menu-mobile .menu-item {
    margin-bottom: 20px;
}

.pxl-menu-mobile .menu-link {
    display: block;
    padding: 15px 20px;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.pxl-menu-mobile .menu-link:hover {
    background: #555;
    transform: translateX(10px);
}

/* Menú personalizado móvil */
.pxl-menu-primary-mobile {
    list-style: none;
    margin: 20px 0 0 0;
    padding: 0;
}

.pxl-menu-primary-mobile li {
    margin-bottom: 15px;
}

.pxl-menu-primary-mobile a {
    display: block;
    padding: 12px 20px;
    background: #444;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
    transition: all 0.3s ease;
}

.pxl-menu-primary-mobile a:hover {
    background: #666;
    transform: translateX(5px);
}

/* Backdrop */
.pxl-header-menu-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
}

.pxl-header-menu-backdrop.active {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .pxl-header-trosten .nav-tabs {
        flex-direction: column;
        width: 100%;
    }
    
    .pxl-header-trosten .nav-link {
        width: 100%;
        min-height: 60px;
        padding: 15px 20px;
    }
    
    .pxl-header-trosten .nav-link img {
        max-height: 40px;
    }
    
    #pxl-nav-mobile {
        display: block;
    }
    
    .pxl-header-trosten .nav-tabs {
        display: none;
    }
}

@media (max-width: 480px) {
    .pxl-header-trosten .nav-link {
        min-height: 50px;
        padding: 10px 15px;
    }
    
    .pxl-header-trosten .nav-link img {
        max-height: 35px;
    }
    
    .pxl-header-menu-scroll {
        padding: 50px 20px 20px;
    }
}

/* Animaciones */
@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pxl-header-trosten {
    animation: slideInDown 0.5s ease-out;
}

/* Estados de hover mejorados */
.pxl-header-trosten .nav-link {
    position: relative;
    overflow: hidden;
}

.pxl-header-trosten .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.pxl-header-trosten .nav-link:hover::before {
    left: 100%;
}
