/* Estilos del Navbar Oscuro Premium */
.custom-navbar {
    background-color: rgba(10, 11, 12, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #222529;
    z-index: 1050;
}

/* Distribución responsiva en cuadrícula */
.layout-grid-nav {
    display: grid !important;
    grid-template-columns: 1fr 2fr 1fr;
    width: 100%;
    align-items: center;
}

@media (max-width: 575.98px) {
    .layout-grid-nav {
        grid-template-columns: auto 1fr auto;
        gap: 12px;
    }
}

/* Logo Estilizado */
.navbar-brand-custom {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.brand-icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-brand-custom:hover .brand-icon-img {
    transform: scale(1.08);
}

.brand-text-desktop {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    transition: color 0.2s;
}

.navbar-brand-custom:hover .brand-text-desktop {
    color: #e2e8f0;
}

/* CENTRO: Buscador tipo Twitter / Premium */
.nav-search-wrapper {
    width: 100%;
    max-width: 480px;
    justify-self: center;
}

.search-box-custom {
    background-color: #141618;
    border: 1px solid #222529;
    border-radius: 9999px;
    padding: 0.45rem 1.1rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input-custom {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.9rem;
    padding: 0;
}

.search-input-custom:focus {
    outline: none;
    box-shadow: none;
}

.search-box-custom:focus-within {
    background-color: #0a0b0c;
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.02);
}

.search-input-custom::placeholder {
    color: #495057;
}

/* Elementos estéticos del lado derecho */
.nav-actions-wrapper {
    justify-self: end;
}

.premium-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #868e96;
    border: 1px solid #343a40;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-sparkle {
    font-size: 0.9rem;
    animation: pulseGlow 3s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.9;
    }
}
