/* Estilos para la barra de búsqueda */
.search-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.search-input-wrapper {
    overflow: hidden;
    width: 0;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
}

.search-input-wrapper.active {
    width: 220px;
    opacity: 1;
    visibility: visible;
}

.search-input {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    color: #1e293b;
    outline: none;
    width: 100%;
    transition: all 0.3s ease;
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(248, 42, 0, 0.2);
}

.search-input::placeholder {
    color: rgba(30, 41, 59, 0.6);
}

.search-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.375rem;
    border-radius: 0.5rem;
    color: #1e293b;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: #f82a00;
    color: white;
}

.search-btn.active {
    background: #f82a00;
    color: white;
}

/* Animación del ícono de búsqueda */
.search-btn .search-icon {
    transition: transform 0.4s ease;
}

.search-btn.active .search-icon {
    transform: rotate(90deg);
}

/* Para pantallas pequeñas */
@media (max-width: 640px) {
    .search-input-wrapper.active {
        width: 150px;
    }
}