/* Navbar Styles - Minimalista y Moderno */
/* Paleta: #530705, #ed171f, #7e0a07, #151414, #fefefe */
.navbar {
    background: #151414;
    color: #fefefe;
    padding: 0;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 3rem;
    gap: 3rem;
}

/* Logo con animación */
.navbar-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.9;
}

.logo-img {
    height: 70px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    display: block;
    transition: filter 0.3s ease;
    filter: brightness(1);
}

.logo-link:hover .logo-img {
    filter: brightness(1.1);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: #fefefe;
    letter-spacing: 3px;
    display: block;
    transition: color 0.3s ease;
}

/* Búsqueda minimalista con animación */
.navbar-search {
    flex: 1;
    max-width: 450px;
    display: flex;
    align-items: center;
    background-color: rgba(254, 254, 254, 0.08);
    border: 1px solid rgba(254, 254, 254, 0.1);
    border-radius: 50px;
    padding: 0.65rem 1.5rem;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
}

.navbar-search:focus-within {
    background-color: rgba(254, 254, 254, 0.12);
    border-color: rgba(237, 23, 31, 0.4);
    box-shadow: 0 0 0 3px rgba(237, 23, 31, 0.1);
    transform: translateY(-1px);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: #fefefe;
    font-size: 0.95rem;
    font-weight: 400;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(254, 254, 254, 0.5);
    transition: color 0.3s ease;
}

.navbar-search:focus-within .search-input::placeholder {
    color: rgba(254, 254, 254, 0.7);
}

.search-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: rgba(254, 254, 254, 0.7);
    display: flex;
    align-items: center;
    padding: 0.35rem;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-btn:hover {
    color: #ed171f;
    background-color: rgba(237, 23, 31, 0.1);
    transform: rotate(15deg) scale(1.1);
}

.search-btn:active {
    transform: rotate(15deg) scale(0.95);
}

/* Menú de navegación minimalista */
.navbar-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-link {
    color: rgba(254, 254, 254, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ed171f, #7e0a07);
    transform: translateX(-50%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-link:hover {
    color: #fefefe;
    transform: translateY(-2px);
}

.nav-link:hover::before {
    width: 100%;
}

/* Usuario y Dropdown - Diseño mejorado */
.navbar-user {
    position: relative;
}

.user-dropdown {
    position: relative;
}

.user-btn {
    background: rgba(254, 254, 254, 0.08);
    border: 1px solid rgba(254, 254, 254, 0.15);
    color: #fefefe;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.25rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.user-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(237, 23, 31, 0.2), transparent);
    transition: left 0.5s ease;
}

.user-btn:hover {
    background: rgba(254, 254, 254, 0.12);
    border-color: rgba(237, 23, 31, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(237, 23, 31, 0.2);
}

.user-btn:hover::before {
    left: 100%;
}

.user-name {
    font-weight: 600;
    color: #fefefe;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(254, 254, 254, 0.7);
    flex-shrink: 0;
}

.user-dropdown.show .dropdown-arrow {
    transform: rotate(180deg);
    color: #ed171f;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    background: rgba(254, 254, 254, 0.98);
    border: 1px solid rgba(21, 20, 20, 0.1);
    border-radius: 16px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(237, 23, 31, 0.1);
    min-width: 220px;
    display: none;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: fadeInDown 0.3s ease;
    z-index: 1000;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: #151414;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    border-bottom: 1px solid rgba(21, 20, 20, 0.05);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, #ed171f, #7e0a07);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-item:hover {
    background: linear-gradient(90deg, rgba(237, 23, 31, 0.1), rgba(126, 10, 7, 0.05));
    color: #ed171f;
    padding-left: 1.5rem;
}

.dropdown-item:hover::before {
    width: 4px;
}

.dropdown-item svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.dropdown-item:hover svg {
    transform: scale(1.1);
}

/* Autenticación (para invitados) - Minimalista */
.navbar-auth {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.auth-link {
    color: rgba(254, 254, 254, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
}

.auth-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ed171f, #7e0a07);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.auth-link:hover {
    color: #fefefe;
    transform: translateY(-2px);
}

.auth-link:hover::before {
    width: 100%;
}

.auth-btn {
    background: linear-gradient(135deg, #ed171f 0%, #7e0a07 100%);
    color: #fefefe;
    text-decoration: none;
    padding: 0.7rem 1.75rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(237, 23, 31, 0.3);
    position: relative;
    overflow: hidden;
}

.auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(254, 254, 254, 0.2), transparent);
    transition: left 0.5s ease;
}

.auth-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(237, 23, 31, 0.4);
    background: linear-gradient(135deg, #ed171f 0%, #530705 100%);
}

.auth-btn:hover::before {
    left: 100%;
}

.auth-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(237, 23, 31, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-container {
        flex-wrap: wrap;
        padding: 1rem 1.5rem;
        gap: 1.5rem;
    }

    .navbar-search {
        order: 3;
        max-width: 100%;
        width: 100%;
    }

    .navbar-menu {
        gap: 1.5rem;
        font-size: 0.9rem;
    }

    .navbar-auth {
        order: 4;
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
        gap: 1rem;
    }

    .auth-btn {
        flex: 1;
        text-align: center;
        max-width: 200px;
    }
}
