﻿/* Navbar Flotante con Fondo Oscuro para Rifas */
.navbar-rifas {
    background: rgba(30, 27, 60, 0.85);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 80px);
    width: 1300px;
    z-index: 1000;
    padding: 16px 40px;
    border-radius: 60px;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-rifas::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 60px;
    padding: 1px;
    background: linear-gradient(135deg,
            rgba(102, 126, 234, 0.4) 0%,
            rgba(118, 75, 162, 0.4) 50%,
            rgba(255, 215, 0, 0.3) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.navbar-rifas:hover::before {
    opacity: 1;
}

.navbar-rifas .nav-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-logo-rifas {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
    border: 2px solid rgba(251, 191, 36, 0.5);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.brand-text-rifas {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fbbf24, #fcd34d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    transition: transform 0.3s ease;
}

.brand-text-rifas:hover {
    transform: scale(1.05);
}

.navbar-rifas .nav-brand h2 {
    color: white;
    font-size: 1.4rem;
    margin: 0;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.3));
}

.navbar-rifas .nav-brand a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.navbar-rifas .nav-menu {
    display: flex;
    list-style: none;
    gap: 12px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.navbar-rifas .nav-menu a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 24px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-rifas .nav-menu a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.navbar-rifas .nav-menu a:hover::before {
    width: 200%;
    height: 200%;
}

.navbar-rifas .nav-menu a:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
    color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Mobile responsive */
@media (max-width: 968px) {
    .navbar-rifas {
        top: 15px;
        max-width: calc(100% - 40px);
        padding: 14px 25px;
        border-radius: 50px;
    }

    .brand-logo-rifas {
        width: 30px;
        height: 30px;
    }

    .brand-text-rifas {
        font-size: 1rem;
    }

    .navbar-rifas .nav-menu {
        gap: 8px;
    }

    .navbar-rifas .nav-menu a {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 640px) {
    .navbar-rifas {
        top: 10px;
        max-width: calc(100% - 20px);
        padding: 12px 20px;
    }

    .brand-logo-rifas {
        width: 28px;
        height: 28px;
    }

    .brand-text-rifas {
        font-size: 0.9rem;
    }

    .navbar-rifas .nav-menu a {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}