/* header.css - Estilos para el header moderno de Ráspalo.com */

:root {
    --primary: #FF9E1B;
    --secondary: #005DAA;
    --accent: #CF142B;
    --dark: #343a40;
    --vip: #9C27B0;
}

/* header.css - Estilos para header seguro y organizado */

.header-modern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--secondary) 0%, #003366 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.2);
    transform: translateZ(0);
    backface-visibility: hidden;
}

.user-special-actions {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

/* Estados de usuario mejorados */
.user-status.vip {
    color: var(--vip);
    font-weight: 600;
}

.user-status.admin {
    color: var(--accent);
    font-weight: 600;
}

.user-status.member {
    color: var(--primary);
}

/* Botones especiales con indicadores visuales */
.btn-vip {
    background: linear-gradient(135deg, var(--vip) 0%, #7B1FA2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-vip::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.btn-admin {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.btn-admin::after {
    content: '⚡';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.7rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Responsive mejorado */
@media (max-width: 991px) {
    .user-special-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .user-special-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Mejoras de accesibilidad */
.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Transiciones suaves para cambios dinámicos */
.user-special-actions .btn {
    transition: all 0.3s ease;
}

.header-scrolled {
    background: linear-gradient(135deg, var(--secondary) 0%, #003366 100%);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 80px;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease;
}

.logo-brand:hover {
    transform: translateY(-2px);
}

.nav-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 5px;
    margin-right: 20px;
}

.nav-link {
    padding: 10px 18px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(255, 158, 27, 0.1);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-actions {
    display: flex;
    gap: 10px;
}

.user-welcome {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
}

.user-status {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 500;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 158, 27, 0.3);
}

.btn-primary:hover {
    background: #e58c0e;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 158, 27, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-vip {
    background: linear-gradient(135deg, var(--vip) 0%, #7B1FA2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.3);
}

.btn-vip:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(156, 39, 176, 0.4);
}

.btn-admin {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-admin:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s;
}

.mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hidden {
    display: none !important;
}

/* Estilos para el logo de Ráspalo.com */
.raspalo-logo {
    font-family: 'Arial Black', Arial, sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: -1px;
}

.raspalo-logo span {
    color: var(--primary);
}

/* MEDIA QUERIES PARA RESPONSIVE */
@media (max-width: 991px) {
    .header-container {
        padding: 0 15px;
    }
    
    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-main {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, var(--secondary) 0%, #003366 100%);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        transform: translate3d(0, -100%, 0);
        will-change: transform;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        gap: 0;
    }
    
    .nav-main.active {
        transform: translate3d(0, 0, 0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links {
        flex-direction: column;
        margin-right: 0;
        margin-bottom: 20px;
        width: 100%;
    }
    
    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 15px;
        border-radius: 8px;
        margin-bottom: 5px;
    }
    
    .user-section {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .user-actions, .user-welcome {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .user-info {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .raspalo-logo {
        font-size: 1.8rem;
    }
    
    .header-container {
        padding: 0 10px;
    }
}